/**
 * Team Profile & Teams Hub Page Styles
 *
 * @package NFL_Rankings_Importer
 * @since 2.0.0
 * @since 2.2.0 Redesigned with sortable tables and QB profile patterns
 */

/* ==========================================================================
   CSS Custom Properties (synced with QB profile)
   ========================================================================== */
:root {
    /* Typography */
    --team-font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --team-font-mono: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    --team-font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Colors */
    --team-bg: #f8f9fc;
    --team-surface: #ffffff;
    --team-card: #ffffff;
    --team-border: #e2e4e9;
    --team-border-light: #eef0f4;

    /* Text */
    --team-text: #1a1d26;
    --team-text-secondary: #4a4f5c;
    --team-text-muted: #525866; /* Darkened for WCAG AA */
    --team-text-light: rgba(255, 255, 255, 0.95);
    --team-text-light-secondary: rgba(255, 255, 255, 0.75);

    /* Rating tiers - WCAG AA compliant (4.5:1 minimum) */
    --team-tier-elite: #6d28d9;
    --team-tier-great: #1d4ed8;
    --team-tier-good: #047857;
    --team-tier-average: #92400e;
    --team-tier-poor: #b91c1c;

    /* Shadows */
    --team-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --team-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --team-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);

    /* Layout */
    --team-container: 1200px;
    --team-radius: 12px;
    --team-radius-lg: 16px;

    /* Transitions */
    --team-transition: 0.2s ease;
}

/* ==========================================================================
   Base & Container
   ========================================================================== */
.team-profile-wrap {
    font-family: var(--team-font-body);
    font-size: 16px;
    background: var(--team-bg);
    color: var(--team-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.team-profile-wrap *,
.team-profile-wrap *::before,
.team-profile-wrap *::after {
    box-sizing: border-box;
}

.team-container,
.teams-container {
    max-width: var(--team-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.team-breadcrumbs {
    display: none; /* Hidden visually - SEO benefit comes from JSON-LD structured data */
    background: var(--team-surface);
    border-bottom: 1px solid var(--team-border);
    padding: 7px 0;
    font-size: 14px;
    font-weight: 500;
}

.team-breadcrumbs a {
    color: var(--team-text-secondary);
    text-decoration: none;
    transition: color var(--team-transition);
}

.team-breadcrumbs a:hover {
    color: var(--team-primary);
}

.team-breadcrumbs .separator {
    margin: 0 10px;
    color: var(--team-text-muted);
}

.team-breadcrumbs .current {
    color: var(--team-text);
    font-weight: 600;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.team-hero {
    position: relative;
    background: linear-gradient(135deg, var(--team-primary) 0%, color-mix(in srgb, var(--team-primary) 85%, black) 100%);
    padding: 40px 20px;
    overflow: hidden;
}

/* Diagonal stripe pattern */
.team-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.03) 40px,
        rgba(255, 255, 255, 0.03) 80px
    );
    pointer-events: none;
}

/* Secondary color accent bar */
.team-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--team-secondary);
}

.team-hero-content {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    z-index: 2;
}

/* Team Logo */
.team-logo-wrap {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.team-logo-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: var(--team-text-light);
}

/* Team Info */
.team-info {
    min-width: 0;
}

.team-conference-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--team-font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--team-text-light-secondary);
    margin-bottom: 12px;
}

.team-name {
    font-family: var(--team-font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--team-text-light);
    margin: 0 0 16px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Quick Stats Row */
.team-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 4px;
}

.team-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 70px;
    min-height: 70px;
}

.team-stat-highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 2px solid #fff;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    padding: 12px 20px;
}

.team-stat-highlight .team-stat-value {
    color: #1a1d26;
    font-size: 28px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.team-stat-highlight .team-stat-label {
    color: #78350f;
    font-weight: 700;
}

.team-stat-value {
    font-family: var(--team-font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--team-text-light);
    line-height: 1.2;
}

.team-stat-label {
    font-family: var(--team-font-body);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--team-text-light-secondary);
    margin-top: 2px;
}

