* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #0a1428;
    --secondary-color: #1e3a5f;
    --accent-blue: #0ac8ff;
    --accent-red: #ff4655;
    --accent-gold: #c89b3c;
    --accent-gold-light: #f4d03f;

    --bg-dark: #010a13;
    --bg-card: #0a1428;
    --bg-card-hover: #1a2940;

    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;

    --blue-side: #4a90e2;
    --red-side: #e74c3c;

    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}





.navbar {
    background-color: var(--primary-color);
    border-bottom: 2px solid var(--accent-gold);
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-brand a:hover {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-user {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--accent-blue);
}




.main-content {
    flex: 1;
    padding: var(--spacing-xxl) 0;
}

.footer {
    background-color: var(--primary-color);
    border-top: 1px solid var(--secondary-color);
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--blue-side));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    display: block;
    width: 100%;
}





.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(10, 200, 255, 0.1);
}




.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}




.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.login-card {
    background-color: var(--bg-card);
    padding: var(--spacing-xxl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--secondary-color);
}

.login-card h1 {
    margin-bottom: var(--spacing-xl);
    color: var(--accent-gold);
    text-align: center;
}




.home-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.search-hero {
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.search-hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xxl);
}




.search-wrapper {
    position: relative;
    width: 100%;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(10, 200, 255, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: -8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid var(--secondary-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--bg-card-hover);
}

.no-results {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--text-muted);
}




.team-detail-container {
    min-height: calc(100vh - 200px);
}

.team-header {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--secondary-color);
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-xl);
}

.search-wrapper-mini {
    position: relative;
    max-width: 400px;
}

.search-input-mini {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-card);
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-input-mini:focus {
    outline: none;
    border-color: var(--accent-blue);
}




.team-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.team-logo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-lg);
}

.team-initial {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.team-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}




.last-match-card {
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.last-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--secondary-color);
}

