/* =====================================================
   İstanbul Fenerbahçe - Premium Tasarım
   Fenerbahçe Renkleri: Sarı #FFED00, Lacivert #00205B
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Fenerbahçe Renkleri */
    --fb-yellow: #FFED00;
    --fb-yellow-dark: #e6d500;
    --fb-navy: #00205B;
    --fb-navy-light: #0a3d7a;
    --fb-navy-dark: #001233;
    --fb-navy-gradient: linear-gradient(135deg, #00205B 0%, #001233 100%);
    
    /* Aksan Renkleri */
    --accent-gold: #FFD700;
    --accent-blue: #1e90ff;
    
    /* Nötr Renkler */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Durum Renkleri */
    --success: #22c55e;
    --success-bg: #dcfce7;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    
    /* Tipografi */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Boyutlar */
    --container-width: 1280px;
    --header-height: 72px;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-xs: 6px;
    
    /* Gölgeler */
    --shadow-xs: 0 1px 2px rgba(0,32,91,0.04);
    --shadow-sm: 0 2px 4px rgba(0,32,91,0.06);
    --shadow: 0 4px 12px rgba(0,32,91,0.08);
    --shadow-md: 0 8px 24px rgba(0,32,91,0.12);
    --shadow-lg: 0 16px 40px rgba(0,32,91,0.16);
    --shadow-xl: 0 24px 60px rgba(0,32,91,0.2);
    --shadow-glow: 0 0 40px rgba(255,237,0,0.3);
    
    /* Geçişler */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* =====================================================
   Layout
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1;
    padding-bottom: 80px;
}

/* =====================================================
   Header - Premium Design
   ===================================================== */
.main-header {
    background: var(--fb-navy);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,32,91,0.3);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-family: var(--font-body);
    font-weight: 300;
}

.logo-text strong {
    font-weight: 800;
    color: var(--fb-yellow);
}

.main-nav ul {
    display: flex;
    gap: 8px;
}

.main-nav a {
    display: block;
    padding: 10px 20px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.main-nav a.active {
    color: var(--fb-navy);
    background: var(--fb-yellow);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* =====================================================
   Hero Section - Impactful Design
   ===================================================== */
.hero {
    background: var(--fb-navy-gradient);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,237,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 80px);
    color: var(--white);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--fb-yellow);
    display: block;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto;
}

/* =====================================================
   Section Styles
   ===================================================== */
.section {
    padding: 60px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--fb-navy);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title .icon {
    font-size: 28px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.view-all {
    color: var(--fb-navy);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--fb-yellow);
    border-radius: 25px;
    transition: var(--transition);
}

.view-all:hover {
    background: var(--fb-yellow-dark);
    transform: translateX(4px);
}

/* =====================================================
   Next Match Card - Premium
   ===================================================== */
.next-match-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.next-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fb-navy), var(--fb-yellow));
}

.match-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.match-info .league {
    background: var(--fb-navy);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.match-info .round {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.match-teams .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 150px;
}

.team-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
    transition: var(--transition);
}

.next-match-card:hover .team-logo {
    transform: scale(1.05);
}

.team-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--gray-800);
    text-align: center;
}

.match-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
}

.vs-text {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--fb-navy);
    letter-spacing: 4px;
}

.match-date {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
    text-transform: capitalize;
}

.match-time {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--fb-navy);
    letter-spacing: 2px;
}

.match-venue {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
    color: var(--gray-500);
    font-size: 14px;
}

/* =====================================================
   Match Cards Grid
   ===================================================== */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.match-card {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    display: block;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--fb-yellow);
}

.match-league {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.match-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.team-logo-sm {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.match-team span {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.3;
}

.match-score {
    padding: 8px 16px;
    background: var(--fb-navy);
    border-radius: var(--border-radius-xs);
}

.match-score .score {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    letter-spacing: 2px;
}

.match-date-small {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    font-size: 13px;
    color: var(--gray-400);
    text-align: center;
}

/* =====================================================
   Standing Card
   ===================================================== */
.standing-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.standing-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: var(--fb-navy-gradient);
    border-radius: var(--border-radius-sm);
    min-width: 100px;
}

.rank-number {
    font-family: var(--font-display);
    font-size: 56px;
    color: var(--fb-yellow);
    line-height: 1;
}

.rank-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.standing-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.standing-stats .stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--fb-navy);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.standing-form {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

.form-badges {
    display: flex;
    gap: 6px;
}

.form-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--white);
}