.team-starter-info {
    font-size: 18px;
    color: var(--team-text-light-secondary);
}

.team-starter-label {
    margin-right: 8px;
}

.team-starter-link {
    color: var(--team-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--team-transition);
}

.team-starter-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.team-starter-rank {
    color: var(--team-text-light);
    font-family: var(--team-font-mono);
    font-weight: 700;
    margin-left: 8px;
    text-decoration: none;
}

.team-starter-rank:hover {
    text-decoration: underline;
}

.team-no-starter {
    color: var(--team-text-light-secondary);
    font-style: italic;
}

/* Starting QB Card */
.team-starter-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--team-surface);
    padding: 16px 20px;
    border-radius: var(--team-radius-lg);
    text-decoration: none;
    color: var(--team-text);
    box-shadow: var(--team-shadow-lg);
    transition: transform var(--team-transition), box-shadow var(--team-transition);
    position: relative;
    overflow: hidden;
    min-width: 220px;
}

.team-starter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--team-primary), var(--team-secondary));
}

.team-starter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.team-starter-card-empty {
    opacity: 0.7;
    cursor: default;
}

.team-starter-card-empty:hover {
    transform: none;
}

.team-starter-card-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--team-border-light);
    border: 3px solid var(--team-primary);
}

.team-starter-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-starter-card-info {
    flex: 1;
    min-width: 0;
}

.team-starter-card-label {
    font-family: var(--team-font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--team-text-muted);
    margin-bottom: 4px;
}