.last-match-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.last-match-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.last-match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.match-team {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.match-team.winner {
    color: var(--accent-gold);
    background-color: rgba(200, 155, 60, 0.1);
    border: 1px solid var(--accent-gold);
}

.match-vs {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.last-match-details {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.match-detail {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}





.stats-section {
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    font-size: 1.8rem;
    color: var(--text-primary);
}

.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-esports {
    background-color: var(--accent-blue);
    color: white;
}

.badge-scrim {
    background-color: var(--accent-gold);
    color: var(--primary-color);
}




.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card-blue {
    border-color: var(--blue-side);
}

.stat-card-red {
    border-color: var(--red-side);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.stat-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.side-icon {
    font-size: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
}

.stat-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-highlight {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
}

.stat-winrate {
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 700;
}

.stat-divider {
    border: none;
    border-top: 1px solid var(--secondary-color);
    margin: var(--spacing-md) 0;
}

.stat-subheader {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.no-data {
    background-color: var(--bg-card);
    border: 2px dashed var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xxl);
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}




@media (max-width: 768px) {
    .search-hero h1 {
        font-size: 2rem;
    }
    
    .team-info {
        flex-direction: column;
        text-align: center;
    }
    
    .team-logo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .team-initial {
        font-size: 2.5rem;
    }
    
    .team-name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .last-match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .last-match-teams {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .match-team {
        font-size: 1.1rem;
    }
}




/* =============================================
   TEAM NAVIGATION
   ============================================= */
.team-nav {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--secondary-color);
}

.team-nav-link {
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
    top: 2px;
}

.team-nav-link:hover:not(.disabled) {
    color: var(--text-primary);
    border-bottom-color: var(--accent-gold);
}

.team-nav-link.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.team-nav-link.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}





/* =============================================
   FILTERS SECTION
   ============================================= */
.filters-section {
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.filter-group {
    margin-bottom: var(--spacing-md);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--bg-secondary);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.filter-btn.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
}

.filter-select {
    width: 100%;
    max-width: 400px;
    padding: var(--spacing-sm);
    background-color: var(--bg-secondary);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    min-height: 100px;
}

.filter-select option {
    padding: var(--spacing-xs);
}

.filter-hint {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-style: italic;
}

.btn-apply-filters {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-xl);
    background-color: var(--accent-gold);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-apply-filters:hover {
    background-color: #daa520;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(200, 155, 60, 0.3);
}





/* =============================================
   DRAFT STATISTICS
   ============================================= */
.draft-stats-container {
    max-width: 95vw;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.draft-header {
    margin-bottom: var(--spacing-xl);
}

.stats-summary {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
}

.stats-summary strong {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.draft-split-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.draft-table-container:has(h4:contains("PICKS")) {
    min-height: 700px;
}

.champion-list {
    min-height: 400px;
}

.draft-section {
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    min-width: 0;
    overflow: auto;
}

.draft-section-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--secondary-color);
}

.draft-section-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.draft-section-stats {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.game-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.side-stat {
    font-size: 0.85rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.blue-stat {
    background-color: rgba(74, 144, 226, 0.15);
    color: #4a90e2;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.red-stat {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.draft-table-container {
    margin-bottom: var(--spacing-xl);
}

.table-title {
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.draft-grid.bans-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 0;
}

.draft-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.draft-section:nth-child(1) .draft-grid:not(.bans-grid) {
    grid-template-columns: repeat(3, 1fr);
}

.draft-section:nth-child(2) .draft-grid:not(.bans-grid) {
    grid-template-columns: repeat(4, 1fr);
}

.draft-column {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-md);
    min-height: 400px;
}

.draft-column-header {
    background-color: var(--secondary-color);
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    padding: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.champion-list {
    padding: var(--spacing-sm);
    flex: 1;
    min-width: 0;
}

.picks-container {
    margin-bottom: 2rem;
}

.bans-container {
    margin-bottom: 2rem;
}

.champion-row {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    transition: background 0.2s;
    border-radius: 4px;
    min-height: 32px;
}

.champion-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.champion-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--secondary-color);
    flex-shrink: 0;
}

.champion-name {
    flex: 1;
    font-size: 13px;
    margin-left: 8px;
    min-width: 0;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.champion-stats {
    display: flex;
    gap: 12px;
    min-width: 140px;
    justify-content: flex-end;
    font-size: 13px;
    flex-shrink: 0;
}

.champion-count {
    width: 30px;
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.champion-rate {
    width: 60px;
    text-align: right;
    font-weight: 600;
    color: #f0b323;
    flex-shrink: 0;
}

.champion-winrate {
    width: 50px;
    text-align: right;
    font-weight: 600;
    color: #4CAF50;  /* Green color for winrate */
    flex-shrink: 0;
}

.champion-winrate.high-winrate {
    color: #4CAF50;  /* Green for high winrate (>= 55%) */
}

.champion-winrate.medium-winrate {
    color: #FFC107;  /* Yellow/Gold for medium winrate (45-55%) */
}

.champion-winrate.low-winrate {
    color: #f44336;  /* Red for low winrate (< 45%) */
}

.no-data-small {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: var(--spacing-md);
    font-style: italic;
}

.champion-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    margin: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.header-name {
    flex: 1;
    min-width: 0;
}

.header-stats {
    display: flex;
    gap: 12px;
    min-width: 140px;
    justify-content: flex-end;
    font-size:11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    flex-shrink: 0;
}

.header-count {
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

.header-rate {
    width: 60px;
    text-align: right;
    flex-shrink: 0;
}

.header-winrate {
    width: 60px;
    text-align: right;
    flex-shrink: 0;
}

/* Replay Download Button Styles */
.replay-download-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-gold);
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent-gold);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.replay-download-btn:hover:not(:disabled) {
    background: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.replay-download-btn:active:not(:disabled) {
    transform: translateY(0);
}

.replay-download-btn:disabled,
.replay-download-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--text-muted);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}



/* =============================================
   CUSTOM MULTISELECT
   ============================================= */

.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.multiselect-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.multiselect-trigger.active {
    border-color: #f0b323;
    background: rgba(240, 179, 35, 0.1);
}

.multiselect-text {
    font-size: 14px;
    color: #fff;
}

.multiselect-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    transition: transform 0.2s;
}

.multiselect-trigger.active .multiselect-arrow {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.multiselect-dropdown.hidden {
    display: none;
}

.multiselect-options {
    padding: 4px;
}

.multiselect-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s;
    font-size: 14px;
}

.multiselect-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.multiselect-option input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #f0b323;
}

.multiselect-option span {
    color: #fff;
}

/* Scrollbar for dropdown */
.multiselect-dropdown::-webkit-scrollbar {
    width: 6px;
}

.multiselect-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.multiselect-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.multiselect-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}




/* =============================================
   PICK ORDER TABLE
   ============================================= */
