/* ═══════════════════════════════════════════════════════════════════════════
   TEAM PROFILE PAGES + MINIMAL ABOUT PAGE CARDS
   File: scss/pages/team.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* =========================================================
   COLOR THEME VARIABLES
   ========================================================= */
.profile-page.cyan  { --accent: #38BDF8; --accent-dim: rgba(56, 189, 248, 0.15); --accent-glow: rgba(56, 189, 248, 0.3); --hero-gradient: linear-gradient(135deg, #164e63 0%, #0d1b2a 100%); }
.profile-page.amber { --accent: #FFD700; --accent-dim: rgba(255, 215, 0, 0.15); --accent-glow: rgba(255, 215, 0, 0.3); --hero-gradient: linear-gradient(135deg, #78350f 0%, #0d1b2a 100%); }
.profile-page.violet { --accent: #a78bfa; --accent-dim: rgba(167, 139, 250, 0.15); --accent-glow: rgba(167, 139, 250, 0.3); --hero-gradient: linear-gradient(135deg, #4c1d95 0%, #0d1b2a 100%); }
.profile-page.emerald { --accent: #34d399; --accent-dim: rgba(52, 211, 153, 0.15); --accent-glow: rgba(52, 211, 153, 0.3); --hero-gradient: linear-gradient(135deg, #064e3b 0%, #0d1b2a 100%); }

/* =========================================================
   PROFILE HERO SECTION (Dark)
   ========================================================= */
.profile-hero {
  position: relative;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, #0B1120 0%, #1E293B 50%, #0B1120 100%);
  overflow: hidden;
}

.profile-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.profile-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.profile-hero-orb.primary {
  width: 350px;
  height: 350px;
  background: var(--accent-glow);
  top: -80px;
  right: 10%;
}

.profile-hero-orb.secondary {
  width: 250px;
  height: 250px;
  background: rgba(56, 189, 248, 0.15);
  bottom: -60px;
  left: 5%;
}

.profile-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Profile Photo */
.profile-photo-wrapper {
  flex-shrink: 0;
}

.profile-photo {
  width: 250px;
  height: 250px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--accent-dim);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Hero Text */
.profile-header-text {
  flex: 1;
}

h1.profile-name,
.profile-page .profile-name {
  font-family: 'Poppins', sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  border: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-role {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.25rem 0;
}

.profile-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #E5E7EB;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* =========================================================
   PROFILE BODY SECTION (Light)
   ========================================================= */
.profile-body {
  background: #ffffff;
  padding: 4rem 2rem 5rem;
}

.profile-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Author-card style wrapper */
.profile-card {
  background: #ffffff;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Bio */
.profile-section {
  margin-bottom: 2rem;
}

.profile-section-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #9CA3AF;
  margin-bottom: 0.75rem;
}

.profile-bio {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
  margin: 0;
}

/* Education Pills */
.profile-edu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--accent-dim);
  color: #1F2937;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--accent-glow);
}

/* Philosophy Quote */
.profile-philosophy {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-dim);
  margin: 0;
}

/* Social Links */
.profile-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: all 0.25s ease;
  background: #ffffff;
}

.profile-social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Back Navigation */
.profile-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 3rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6B7280;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.profile-back-link:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

/* =========================================================
   MINIMAL TEAM CARDS (About Page)
   ========================================================= */
.team-grid-minimal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.team-card-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}

.team-card-minimal:hover {
  border-color: var(--accent-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-dim);
  transform: translateY(-6px);
}

.team-card-minimal.cyan  { --accent: #38BDF8; --accent-dim: rgba(56, 189, 248, 0.15); --accent-glow: rgba(56, 189, 248, 0.3); }
.team-card-minimal.amber { --accent: #FFD700; --accent-dim: rgba(255, 215, 0, 0.15); --accent-glow: rgba(255, 215, 0, 0.3); }
.team-card-minimal.violet { --accent: #a78bfa; --accent-dim: rgba(167, 139, 250, 0.15); --accent-glow: rgba(167, 139, 250, 0.3); }
.team-card-minimal.emerald { --accent: #34d399; --accent-dim: rgba(52, 211, 153, 0.15); --accent-glow: rgba(52, 211, 153, 0.3); }

.team-card-minimal img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease;
}

.team-card-minimal:hover img {
  border-color: var(--accent-glow);
}

.team-card-minimal h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
}

.team-role-minimal {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.25rem 0;
  line-height: 1.4;
}

.view-profile-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.team-card-minimal:hover .view-profile-link {
  color: var(--accent);
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 1024px) {
  .profile-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .profile-name {
    font-size: 2rem;
  }

  .profile-badges {
    justify-content: center;
  }

  .team-grid-minimal {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .profile-hero {
    padding: 7rem 1.25rem 3rem;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .profile-body {
    padding: 2.5rem 1.25rem 3rem;
  }

  .profile-card {
    padding: 1.5rem;
  }

  .profile-social-grid {
    flex-direction: column;
  }

  .profile-social-link {
    justify-content: center;
  }

  .team-grid-minimal {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .team-card-minimal {
    padding: 1.5rem 1rem;
  }

  .team-card-minimal img {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .team-grid-minimal {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   FADE-IN ANIMATION
   ========================================================= */
.profile-page .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.profile-page .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