.team-starter-card-name {
    font-family: var(--team-font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-starter-card-rating {
    font-family: var(--team-font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--team-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.team-starter-card-rank {
    font-family: var(--team-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--team-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.team-main-content {
    padding: 24px 0 48px;
}

/* ==========================================================================
   Cards - Clean White Style (matches QB profile)
   ========================================================================== */
.team-card {
    background: var(--team-card);
    border-radius: var(--team-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--team-shadow);
    border: 1px solid var(--team-border-light);
    transition: box-shadow var(--team-transition);
}

.team-card:hover {
    box-shadow: var(--team-shadow-lg);
}

.team-card-title {
    font-family: var(--team-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--team-text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--team-border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.team-card-icon {
    font-size: 24px;
    color: var(--team-primary);
}

.team-card-subtitle {
    color: var(--team-text-muted);
    margin: -10px 0 20px 0;
    font-size: 14px;
}

/* ==========================================================================
   QB Rankings Table (Sortable)
   ========================================================================== */
.team-qb-table-section {
    background: var(--team-card);
    border-radius: var(--team-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--team-shadow);
    border: 1px solid var(--team-border-light);
}

.team-qb-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--team-border-light);
}

.team-qb-table-title {
    font-family: var(--team-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--team-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-qb-table-title svg {
    color: var(--team-primary);
}

.team-qb-table-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-qb-count {
    font-family: var(--team-font-mono);
    font-size: 14px;
    color: var(--team-text-muted);
}

.team-qb-current-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-family: var(--team-font-body);
    font-size: 14px;
    font-weight: 600;
    color: color-mix(in srgb, var(--team-primary) 75%, black);
    background: color-mix(in srgb, var(--team-primary) 10%, transparent);
    border-radius: 20px;
}

.team-qb-table-wrap {
    overflow-x: auto;
    margin: 0 -24px -24px;
    padding: 0 24px 24px;
}

.team-qb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

/* Table Header */
.team-qb-table thead th {
    font-family: var(--team-font-display);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--team-text-muted);
    text-align: left;
    padding: 12px 14px;
    background: var(--team-bg);
    border-bottom: 1px solid var(--team-border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.team-qb-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: color var(--team-transition), background var(--team-transition);
}

.team-qb-table thead th.sortable:hover {
    color: var(--team-primary);
    background: var(--team-border-light);
}

.team-qb-table thead th.sortable.sort-active {
    color: var(--team-primary);
    background: color-mix(in srgb, var(--team-primary) 8%, var(--team-bg));
}

.team-qb-table thead th .th-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.team-qb-table thead th .sort-icon {
    opacity: 0.4;
    transition: opacity var(--team-transition), transform var(--team-transition);
}

.team-qb-table thead th.sortable:hover .sort-icon {
    opacity: 0.7;
}

.team-qb-table thead th.sort-active .sort-icon {
    opacity: 1;
}

.team-qb-table thead th.sort-asc .sort-icon {
    transform: rotate(180deg);
}

/* Table Body */
.team-qb-table tbody tr {
    border-bottom: 1px solid var(--team-border-light);
    transition: background var(--team-transition);
}

.team-qb-table tbody tr:hover {
    background: var(--team-bg);
}

.team-qb-table tbody tr.is-current-roster {
    background: color-mix(in srgb, var(--team-primary) 4%, transparent);
}

.team-qb-table tbody tr.is-current-roster:hover {
    background: color-mix(in srgb, var(--team-primary) 8%, transparent);
}

.team-qb-table tbody tr.is-starter {
    background: color-mix(in srgb, var(--team-tier-good) 8%, transparent);
}

.team-qb-table tbody tr.is-starter:hover {
    background: color-mix(in srgb, var(--team-tier-good) 12%, transparent);
}

.team-qb-table tbody td {
    padding: 14px;
    vertical-align: middle;
}

/* Column styles */
.team-qb-table .col-rank {
    width: 70px;
    text-align: center;
}

.team-qb-table .rank-num {
    font-family: var(--team-font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--team-text);
}

.team-qb-table .col-player {
    min-width: 200px;
}

.team-qb-table .player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-qb-table .player-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--team-border-light);
}

.team-qb-table .player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-qb-table .player-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--team-primary), var(--team-secondary));
    opacity: 0.3;
}

.team-qb-table .player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-qb-table .player-name {
    font-family: var(--team-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--team-text);
    text-decoration: none;
    transition: color var(--team-transition);
}

a.player-name:hover {
    color: var(--team-primary);
}

.team-qb-table .player-badges {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.team-qb-table .player-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px;
    width: fit-content;
}

.team-qb-table .badge-starter {
    background: var(--team-tier-good);
    color: #fff;
}

.team-qb-table .badge-roster {
    background: color-mix(in srgb, var(--team-primary) 15%, transparent);
    color: color-mix(in srgb, var(--team-primary) 70%, black);
}

.team-qb-table .badge-daily-rank {
    background: #f0f0f0;
    color: #666;
    font-family: var(--team-font-mono);
}

.team-qb-table a.badge-daily-rank {
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.team-qb-table a.badge-daily-rank:hover {
    background: var(--team-primary);
    color: #fff;
}

/* Rating column */
.team-qb-table .col-rating {
    width: 80px;
}

.team-qb-table .rating-value {
    font-family: var(--team-font-mono);
    font-size: 17px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Overall column */
.team-qb-table .col-overall {
    width: 100px;
}

.team-qb-table .overall-badge {
    font-family: var(--team-font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: capitalize;
    display: inline-block;
}

/* Tier colors */
.tier-elite,
.team-qb-table .rating-value.tier-elite {
    background: rgba(124, 58, 237, 0.12);
    color: var(--team-tier-elite);
}

.tier-great,
.team-qb-table .rating-value.tier-great {
    background: rgba(37, 99, 235, 0.12);
    color: var(--team-tier-great);
}

.tier-good,
.team-qb-table .rating-value.tier-good {
    background: rgba(16, 185, 129, 0.12);
    color: var(--team-tier-good);
}

.tier-average,
.team-qb-table .rating-value.tier-average {
    background: rgba(245, 158, 11, 0.12);
    color: var(--team-tier-average);
}

.tier-poor,
.team-qb-table .rating-value.tier-poor {
    background: rgba(239, 68, 68, 0.12);
    color: var(--team-tier-poor);
}

/* Other columns */
.team-qb-table .col-season,
.team-qb-table .col-fantasy,
.team-qb-table .col-playoffs,
.team-qb-table .col-years {
    font-family: var(--team-font-mono);
    font-size: 14px;
    color: var(--team-text-secondary);
    white-space: nowrap;
}

/* ==========================================================================
   AI Outlook Section
   ========================================================================== */
.team-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-family: var(--team-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--team-primary);
    background: color-mix(in srgb, var(--team-primary) 10%, transparent);
    border-radius: 20px;
}

.team-ai-updated {
    font-family: var(--team-font-mono);
    font-size: 14px;
    color: var(--team-text-muted);
    margin-bottom: 14px;
}

.team-ai-outlook {
    font-size: 16px;
    line-height: 1.8;
    color: var(--team-text-secondary);
}

.team-ai-placeholder {
    color: var(--team-text-muted);
    font-style: italic;
    padding: 24px;
    background: var(--team-bg);
    border-radius: var(--team-radius);
    text-align: center;
}

/* ==========================================================================
   FAQ Section (details/summary style matching QB profile)
   ========================================================================== */
.team-faq-card {
    margin-top: 4px;
}

.team-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-faq-item {
    border: 1px solid var(--team-border-light);
    border-radius: var(--team-radius);
    background: var(--team-surface);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.team-faq-item:hover {
    border-color: var(--team-border);
}

.team-faq-item[open] {
    border-color: var(--team-primary);
    background: var(--team-card);
}

.team-faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.15s ease;
}

.team-faq-question::-webkit-details-marker {
    display: none;
}

.team-faq-question:hover {
    background: var(--team-bg);
}

.team-faq-question-text {
    font-family: var(--team-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--team-text);
    flex: 1;
    line-height: 1.4;
}

.team-faq-item[open] .team-faq-question-text {
    color: var(--team-primary);
}

.team-faq-chevron {
    flex-shrink: 0;
    color: var(--team-text-muted);
    transition: transform 0.25s ease;
}

.team-faq-item[open] .team-faq-chevron {
    transform: rotate(180deg);
    color: var(--team-primary);
}

.team-faq-answer {
    padding: 0 18px 18px;
}

.team-faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--team-text-secondary);
    margin: 0;
    padding: 14px 16px;
    background: var(--team-bg);
    border-radius: calc(var(--team-radius) - 2px);
    border-left: 3px solid var(--team-primary);
}

/* Legacy FAQ button styles (for backwards compat) */
button.team-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background: var(--team-bg);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--team-text);
    transition: background var(--team-transition);
}