.pick-order-container {
    margin-top: var(--spacing-xl);
}

.table-wrapper {
    overflow-x: auto;
}

.pick-order-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pick-order-table thead {
    background-color: var(--secondary-color);
}

.pick-order-table th {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    padding: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.pick-order-table th:last-child {
    border-right: none;
}

.pick-order-table th.role-header {
    text-align: left;
    background-color: rgba(0, 0, 0, 0.2);
}

.pick-order-table tbody tr {
    border-bottom: 1px solid var(--secondary-color);
}

.pick-order-table tbody tr:last-child {
    border-bottom: none;
}

.pick-order-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.pick-order-table td {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.pick-order-table td:last-child {
    border-right: none;
}

.role-cell {
    text-align: left !important;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.1);
}

.percentage-cell {
    font-weight: 600;
    color: var(--accent-gold);
    font-variant-numeric: tabular-nums;
}

/* Highlight high percentages */
.percentage-cell {
    position: relative;
}


/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1200px) {
    .draft-split-view {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .draft-stats-container {
        max-width: 900px;
    }
}

@media (max-width: 1024px) {
    .draft-split-view {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .team-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .team-nav-link {
        white-space: nowrap;
    }
    
    .draft-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .draft-grid.bans-grid {
        grid-template-columns: 1fr;
    }
    
    .draft-section-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-select {
        max-width: 100%;
    }

    .champion-stats {
        gap: 8px;
        min-width: 120px;
        font-size: 12px;
    }
    
    .champion-count {
        width: 25px;
    }
    
    .champion-rate {
        width: 50px;
    }
    
    .champion-winrate {
        width: 45px;
    }
    
    .header-stats {
        gap: 8px;
        min-width: 120px;
        font-size: 10px;
    }
    
    .header-count {
        width: 25px;
    }
    
    .header-rate {
        width: 50px;
    }
    
    .header-winrate {
        width: 45px;
    }
}




/* =============================================
   DRAFT SEQUENCES SECTION
   Add this to the end of style.css
   ============================================= */

.draft-sequences-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--secondary-color);
}

.badge-draft {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Series Container */
.series-container {
    background: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Series Header */
.series-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--secondary-color);
    border-bottom: 2px solid var(--accent-gold);
}

.series-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.series-date {
    color: var(--accent-gold);
    font-weight: 600;
}

.series-separator {
    color: rgba(255, 255, 255, 0.3);
}

.series-tournament,
.series-patch {
    color: var(--text-secondary);
}

.series-teams {
    color: var(--text-primary);
}

.series-teams strong {
    color: var(--accent-gold);
}

.series-score .score-badge {
    padding: 5px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
}

.score-badge.winning {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 2px solid #2ecc71;
}

.score-badge.losing {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

/* Series Drafts */
.series-drafts {
    padding: 1rem;
}

/* Individual Draft Game - COMPACT */
.draft-game {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.draft-game:last-child {
    margin-bottom: 0;
}

.draft-game.won {
    border-color: rgba(46, 204, 113, 0.3);
    background: rgba(46, 204, 113, 0.03);
}

.draft-game.lost {
    border-color: rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.03);
}

/* Draft Game Header - COMPACT */
.draft-game-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-number {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-gold);
}

.win-badge {
    background: #2ecc71;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.loss-badge {
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.game-duration {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: auto;
}

/* Draft Display */
.draft-display {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Team Draft - COMPACT */
.team-draft {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0.875rem;
    border: 2px solid transparent;
}

/* Highlight our team */
.team-draft.our-team {
    border: 2px solid var(--accent-gold);
}

/* Blue side - subtle blue tint */
.team-draft-blue {
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.08) 0%, 
        rgba(74, 144, 226, 0.03) 100%);
    border-left: 4px solid #4a90e2;
}

/* Red side - subtle red tint */
.team-draft-red {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.08) 0%, 
        rgba(231, 76, 60, 0.03) 100%);
    border-left: 4px solid #e74c3c;
}

/* Team Draft Header - COMPACT */
.team-draft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-draft-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.side-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
}

.blue-badge {
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
    border: 1px solid #4a90e2;
}

