/* ===========================
   TEAM PAGE — team.css
   Extends main.css
   =========================== */

/* ── Active nav link ── */
.nav-links a.active-page {
  color: var(--blue-bright) !important;
}
.nav-links a.active-page::after {
  transform: scaleX(1) !important;
}

/* ===========================
   TEAM HERO
   =========================== */
.team-hero {
  padding: 160px 0 80px;
  position: relative;
  z-index: 1;
}
.team-hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}
.team-hero-content h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 20px 0;
}
.team-hero-content .hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ===========================
   DISCORD LIVE BANNER
   =========================== */
.discord-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(88, 101, 242, 0.07);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  max-width: 780px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.discord-banner:hover {
  border-color: rgba(88, 101, 242, 0.45);
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.1);
}
.discord-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.discord-icon {
  width: 46px;
  height: 46px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.28);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #7289da;
  flex-shrink: 0;
}
.discord-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.discord-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.discord-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}
.d-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
}
.d-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.d-stat-dot.online {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.d-stat-dot.members {
  background: var(--blue-bright);
}
.d-stat-num {
  font-weight: 700;
  color: var(--text);
  min-width: 24px;
}
.d-stat-label {
  color: var(--text-muted);
}
.d-stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}
.discord-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(88, 101, 242, 0.3);
}
.discord-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(88, 101, 242, 0.5);
}

/* ===========================
   TEAM SECTION
   =========================== */
.team-section {
  padding: 80px 0 100px;
  position: relative;
  z-index: 1;
}

/* ===========================
   TEAM GRID
   =========================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

/* ===========================
   TEAM CARD
   =========================== */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all var(--transition);
  cursor: default;
}

/* Hover glow layer */
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.team-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.1);
}
.team-card:hover::before {
  opacity: 1;
}

/* Owner card */
.team-card.is-owner {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(150deg, rgba(59, 130, 246, 0.05) 0%, var(--bg-card) 60%);
}
.team-card.is-owner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
}

/* ── Avatar ── */
.team-card-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.team-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color 0.3s ease;
  background: var(--bg-2);
  display: block;
}
.team-card:hover .team-card-avatar {
  border-color: var(--blue-bright);
}
.team-card-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--bg-2));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-bright);
  transition: border-color 0.3s ease;
}
.team-card:hover .team-card-avatar-fallback {
  border-color: var(--blue-bright);
}

/* Status dot on avatar */
.team-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2.5px solid var(--bg-card);
  transition: border-color 0.3s ease;
}
.team-card:hover .team-status-dot {
  border-color: var(--bg-card-hover);
}
.team-status-dot.online  { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.7); animation: pulse-dot 2.5s ease-in-out infinite; }
.team-status-dot.idle    { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
.team-status-dot.dnd     { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.6); }
.team-status-dot.offline { background: #4b5563; }

/* ── Card body ── */
.team-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Name row */
.team-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.team-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.team-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 2px 8px;
  border-radius: 100px;
}
.team-owner-badge i {
  font-size: 0.58rem;
}

/* Role */
.team-card-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

/* Status + activity row */
.team-card-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.team-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid transparent;
}
.team-status-indicator .status-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.team-status-indicator.status-online  { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.25);  color: #4ade80; }
.team-status-indicator.status-online .status-pip  { background: #22c55e; animation: pulse-dot 2.5s ease-in-out infinite; }
.team-status-indicator.status-idle    { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); color: #fbbf24; }
.team-status-indicator.status-idle .status-pip    { background: #f59e0b; }
.team-status-indicator.status-dnd     { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.25);  color: #f87171; }
.team-status-indicator.status-dnd .status-pip     { background: #ef4444; }
.team-status-indicator.status-offline { background: rgba(75,85,99,0.15);  border-color: rgba(75,85,99,0.25);  color: #9ca3af; }
.team-status-indicator.status-offline .status-pip { background: #4b5563; }

/* Activity pill */
.team-card-activity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  color: var(--text-dim);
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.team-card-activity i {
  font-size: 0.65rem;
  color: var(--blue-bright);
  flex-shrink: 0;
}

/* Bio */
.team-card-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Specialties */
.team-card-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.specialty-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.16);
  color: var(--blue-bright);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.team-card:hover .specialty-tag {
  background: rgba(59, 130, 246, 0.13);
  border-color: rgba(59, 130, 246, 0.32);
}

/* Discord handle */
.team-card-discord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  transition: color 0.2s ease;
}
.team-card:hover .team-card-discord {
  color: #7289da;
}
.team-card-discord i {
  font-size: 0.85rem;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   TEAM CTA
   =========================== */
.team-cta {
  padding: 60px 0 120px;
  position: relative;
  z-index: 1;
}
.team-cta-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 24px;
  padding: 72px 60px;
  text-align: center;
}
.team-cta-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.13) 0%, transparent 70%);
  pointer-events: none;
}
.team-cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}
.team-cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
}
.team-cta-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}
.team-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   SHARED BUTTON STYLES (if not in main.css)
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 14px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-hover);
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.06);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .team-hero { padding: 120px 0 60px; }
  .discord-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .discord-join-btn { width: 100%; justify-content: center; }
  .team-grid { grid-template-columns: 1fr; }
  .team-cta-card { padding: 48px 28px; }
  .team-card-status-row { gap: 7px; }
  .team-card-activity { max-width: 140px; }
}
@media (max-width: 480px) {
  .team-hero-content h1 { font-size: 2.2rem; }
  .team-card { padding: 22px 20px; }
}
