/* Team Page Styling */

.team-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

/* Header */
.team-header {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.team-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.team-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.team-logo-main {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.team-logo-monogram {
    height: 48px;
    padding: 0 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--ice-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-names {
    display: flex;
    flex-direction: column;
}

.team-season-label {
    font-size: 0.8rem;
    color: var(--cool-gray);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.team-name-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--ice-white);
    margin: 0;
    line-height: 1;
}

/* Stat Pills in Header */
.team-header-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-pill {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.stat-pill-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--cool-gray);
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-pill-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ice-white);
}

.stat-pill-pts .stat-pill-val {
    color: var(--victory-gold);
}

.diff-pos { color: #4ade80 !important; }
.diff-neg { color: #f87171 !important; }

/* Subnav */
.team-subnav {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 24px;
}

.team-subnav a {
    color: var(--cool-gray);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.team-subnav a:hover {
    color: var(--ice-white);
}

/* Main Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.team-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Panels */
.team-panel {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ice-white);
    margin: 0;
}

.panel-link {
    font-size: 0.85rem;
    color: var(--victory-gold);
    text-decoration: none;
    font-weight: 600;
}

.panel-link:hover {
    text-decoration: underline;
}

/* Leadership List */
.leadership-list {
    display: flex;
    flex-direction: column;
    padding: 8px 20px 16px;
}

.leadership-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.leadership-item:last-child {
    border-bottom: none;
}

.lead-role {
    font-size: 0.85rem;
    color: var(--cool-gray);
    font-weight: 600;
}

.lead-name {
    font-weight: 700;
    color: var(--ice-white);
}

.lead-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Stat Tiles */
.stat-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-tile {
    background: #0d1424;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.st-lbl {
    font-size: 0.7rem;
    color: var(--cool-gray);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.st-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ice-white);
}

.st-val.gold {
    color: var(--victory-gold);
}

/* Roster Groups */
.roster-group-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cool-gray);
    font-weight: 800;
    margin: 24px 20px 12px;
}

/* Empty Notes */
.empty-note {
    margin: 0 20px 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Games Split */
.games-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .games-split {
        grid-template-columns: 1fr;
    }
    
    .team-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
}