.red-badge {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* First Pick Badge */
.first-pick-badge {
    background: var(--accent-gold);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Draft Phases - COMPACT WITH SEPARATORS AFTER EACH PHASE */
.draft-phase {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

/* Remove padding from first phase */
.draft-phase:first-of-type {
    padding-top: 0;
}

/* Remove separator and padding from last phase */
.draft-phase:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Add dashed separator after every phase EXCEPT the last one */
.draft-phase:not(:last-child) {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Champion Item - COMPACT */
.champion-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s;
    margin-bottom: 0.3rem;
}

.champion-item:last-child {
    margin-bottom: 0;
}

.champion-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Left side: image & name */
.champion-item {
    justify-content: flex-start;
}

/* Right side: name & image (reversed) */
.champion-item.reverse {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* Champion Image - SMALLER */
.champion-item .champ-img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    object-fit: cover;
}

/* Champion Name - SMALLER */
.champion-item .champ-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

/* Ban items - dimmed */
.ban-item {
    opacity: 0.7;
}

.ban-item .champ-img {
    border-color: rgba(255, 255, 255, 0.15);
}

.ban-item .champ-name {
    color: var(--text-secondary);
}

.ban-item:hover {
    opacity: 0.9;
}

/* Pick items - highlighted */
.pick-item .champ-img {
    border-color: var(--accent-gold);
    border-width: 2px;
}

.pick-item:hover .champ-img {
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(240, 179, 35, 0.3);
}

/* VS Divider - SMALLER */
.draft-vs {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-align: center;
    padding: 1.5rem 0.5rem;
    align-self: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .draft-display {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .draft-vs {
        display: none;
    }
    
    .series-info {
        font-size: 0.8rem;
    }
    
    .champion-item .champ-img {
        width: 28px;
        height: 28px;
    }
    
    .champion-item .champ-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .series-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 0.75rem;
    }
    
    .series-score {
        width: 100%;
    }
    
    .series-drafts {
        padding: 0.75rem;
    }
    
    .draft-game {
        padding: 0.75rem;
    }
    
    .champion-item {
        padding: 0.25rem 0.3rem;
        gap: 0.4rem;
    }
    
    .champion-item .champ-img {
        width: 28px;
        height: 28px;
    }
    
    .champion-item .champ-name {
        font-size: 0.75rem;
    }
    
    .team-draft-header {
        flex-direction: column;
        gap: 0.4rem;
        align-items: flex-start;
    }
}



/* =============================================
   PLAYER STATISTICS PAGE
   ============================================= */

.players-stats-container {
    max-width: 1400px;
    margin: 0 auto;
}

.players-header {
    margin-bottom: var(--spacing-xl);
}

.subsection-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--accent-gold);
}

/* Synthetic Stats Section */
.synthetic-stats-section {
    margin-bottom: var(--spacing-xxl);
}

/* Fix for consistent spacing in stat rows */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;  /* Added for vertical alignment */
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    min-height: 28px;  /* Ensures consistent row height */
}

.stat-row span:first-child {
    flex: 1;
}

.stat-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    min-width: 60px;  /* Ensures consistent alignment of values */
}

/* Champion Statistics Table - TIGHTER ROWS */
.champion-stats-section {
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    overflow-x: auto;
}

.champion-stats-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.champion-stats-table thead {
    background-color: var(--secondary-color);
}

.champion-stats-table th {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);  /* Reduced from var(--spacing-md) */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.champion-stats-table th:last-child {
    border-right: none;
}

.champion-stats-table th.champion-col {
    text-align: left;
    min-width: 200px;
}

.champion-stats-table tbody tr {
    border-bottom: 1px solid var(--secondary-color);
    transition: background-color var(--transition-fast);
}

.champion-stats-table tbody tr:last-child {
    border-bottom: none;
}

.champion-stats-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.champion-stats-table td {
    padding: 0.5rem var(--spacing-md);  /* Reduced from var(--spacing-md) to 0.5rem for tighter rows */
    color: var(--text-primary);
    font-size: 0.9rem;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.champion-stats-table td:last-child {
    border-right: none;
}

.champion-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);  /* Reduced from var(--spacing-md) */
}

.champion-icon-large {
    width: 36px;   /* Reduced from 40px */
    height: 36px;  /* Reduced from 40px */
    border-radius: 6px;
    border: 2px solid var(--secondary-color);
    flex-shrink: 0;
}

.champion-name-large {
    font-weight: 600;
    font-size: 0.95rem;  /* Slightly reduced from 1rem */
}

.center-text {
    text-align: center;
}

.winrate-badge {
    padding: 3px 8px;  /* Reduced from 4px 10px */
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
}

