/* Teams Page Styling */

/* Page Container */
.teams-main {
    min-height: 100vh;
    background: #0A192F;
}

/* Page Hero (matches about.html style) */
.page-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(100, 255, 218, 0.05) 0%, transparent 100%);
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
    margin-bottom: 1rem;
}
.page-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Section (legacy) */
.teams-hero {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.teams-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.teams-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.teams-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Grid Layout */
.teams-grid-section {
    padding: 0 2rem 4rem;
    max-width: 1400px; /* Wide container for 3 columns */
    margin: 0 auto;
}

.teams-grid {
    display: grid;
    /* 3 Columns by default */
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem;
    /* Keeps cards from stretching neighbors when one expands */
    align-items: start; 
}

/* Team Card */
.team-card {
    background: #112240; /* Very dark grey */
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative;
    
    /* FIX: Ensures cards are uniform height initially */
    min-height: 140px; 
    
    /* Optional: Vertically center the header if content is short */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card.expanded {
    /* When expanded, let it grow naturally */
    justify-content: flex-start;
    border-color: var(--neon-blue);
    background: #1B2B48;
}

.team-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}


/* Card Header */
.card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 110px;
}

.header-left {
    display: flex;
    align-items: center; /* Align bar and text */
    gap: 1rem;
}

.accent-bar {
    width: 3px;
    background: var(--neon-blue);
    border-radius: 4px;
    height: 40px; 
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
}

.team-card h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 0;
    max-width: 180px; 
}

/* FIX: Right side alignment (Chip + Arrow side-by-side) */
.header-right {
    display: flex;
    flex-direction: row; /* Side by side */
    align-items: center;
    gap: 12px;
}

/* Status Chips - Outlined Pill Style */
.status-chip {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 100px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-chip.active {
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    background: rgba(100, 255, 218, 0.05);
}

.status-chip.forming {
    color: #FFD700;
    border: 1px solid #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.status-chip.recruiting {
    color: #00FF88;
    border: 1px solid #00FF88;
    background: rgba(0, 255, 136, 0.05);
}

/* SVG Chevron */
.chevron {
    color: var(--neon-blue);
    transition: transform 0.3s ease;
}

.team-card.expanded .chevron {
    transform: rotate(180deg);
}

/* Expanded Content */
.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.team-card.expanded .card-content {
    max-height: 800px; /* Enough for content */
}

.inner-content {
    padding: 0 1.5rem 2rem 1.5rem;
    border-top: 1px solid rgba(136, 146, 176, 0.1);
    margin-top: 0.5rem;
    padding-top: 1.5rem;
}

.info-block {
    margin-bottom: 1.5rem;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block h4 {
    color: var(--neon-blue);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.info-block p {
    color: #8892B0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Focus List */
.focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.focus-list li {
    background: #233554;
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* CTA Section */
.teams-cta {
    text-align: center;
    padding: 2rem 2rem 4rem;
}

.teams-cta h2 { color: #fff; font-family: var(--font-heading); margin-bottom: 1.5rem; }

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--neon-blue);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.cta-button:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .teams-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .teams-grid { grid-template-columns: 1fr; }
    .card-header { padding: 1.2rem; }
    /* On mobile, standard stack is fine */
    .team-card { min-height: auto; }
}

/* Lead Name Styling */
.lead-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lead-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
}

.lead-link {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(100, 255, 218, 0.03);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 4px;
    color: var(--neon-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-link:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
    transform: translateY(-2px);
}

/* NANO LinkedIn Button */
.btn-nano {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background: #0077B5; /* LinkedIn Blue */
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    border: 1px solid transparent;
}

.btn-nano:hover {
    background: #00a0dc;
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.3);
}