/* ===================================
   NovaCup - Players Page Styles
   (Page-specific layout only — the player card itself reuses
   .arena-player-card / .portrait-frame / .player-badge etc. from
   premium.css, so it always matches the homepage teaser design.)
   =================================== */

/* Page Header */
.page-header {
    position: relative;
    padding: 140px 0 60px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-gradient-red {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
    top: -100px;
    right: 10%;
}

.page-gradient-blue {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 60%);
    bottom: -100px;
    left: 20%;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--red-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-desc {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Players Filter */
.players-filter {
    position: sticky;
    top: 0;
    z-index: 500;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--bg-tertiary);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.filter-btn.red.active {
    background: rgba(230, 57, 70, 0.15);
    border-color: var(--red-primary);
    color: var(--red-primary);
}

.filter-btn.blue.active {
    background: rgba(29, 78, 216, 0.15);
    border-color: var(--blue-primary);
    color: var(--blue-primary);
}

.filter-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.filter-dot.red {
    background: var(--red-primary);
}

.filter-dot.blue {
    background: var(--blue-primary);
}

/* Players Section */
.players-section {
    padding: 60px 0 100px;
    background: var(--bg-secondary);
}

.team-section {
    margin-bottom: 70px;
}

.team-section:last-child {
    margin-bottom: 0;
}

.team-section-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
}

.team-badge.red {
    background: rgba(230, 57, 70, 0.12);
    color: var(--red-primary);
    border: 1px solid rgba(230, 57, 70, 0.4);
}

.team-badge.blue {
    background: rgba(29, 78, 216, 0.12);
    color: var(--blue-secondary);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Players Grid — explicit 4 columns on desktop */
.players-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    max-width: 1040px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
    .players-archive-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 18px;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 120px 0 40px;
    }

    .players-filter {
        padding: 14px 0;
    }

    .team-section {
        margin-bottom: 48px;
    }

    .team-section-header {
        margin-bottom: 24px;
    }

    .players-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 14px;
    }
}

@media (max-width: 380px) {
    .players-archive-grid {
        gap: 16px 10px;
    }
}