.winrate-good {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.winrate-bad {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.stat-highlight {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Filters Card Enhancement */
.filters-card {
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .champion-stats-table {
        font-size: 0.85rem;
    }
    
    .champion-icon-large {
        width: 32px;
        height: 32px;
    }
    
    .champion-name-large {
        font-size: 0.9rem;
    }
    
    .champion-stats-table td {
        padding: 0.4rem var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .champion-stats-table th,
    .champion-stats-table td {
        padding: 0.35rem var(--spacing-sm);
        font-size: 0.75rem;
    }
    
    .champion-cell {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: flex-start;
    }
    
    .champion-icon-large {
        width: 28px;
        height: 28px;
    }
    
    .champion-name-large {
        font-size: 0.85rem;
    }
    
    .subsection-title {
        font-size: 1.1rem;
    }
    
    .stat-row {
        min-height: 24px;
    }
}



/* =============================================
   LOADING OVERLAY (Optional - for enhanced version)
   ============================================= */

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 10, 19, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

#loading-overlay.active {
    display: flex;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(10, 200, 255, 0.2);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner span {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}



/* =============================================
   OBJECTIVES STATISTICS PAGE - WITH RESIZABLE PNG IMAGES
   ============================================= */

.objectives-stats-container {
    max-width: 1400px;
    margin: 0 auto;
}

.objectives-header {
    margin-bottom: var(--spacing-xl);
}

.objectives-section {
    margin-bottom: var(--spacing-xxl);
}

/* Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Objective Card */
.objective-card {
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.objective-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Blue and Red side cards */
.objective-card-blue {
    border-color: var(--blue-side);
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.05) 0%, 
        var(--bg-card) 100%);
}

.objective-card-red {
    border-color: var(--red-side);
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.05) 0%, 
        var(--bg-card) 100%);
}

/* Objective Header */
.objective-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--secondary-color);
}

/* Objective Icon Image - RESIZED TO FIT */
.objective-icon-img {
    /* Set explicit size - adjust these values to your preference */
    width: 48px;
    height: 48px;
    
    /* Maintain aspect ratio and fit within the box */
    object-fit: contain;
    
    /* Prevent image from being larger than container */
    max-width: 100%;
    max-height: 100%;
    
    /* Add visual effects */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    
    /* Smooth rendering for scaled images */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    
    /* Smooth transitions */
    transition: all var(--transition-fast);
}

/* Special styling for card hover effect on icon */
.objective-card:hover .objective-icon-img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transform: scale(1.05);
}

.objective-header h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

/* Objective Stats */
.objective-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.objective-stats .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    min-height: 28px;
}

.objective-stats .stat-row span:first-child {
    flex: 1;
    font-size: 0.9rem;
}

.objective-stats .stat-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    min-width: 60px;
    font-size: 1rem;
}

.objective-stats .stat-highlight {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Side badges in subsection titles */
.subsection-title .side-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: var(--spacing-sm);
}

.subsection-title .blue-badge {
    background-color: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
    border: 1px solid #4a90e2;
}

.subsection-title .red-badge {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .objectives-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .objective-header h4 {
        font-size: 1.1rem;
    }
    
    /* Smaller icons on tablets */
    .objective-icon-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    
    .objective-card {
        padding: var(--spacing-md);
    }
    
    .objective-header {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }
    
    /* Even smaller icons on mobile */
    .objective-icon-img {
        width: 36px;
        height: 36px;
    }
    
    .objective-stats .stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .objective-stats .stat-row span:last-child {
        text-align: left;
    }
}

/* =============================================
   OPTIONAL: ALTERNATIVE SIZING OPTIONS
   Comment/uncomment these to try different sizes
   ============================================= */

/* OPTION 1: Larger icons (64px) */
/*
.objective-icon-img {
    width: 64px;
    height: 64px;
}

@media (max-width: 1024px) {
    .objective-icon-img {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 768px) {
    .objective-icon-img {
        width: 44px;
        height: 44px;
    }
}
*/

/* OPTION 2: Smaller icons (32px) */
/*
.objective-icon-img {
    width: 32px;
    height: 32px;
}

@media (max-width: 1024px) {
    .objective-icon-img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .objective-icon-img {
        width: 24px;
        height: 24px;
    }
}
*/