.form-badge.win { background: var(--success); }
.form-badge.draw { background: var(--gray-400); }
.form-badge.loss { background: var(--danger); }

/* =====================================================
   Page Header
   ===================================================== */
.page-header {
    background: var(--fb-navy-gradient);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fb-yellow);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

/* =====================================================
   Filter Bar
   ===================================================== */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--fb-navy);
    color: var(--fb-navy);
}

.filter-btn.active {
    background: var(--fb-navy);
    border-color: var(--fb-navy);
    color: var(--white);
}

/* =====================================================
   Tabs
   ===================================================== */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 30px;
    width: fit-content;
}

.tab-btn {
    padding: 12px 28px;
    border-radius: var(--border-radius-xs);
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--fb-navy);
}

.tab-btn.active {
    background: var(--white);
    color: var(--fb-navy);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   Fixtures List
   ===================================================== */
.fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fixture-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.fixture-card.played {
    cursor: pointer;
}

.fixture-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-200);
}

.fixture-card.played:hover {
    border-color: var(--fb-yellow);
    transform: translateX(4px);
}

.fixture-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 12px;
    background: var(--fb-navy);
    border-radius: var(--border-radius-xs);
    color: var(--white);
}

.fixture-date .day {
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1;
}

.fixture-date .month {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
}

.fixture-date .time {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
    color: var(--fb-yellow);
}

.fixture-info {
    flex: 1;
}

.fixture-league {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.fixture-teams {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fixture-teams.with-score {
    justify-content: space-between;
}

.fixture-score {
    padding: 8px 20px;
    background: var(--fb-navy);
    border-radius: var(--border-radius-xs);
}

.fixture-score .score {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--white);
    letter-spacing: 2px;
}

.fixture-venue {
    margin-top: 10px;
    font-size: 13px;
    color: var(--gray-400);
}

.fixture-arrow {
    color: var(--gray-300);
    font-size: 20px;
    transition: var(--transition);
}

.fixture-card.played:hover .fixture-arrow {
    color: var(--fb-yellow);
    transform: translateX(4px);
}

.vs {
    font-weight: 600;
    color: var(--gray-400);
}

/* =====================================================
   Match Detail Header
   ===================================================== */
.match-detail-header {
    background: var(--fb-navy-gradient);
    padding: 50px 0 60px;
    position: relative;
}

.match-detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fb-yellow);
}

.match-league-info {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 30px;
}

.match-teams-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.team-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 160px;
}

.team-logo-lg {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}

.team-detail .team-name {
    color: var(--white);
    font-size: 20px;
}

.match-score-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.score-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.score-num {
    font-family: var(--font-display);
    font-size: 72px;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.score-sep {
    font-size: 48px;
    color: var(--fb-yellow);
}

.match-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.match-status.finished {
    background: var(--success);
    color: var(--white);
}

.match-status.upcoming {
    background: var(--fb-yellow);
    color: var(--fb-navy);
}

.halftime-score {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.match-date-detail {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-transform: capitalize;
}

.match-venue-detail {
    text-align: center;
    margin-top: 24px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* =====================================================
   Match Detail Tabs
   ===================================================== */
.match-detail-content {
    padding-top: 40px;
}

.match-tabs {
    display: flex;
    gap: 8px;
    background: var(--white);
    padding: 8px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    justify-content: center;
}

.match-tab {
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-600);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-tab:hover {
    color: var(--fb-navy);
    background: var(--gray-50);
}

.match-tab.active {
    background: var(--fb-navy);
    color: var(--white);
}

.match-tab-content {
    display: none;
}

.match-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stats-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.stats-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fb-navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--fb-yellow);
}

.stats-card .stat-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.stats-card .stat-row:last-child {
    border-bottom: none;
}

.stats-card .stat-home,
.stats-card .stat-away {
    min-width: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--fb-navy);
    font-family: var(--font-display);
}

.stats-card .stat-label {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--gray-600);
}

.back-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

/* =====================================================
   Match Summary (SEO Text)
   ===================================================== */
.match-summary {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.match-summary h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--fb-navy);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.match-summary p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 15px;
}

.match-summary p:last-child {
    margin-bottom: 0;
}

.match-summary strong {
    color: var(--fb-navy);
    font-weight: 600;
}

/* =====================================================
   FAQ Section
   ===================================================== */