button.team-faq-question:hover {
    background: var(--team-border);
}

button.team-faq-question[aria-expanded="true"] {
    background: var(--team-border);
}

button.team-faq-question[aria-expanded="true"] .team-faq-toggle {
    transform: rotate(45deg);
}

.team-faq-toggle {
    font-size: 20px;
    font-weight: 300;
    color: var(--team-text-muted);
    transition: transform var(--team-transition);
}

/* ==========================================================================
   TEAMS HUB PAGE STYLES
   ========================================================================== */
.teams-hub-wrap {
    font-family: var(--team-font-body);
    background: var(--team-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.teams-hub-header {
    position: relative;
    background: linear-gradient(135deg, #002244 0%, color-mix(in srgb, #002244 85%, black) 100%);
    padding: 48px 20px 52px;
    text-align: center;
    overflow: hidden;
}

/* Diagonal stripe pattern - matches QB hero */
.teams-hub-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.03) 40px,
        rgba(255, 255, 255, 0.03) 80px
    );
    pointer-events: none;
}

/* NFL-style stars decoration */
.teams-hub-header .teams-container {
    position: relative;
}

.teams-hub-header .teams-container::before {
    content: '★';
    position: absolute;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.teams-hub-header .teams-container::after {
    content: '★';
    position: absolute;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Additional stars using box-shadows on the header */
.teams-hub-title::before,
.teams-hub-title::after {
    content: '★';
    position: relative;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    vertical-align: middle;
    margin: 0 16px;
}

/* Gold accent bar at bottom */
.teams-hub-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #FFD100;
}

.teams-hub-header > * {
    position: relative;
    z-index: 1;
}

.teams-hub-title {
    font-family: var(--team-font-display);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    font-style: normal;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.teams-hub-subtitle {
    font-family: var(--team-font-body);
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px 0;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Filter Tabs */
.teams-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.teams-filter-btn {
    padding: 10px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--team-font-body);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.teams-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.teams-filter-btn.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #002244;
    font-weight: 700;
}

/* Teams Content */
.teams-hub-content {
    padding: 40px 0;
}

.teams-division-section {
    margin-bottom: 40px;
}

.teams-division-section[hidden] {
    display: none;
}

.teams-division-title {
    font-family: var(--team-font-display);
    font-size: 18px;
    color: var(--team-text-muted);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Teams Cards Grid */
.teams-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.teams-card {
    position: relative;
    background: var(--team-surface);
    border: 1px solid var(--team-border-light);
    border-radius: var(--team-radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s ease;
    overflow: hidden;
}

/* Team color accent at top */
.teams-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--team-primary);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.teams-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
    border-color: var(--team-primary);
}

.teams-card:hover::before {
    opacity: 1;
    height: 5px;
}

.teams-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.teams-card-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease;
}

.teams-card:hover .teams-card-logo {
    transform: scale(1.08);
}

.teams-card-logo-placeholder {
    width: 72px;
    height: 72px;
    background: var(--team-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 18px;
    font-weight: 900;
    color: var(--team-text-muted);
}

.teams-card-name {
    font-family: var(--team-font-display);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--team-text);
    line-height: 1.3;
}

.teams-card-starter {
    display: block;
    font-family: var(--team-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--team-text-secondary);
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.teams-card-starter:hover {
    color: var(--team-primary);
}

.teams-card-rank {
    display: inline-block;
    font-family: var(--team-font-mono);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--team-primary);
    padding: 4px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.teams-card-rank:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.teams-card-star {
    color: #fbbf24;
    margin-left: 2px;
}

.teams-card-no-starter {
    color: var(--team-text-muted);
    font-size: 15px;
}

/* ==========================================================================
   Hide on mobile
   ========================================================================== */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .teams-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .team-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-logo-wrap {
        margin: 0 auto;
        width: 120px;
        height: 120px;
    }

    .team-quick-stats {
        justify-content: center;
    }

    .team-starter-card {
        margin: 20px auto 0;
        max-width: 280px;
    }

    .team-name {
        font-size: 36px;
    }

    .team-qb-table-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .team-quick-stats {
        gap: 12px;
    }

    .team-stat {
        padding: 8px 12px;
        min-width: 60px;
    }

    .team-stat-value {
        font-size: 18px;
    }

    .team-stat-label {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .team-container {
        padding: 0 16px;
    }

    .teams-cards-grid {
        grid-template-columns: 1fr;
    }

    .teams-hub-title {
        font-size: 28px;
    }

    .teams-filters {
        flex-wrap: wrap;
    }

    .team-qb-table-section {
        padding: 16px;
        margin: 0 -16px 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .team-qb-table-wrap {
        margin: 0 -16px -16px;
        padding: 0 16px 16px;
    }

    .team-qb-table thead th,
    .team-qb-table tbody td {
        padding: 12px 10px;
    }

    .team-qb-table .player-photo {
        width: 36px;
        height: 36px;
    }

    .team-qb-table .player-name {
        font-size: 15px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .team-profile-wrap {
        background: white;
    }

    .team-hero {
        background: var(--team-primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .team-card,
    .team-qb-table-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