/* OPTION 3: Extra large icons (80px) */
/*
.objective-icon-img {
    width: 80px;
    height: 80px;
}

@media (max-width: 1024px) {
    .objective-icon-img {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 768px) {
    .objective-icon-img {
        width: 52px;
        height: 52px;
    }
}
*/




/* =============================================
   OBJECTIVES SUB-NAVIGATION
   ============================================= */

.objectives-subnav {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) 0;
    border-bottom: 2px solid var(--secondary-color);
    flex-wrap: wrap;
}

.obj-subnav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.obj-subnav-link:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent-gold);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.obj-subnav-link.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
}

.obj-subnav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* =============================================
   OBJECTIVES DETAIL PAGES
   ============================================= */

.objectives-detail-container {
    max-width: 1400px;
    margin: 0 auto;
}

.title-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: var(--spacing-sm);
}

.detail-section {
    margin-bottom: var(--spacing-xxl);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Stat Card */
.stat-card {
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.stat-card-title {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin: 0 0 var(--spacing-md) 0;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--secondary-color);
}

.stat-rows {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.stat-rows .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
}

.stat-rows .stat-row span:first-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.stat-highlight {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Lane Distribution */
.lane-distribution-section {
    margin-top: var(--spacing-xl);
}

.lane-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.lane-card {
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.lane-card h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md) 0;
}

.lane-bars {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.lane-bar-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: var(--spacing-sm);
    align-items: center;
}

.lane-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lane-bar-container {
    background-color: var(--bg-primary);
    border-radius: var(--radius-sm);
    height: 24px;
    overflow: hidden;
    border: 1px solid var(--secondary-color);
}

.lane-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    transition: width var(--transition-medium);
    min-width: 2px;
}

.lane-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

/* Top Players Table */
.top-players-section {
    margin-top: var(--spacing-xl);
}

.players-table-container {
    margin-top: var(--spacing-md);
    overflow-x: auto;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.players-table thead {
    background-color: var(--secondary-color);
}

.players-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.players-table td {
    padding: var(--spacing-md);
    border-top: 1px solid var(--secondary-color);
    color: var(--text-secondary);
}

.players-table tbody tr:hover {
    background-color: var(--bg-hover);
}

.player-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* Info Text */
.info-text {
    color: var(--text-secondary);
    font-style: italic;
    padding: var(--spacing-md);
    background-color: var(--bg-card);
    border-left: 4px solid var(--accent-gold);
    border-radius: var(--radius-sm);
}

/* Drake Type Distribution */
.drake-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.drake-type-card {
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
}

.drake-type-card h6 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: capitalize;
}

.drake-type-card .drake-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.drake-type-card .drake-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

/* Distribution Charts */
.distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.distribution-card {
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.distribution-card h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md) 0;
}

.distribution-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--secondary-color);
}

.distribution-item:last-child {
    border-bottom: none;
}

.distribution-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.distribution-value {
    font-weight: 600;
    color: var(--text-primary);
}

.distribution-winrate {
    color: var(--accent-gold);
    font-size: 0.85rem;
    margin-left: var(--spacing-xs);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .lane-grid {
        grid-template-columns: 1fr;
    }
    
    .drake-type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .objectives-subnav {
        gap: var(--spacing-xs);
    }
    
    .obj-subnav-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
    }
    
    .obj-subnav-link span {
        display: none;
    }
    
    .obj-subnav-icon {
        width: 28px;
        height: 28px;
    }
    
    .lane-bar-item {
        grid-template-columns: 40px 1fr auto;
    }
    
    .lane-value {
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .drake-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .players-table {
        font-size: 0.85rem;
    }
    
    .players-table th,
    .players-table td {
        padding: var(--spacing-sm);
    }
}


/* =============================================
   OBJECTIVE DETAIL LINK (for overview cards)
   ============================================= */

.objective-detail-link {
    display: block;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.objective-detail-link:hover {
    background-color: var(--accent-gold-light);
    transform: translateX(4px);
}

.objective-detail-link:active {
    transform: translateX(2px);
}






/* =============================================
   DRAGONS PAGE STYLE
   ============================================= */

/* Dragon Section Container */
.dragon-section {
    margin-top: var(--spacing-lg, 32px);
}

/* Drake Type Grids */
.drake-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md, 20px);
    margin-bottom: var(--spacing-md, 20px);
}

.drake-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md, 20px);
}