.faq-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-top: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.faq-section h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--fb-navy);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--fb-navy);
}

.faq-item.active {
    border-color: var(--fb-navy);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--gray-50);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: left;
    transition: var(--transition);
}

.faq-item.active .faq-question {
    background: var(--fb-navy);
    color: var(--white);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    transition: var(--transition);
    color: var(--fb-navy);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--fb-yellow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px;
}

.faq-answer p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 14px;
}

/* =====================================================
   Match Events Timeline
   ===================================================== */
.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 700px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.event-item:hover {
    box-shadow: var(--shadow-sm);
}

.event-item.home {
    border-left-color: var(--fb-navy);
}

.event-item.away {
    border-left-color: var(--fb-yellow);
}

.event-time {
    font-weight: 700;
    font-size: 15px;
    color: var(--fb-navy);
    min-width: 50px;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.event-icon {
    font-size: 22px;
}

.event-content {
    flex: 1;
}

.event-type {
    display: block;
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-player {
    font-weight: 600;
    color: var(--gray-800);
}

.event-assist {
    font-size: 13px;
    color: var(--gray-500);
}

.event-team {
    font-size: 12px;
    color: var(--gray-400);
    text-align: right;
    min-width: 90px;
}

/* =====================================================
   Match Stats
   ===================================================== */
.match-stats-comparison {
    max-width: 600px;
    margin: 0 auto;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-home, .stat-away {
    font-weight: 700;
    font-size: 16px;
    color: var(--fb-navy);
    min-width: 50px;
    text-align: center;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.stat-bar-container {
    flex: 1;
    text-align: center;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
}

.yellow-card { color: var(--warning) !important; }
.red-card { color: var(--danger) !important; }

/* =====================================================
   Lineups
   ===================================================== */
.lineups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.lineup-team h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--fb-navy);
}

.formation-text {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
    font-weight: 500;
}

.lineup-list h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.lineup-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--white);
    border-radius: var(--border-radius-xs);
    margin-bottom: 6px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.lineup-player:hover {
    box-shadow: var(--shadow-sm);
}

.lineup-player.sub {
    background: var(--gray-50);
}

.player-number {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--fb-navy);
    min-width: 28px;
    text-align: center;
}

.lineup-player .player-name {
    flex: 1;
    font-weight: 500;
    color: var(--gray-700);
}

.player-pos {
    font-size: 11px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* =====================================================
   Standings Table
   ===================================================== */
.standings-table-wrapper {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: var(--fb-navy);
    color: var(--white);
    padding: 16px 12px;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.standings-table th:first-child {
    text-align: left;
    padding-left: 20px;
}

.standings-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table tr:hover {
    background: var(--gray-50);
}

.standings-table tr.highlight {
    background: rgba(255,237,0,0.1);
}

.standings-table tr.highlight:hover {
    background: rgba(255,237,0,0.15);
}

.standings-table .rank {
    font-weight: 700;
    color: var(--fb-navy);
}

.standings-table .team {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding-left: 20px;
    font-weight: 500;
}

.standings-table .team img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.standings-table .points {
    font-weight: 700;
    color: var(--fb-navy);
    font-size: 16px;
}

/* =====================================================
   Players Grid
   ===================================================== */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.player-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.player-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.player-photo-wrapper {
    position: relative;
    background: var(--fb-navy-gradient);
    padding: 20px;
    text-align: center;
}

.player-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--fb-yellow);
    margin: 0 auto;
}

.player-number-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--fb-yellow);
    color: var(--fb-navy);
    font-family: var(--font-display);
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-info {
    padding: 20px;
    text-align: center;
}

.player-info h3 {
    font-size: 16px;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.player-position {
    font-size: 13px;
    color: var(--gray-500);
}

.player-stats-mini {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.stat-mini {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

.stat-mini.goal {
    color: var(--success);
}

.stat-mini.assist {
    color: var(--accent-blue);
}

/* =====================================================
   Player Detail Page
   ===================================================== */
.player-detail-header {
    background: var(--fb-navy-gradient);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.player-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,237,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.player-detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fb-yellow);
}

.player-profile {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.player-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.player-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--fb-yellow);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.player-jersey-number {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--fb-yellow);
    color: var(--fb-navy);
    font-family: var(--font-display);
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.player-main-info h1 {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.player-position-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.player-details-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
}

.detail-icon {
    font-size: 18px;
}

/* Player Stats Table */
.player-stats-table-wrapper {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.player-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.player-stats-table th {
    background: var(--fb-navy);
    color: var(--white);
    padding: 16px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-stats-table th:first-child {
    text-align: left;
    padding-left: 24px;
}

.player-stats-table td {
    padding: 16px 14px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
    font-size: 15px;
    color: var(--gray-700);
}

.player-stats-table td:first-child {
    text-align: left;
    padding-left: 24px;
}

.player-stats-table tr:last-child td {
    border-bottom: none;
}

.player-stats-table tr:hover {
    background: var(--gray-50);
}

.player-stats-table .season-cell {
    font-weight: 700;
    color: var(--fb-navy);
}

.player-stats-table .goal-cell {
    font-weight: 700;
    color: var(--success);
}

.player-stats-table .assist-cell {
    font-weight: 600;
    color: var(--accent-blue);
}

.player-stats-table .yellow-cell {
    color: var(--warning);
    font-weight: 600;
}

.player-stats-table .red-cell {
    color: var(--danger);
    font-weight: 600;
}

.rating-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.rating-badge.high {
    background: var(--success-bg);
    color: var(--success);
}

.rating-badge.medium {
    background: rgba(245,158,11,0.15);
    color: var(--warning);
}

.rating-badge.low {
    background: var(--danger-bg);
    color: var(--danger);
}

.no-rating {
    color: var(--gray-400);
}

/* Career Stats */
.player-career-stats {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.player-career-stats h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--fb-navy);
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.career-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
}

.career-stat {
    text-align: center;
    padding: 20px 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.career-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.career-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--fb-navy);
    line-height: 1;
    margin-bottom: 8px;
}

.career-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.career-stat.yellow-stat {
    background: rgba(245,158,11,0.1);
}

.career-stat.yellow-stat .career-stat-value {
    color: var(--warning);
}

.career-stat.red-stat {
    background: rgba(239,68,68,0.1);
}

.career-stat.red-stat .career-stat-value {
    color: var(--danger);
}

/* Responsive Player Detail */
@media (max-width: 768px) {
    .player-profile {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .player-image {
        width: 150px;
        height: 150px;
    }
    
    .player-jersey-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .player-main-info h1 {
        font-size: 32px;
    }
    
    .player-details-row {
        justify-content: center;
    }
    
    .player-stats-table .hide-mobile {
        display: none;
    }
    
    .career-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   Empty State
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 2px dashed var(--gray-200);
}

.empty-state p {
    color: var(--gray-500);
    font-size: 16px;
}

/* =====================================================
   Back Link
   ===================================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fb-navy);
    font-weight: 600;
    padding: 12px 24px;
    background: var(--fb-yellow);
    border-radius: 25px;
    transition: var(--transition);
}

.back-link:hover {
    background: var(--fb-yellow-dark);
    transform: translateX(-4px);
}

/* =====================================================
   Footer
   ===================================================== */
.main-footer {
    background: var(--fb-navy-gradient);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand .logo-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-brand small {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-links h4 {
    color: var(--fb-yellow);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--fb-yellow);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* =====================================================
   Error Pages
   ===================================================== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.error-page h1 {
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--fb-navy);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page h2 {
    font-size: 24px;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.error-page p {
    color: var(--gray-500);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--fb-yellow);
    color: var(--fb-navy);
    font-weight: 700;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--fb-yellow-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    .standings-table .hide-tablet {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        padding: 0 16px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--fb-navy);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }
    
    .main-nav a {
        padding: 14px 20px;
    }
    
    .hero {
        padding: 50px 0 70px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 30px;
    }
    
    .team-logo {
        width: 80px;
        height: 80px;
    }
    
    .match-teams-detail {
        flex-direction: column;
        gap: 30px;
    }
    
    .score-num {
        font-size: 52px;
    }
    
    .team-logo-lg {
        width: 80px;
        height: 80px;
    }
    
    .lineups-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .standing-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .standing-form {
        margin-left: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .filter-bar {
        justify-content: center;
    }
    
    .fixture-card {
        flex-wrap: wrap;
    }
    
    .fixture-teams.with-score {
        flex-direction: column;
        gap: 12px;
    }
    
    .event-team {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .next-match-card {
        padding: 24px;
    }
    
    .tabs {
        width: 100%;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
    }
    
    .standings-table .team span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