/* Drake Card */
.drake-card {
    background: var(--card-bg, #16213e);
    border: 1px solid var(--card-border, #2a2f3a);
    border-radius: var(--radius-md, 8px);
    padding: var(--spacing-md, 20px);
    transition: all var(--transition-medium, 0.3s);
}

.drake-card:hover {
    border-color: var(--accent-gold, #c89b3c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 155, 60, 0.15);
}

.drake-title {
    color: var(--accent-gold, #c89b3c);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm, 12px);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drake-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drake-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drake-stat-row:last-child {
    border-bottom: none;
}

.drake-label {
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.9rem;
}

.drake-value {
    font-weight: 600;
    font-size: 1rem;
}

.drake-value.secured {
    color: #4caf50;
}

.drake-value.missed {
    color: #ff5252;
}

.drake-value.time {
    color: var(--accent-gold, #c89b3c);
}

/* Soul Grid */
.soul-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md, 20px);
    margin-bottom: var(--spacing-md, 20px);
}

/* Soul Card */
.soul-card {
    background: var(--card-bg, #16213e);
    border: 1px solid var(--card-border, #2a2f3a);
    border-radius: var(--radius-md, 8px);
    padding: var(--spacing-md, 20px);
    transition: all var(--transition-medium, 0.3s);
}

.soul-card:hover {
    border-color: var(--accent-gold, #c89b3c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 155, 60, 0.15);
}

.soul-title {
    color: var(--accent-gold, #c89b3c);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md, 16px);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.soul-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm, 12px);
}

.soul-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.soul-header {
    color: var(--text-primary, #ffffff);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--accent-gold, #c89b3c);
}

.soul-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.soul-label {
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.85rem;
}

.soul-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary, #ffffff);
}

.soul-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .drake-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .drake-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .soul-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .drake-grid-4,
    .drake-grid-3,
    .soul-grid {
        grid-template-columns: 1fr;
    }
    
    .drake-card,
    .soul-card {
        padding: var(--spacing-sm, 16px);
    }
    
    .drake-title,
    .soul-title {
        font-size: 1rem;
    }
}




/* =============================================
   WARD HEATMAP SECTION
   ============================================= */

.ward-heatmap-section {
    margin-top: var(--spacing-xxl);
    background-color: var(--bg-card);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.heatmap-header {
    margin-bottom: var(--spacing-lg);
}

.heatmap-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
}

/* Heatmap Controls */
.heatmap-controls {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.control-group {
    margin-bottom: var(--spacing-lg);
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Side Filter Buttons */
.side-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.side-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--bg-primary);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.side-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.side-btn.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
}

/* Time Slider */
.time-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-primary);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    margin: var(--spacing-sm) 0;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    border: 2px solid var(--bg-card);
}

.time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    border: 2px solid var(--bg-card);
}

.time-slider::-webkit-slider-thumb:hover {
    background: #ffd700;
}

.time-slider::-moz-range-thumb:hover {
    background: #ffd700;
}

.time-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

#time-display {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Load Button */
.btn-load-heatmap {
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--accent-gold);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-load-heatmap:hover {
    background-color: #ffd700;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 150, 0, 0.3);
}

.btn-load-heatmap:disabled {
    background-color: var(--secondary-color);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.heatmap-loading {
    margin-top: var(--spacing-md);
    color: var(--accent-gold);
    font-style: italic;
}

.heatmap-loading.hidden {
    display: none;
}

/* Heatmap Container */
.heatmap-container {
    position: relative;
    max-width: 512px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

#ward-heatmap-canvas {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.heatmap-info {
    padding: var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    text-align: center;
    font-size: 0.9rem;
}

.heatmap-info.hidden {
    display: none;
}

.heatmap-info p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .side-buttons {
        flex-direction: column;
    }
    
    .side-btn {
        width: 100%;
    }
}


/* =============================================
   HEATMAP LEGEND
   ============================================= */

.heatmap-legend {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background-color: rgba(10, 20, 40, 0.9);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    min-width: 150px;
    backdrop-filter: blur(4px);
}

.legend-title {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.legend-gradient {
    height: 20px;
    border-radius: var(--radius-sm);
    background: linear-gradient(
        to right,
        rgba(255, 200, 0, 0.1),
        rgba(255, 100, 0, 0.5),
        rgba(255, 0, 0, 0.8)
    );
    margin-bottom: var(--spacing-xs);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.legend-labels span {
    font-weight: 500;
}









.no-data-large {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }