/* Javier Hernández (Chicharito) Fan Site - LA Galaxy Theme */
/* Color palette: Galaxy Navy, White, Gold accents */

:root {
    /* LA Galaxy Colors */
    --primary-color: #00245D;
    --primary-dark: #001840;
    --primary-light: #0D3B7A;
    --secondary-color: #FFFFFF;
    --accent-color: #FFD200;
    --accent-light: #FFE44D;

    /* Backgrounds */
    --bg-color: #0A0A12;
    --bg-card: rgba(0, 36, 93, 0.15);
    --bg-gradient: linear-gradient(135deg, #0A0A12 0%, #0D1B2A 50%, #1A1A2E 100%);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Borders & Shadows */
    --border-color: rgba(0, 36, 93, 0.4);
    --shadow-color: rgba(0, 36, 93, 0.3);
    --glow-color: rgba(255, 210, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.98) 0%, rgba(10, 10, 18, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 18, 0.98);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px var(--accent-color));
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 36, 93, 0.3);
}

.nav-link.active {
    color: var(--accent-color);
    background: rgba(0, 36, 93, 0.4);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* Mobile Menu Toggle — hidden on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 1010;
    position: relative;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 18, 0.6) 0%,
            rgba(10, 10, 18, 0.4) 30%,
            rgba(10, 10, 18, 0.7) 70%,
            rgba(10, 10, 18, 1) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 36, 93, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 210, 0, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10, 10, 18, 0.4) 0%, rgba(10, 10, 18, 0.8) 50%, var(--bg-color) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 60px 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px var(--shadow-color);
    animation: shine 3s infinite;
}

@keyframes shine {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    min-width: 140px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px var(--shadow-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-color);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* ==================== HERO PAGE (internal pages) ==================== */
.hero-page {
    min-height: 50vh;
    padding-top: 80px;
    background:
        radial-gradient(ellipse at center, rgba(0, 36, 93, 0.3) 0%, transparent 70%),
        var(--bg-gradient);
}

.hero-page .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 4px;
}

/* ==================== INFO CARDS GRID ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 10px var(--shadow-color));
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.stat-big-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

/* ==================== BIO CARD ==================== */
.bio-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.bio-card h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bio-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Bio Grid */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.bio-main {
    flex: 1;
}

.bio-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.quick-facts {
    list-style: none;
}

.quick-facts li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.quick-facts li:last-child {
    border-bottom: none;
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.data-item {
    background: rgba(0, 36, 93, 0.2);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.data-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.data-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== TIMELINE ==================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(0, 36, 93, 0.2);
    border-color: var(--primary-color);
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 28px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

.timeline-item.featured .timeline-marker {
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--glow-color);
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== CAREER TIMELINE ==================== */
.career-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.career-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.career-item:hover {
    background: rgba(0, 36, 93, 0.15);
    border-color: var(--primary-color);
}

.career-item.featured {
    border-color: var(--accent-color);
    background: rgba(255, 210, 0, 0.05);
}

.career-year {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    padding: 10px;
    background: rgba(0, 36, 93, 0.3);
    border-radius: 8px;
    height: fit-content;
}

.career-club h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.career-club p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== STATS TABLE ==================== */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.stats-table th,
.stats-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stats-table th {
    background: rgba(0, 36, 93, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.stats-table tr:hover {
    background: rgba(0, 36, 93, 0.15);
}

.stats-table .stats-highlight {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.stats-table .stats-total {
    background: rgba(0, 36, 93, 0.2);
    font-weight: 700;
}

/* ==================== GALLERY ==================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: rgba(0, 36, 93, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==================== HIGHLIGHTS SECTION ==================== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.highlight-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.highlight-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 36, 93, 0.4);
}

.highlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.highlight-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 36, 93, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.highlight-card:hover .play-btn {
    background: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--primary-color);
    border-radius: 24px;
    z-index: -1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==================== MATCHES WIDGET ==================== */
.matches-widget {
    background: linear-gradient(135deg, rgba(10, 10, 18, 0.95) 0%, rgba(13, 27, 42, 0.95) 100%);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.matches-widget-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
}

.matches-widget-divider {
    width: 2px;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(180deg, transparent, var(--primary-color), var(--accent-color), var(--primary-color), transparent);
    border-radius: 2px;
}

.matches-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.matches-widget-icon {
    font-size: 1.5rem;
}

.matches-widget-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
}

.matches-widget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-match-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.widget-match-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    background: rgba(0, 36, 93, 0.2);
}

.widget-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.widget-match-vs {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0 8px;
}

.widget-match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.widget-match-date {
    color: var(--text-muted);
}

.widget-match-competition {
    color: var(--primary-light);
    font-weight: 500;
}

.widget-match-result {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 8px;
}

.widget-match-result.win {
    background: linear-gradient(135deg, #00c853, #00a844);
}

.widget-match-result.draw {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a1a;
}

.widget-match-result.loss {
    background: linear-gradient(135deg, #f44336, #c62828);
}

.widget-match-goal {
    color: var(--accent-color);
    margin-left: 6px;
}

.widget-match-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease infinite;
    border-radius: 12px;
    height: 85px;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.matches-widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.matches-widget-update {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==================== NEWS ==================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-item {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.news-item .news-content {
    padding: 24px;
}

.news-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.news-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==================== CTA BANNER ==================== */
.section-cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links-vertical a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.social-links-vertical a:hover {
    color: var(--accent-color);
}

/* ==================== TRANSFER TIMELINE ==================== */
.transfer-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transfer-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.transfer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.transfer-date {
    font-weight: 700;
    color: var(--accent-color);
}

.transfer-fee {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.transfer-clubs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.transfer-arrow {
    font-size: 1.5rem;
}

/* ==================== FEATURE LIST ==================== */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '⚽';
    position: absolute;
    left: 0;
    top: 12px;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* ==================== FOOTER ==================== */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bio-grid {
        grid-template-columns: 1fr;
    }

    .bio-sidebar {
        position: static;
    }

    .career-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* ==================== PLACEHOLDER CONTENT ==================== */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 36, 93, 0.15));
    padding: 20px;
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== CONTACT FORM ==================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 36, 93, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 36, 93, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 36, 93, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 600;
}

/* ==================== SOCIAL SHARE BUTTONS ==================== */
.share-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 24px 0;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 36, 93, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.share-btn.facebook {
    background: rgba(59, 89, 152, 0.2);
    border-color: #3b5998;
}

.share-btn.facebook:hover {
    background: #3b5998;
    color: white;
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1da1f2;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

/* ==================== MOBILE RESPONSIVE CONTACT ==================== */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

/* ==================== NEWS SECTION ==================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.news-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.news-source {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-content h3 {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-primary);
}

.news-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: var(--accent-color);
}

.news-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.news-loading p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-image {
        height: 200px;
    }

    .news-content {
        padding: 20px;
    }
}


.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 12px;
}

/* ==================== SOCIAL MEDIA & SOURCES - BRAND COLORS ==================== */

/* Social Media Links with Brand Colors */
.footer-section .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.footer-section .social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Instagram - Gradient */
.footer-section .social-links a[href*="instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.footer-section .social-links a[href*="instagram"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 148, 51, 0.4);
}

/* Twitter/X - Black */
.footer-section .social-links a[href*="x.com"],
.footer-section .social-links a[href*="twitter"] {
    background: #000000;
    color: white;
}

.footer-section .social-links a[href*="x.com"]:hover,
.footer-section .social-links a[href*="twitter"]:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Facebook - Blue */
.footer-section .social-links a[href*="facebook"] {
    background: #1877f2;
    color: white;
}

.footer-section .social-links a[href*="facebook"]:hover {
    background: #0d65d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* TikTok - Black with Pink accent */
.footer-section .social-links a[href*="tiktok"] {
    background: #000000;
    color: white;
    border-color: #fe2c55;
}

.footer-section .social-links a[href*="tiktok"]:hover {
    background: #fe2c55;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 44, 85, 0.4);
}

/* YouTube - Red */
.footer-section .social-links a[href*="youtube"] {
    background: #ff0000;
    color: white;
}

.footer-section .social-links a[href*="youtube"]:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

/* Sources Links - Modern Cards */
.footer-section .sources-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.footer-section .sources-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 210, 0, 0.1);
    border: 2px solid rgba(255, 210, 0, 0.3);
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section .sources-links a:hover {
    background: rgba(255, 210, 0, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 210, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .footer-section .social-links,
    .footer-section .sources-links {
        flex-direction: column;
    }

    .footer-section .social-links a,
    .footer-section .sources-links a {
        width: 100%;
        justify-content: center;
    }
}

/* Center authoritative sources in footer */
.footer-section:has(.sources-links) {
    text-align: center;
}

.footer-section .sources-links {
    justify-content: center;
}

/* ==================== SKIP TO CONTENT (ACCESSIBILITY) ==================== */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 700;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}


/* === Mobile Menu — Correct Fix ===
   pointer-events:none ONLY inside mobile media query, not globally */
/* Always make toggle button touchable */


/* ==================== SEO CONTENT SECTION ==================== */
.seo-content {
    padding: 64px 0 48px;
    background: rgba(0, 36, 93, 0.06);
    border-top: 1px solid rgba(0, 36, 93, 0.25);
}

.seo-article h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.seo-article h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 28px 0 10px;
    text-transform: none;
    letter-spacing: 0;
}

.seo-article p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.85;
    margin-bottom: 18px;
    font-size: 0.975rem;
}

/* ==================== TEXT-LINK (inline) ==================== */
/* All internal links inside content — golden, dashed underline */
.text-link,
.seo-article a {
    color: var(--accent-color) !important;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-style 0.2s;
}

.text-link:hover,
.seo-article a:hover {
    color: var(--accent-light) !important;
    text-decoration-style: solid;
}

/* Also fix any a inside .news-card or .match-card */
.news-card a:not(.btn),
.match-card a:not(.btn) {
    color: var(--accent-color);
    text-decoration: none;
}

/* ==================== SEO NEWS LINKS BLOCK ==================== */
.seo-news-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

.seo-news-links a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    padding: 10px 14px;
    border-left: 3px solid var(--accent-color);
    background: rgba(0, 36, 93, 0.12);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
}

.seo-news-links a:hover {
    background: rgba(0, 36, 93, 0.25);
    color: var(--accent-color) !important;
    padding-left: 20px;
}

/* ==================== RELATED PAGES BLOCK ==================== */
.related-pages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.sport-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(0, 36, 93, 0.18);
    border: 1px solid rgba(0, 36, 93, 0.4);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.sport-link:hover {
    background: rgba(0, 36, 93, 0.35);
    border-color: var(--accent-color);
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.sport-link span {
    color: var(--accent-color);
    font-weight: 700;
}

/* ==================== FIX FOOTER LINKS ==================== */
.footer-nav a {
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--accent-color) !important;
}

/* Social links in bio */
.social-links-vertical a {
    color: var(--accent-color) !important;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: background 0.2s;
}

.social-links-vertical a:hover {
    background: rgba(255, 210, 0, 0.1);
}

/* ==================== MOBILE SEO SECTION ==================== */
@media (max-width: 768px) {
    .related-pages {
        grid-template-columns: 1fr 1fr;
    }

    .seo-content {
        padding: 40px 0 32px;
    }

    /* Адаптация сеток */
    .bio-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .career-item {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .matches-widget-columns {
        flex-direction: column;
    }

    .matches-widget-divider {
        width: 100%;
        height: 2px;
        min-height: unset;
    }
}


/* ============================================================
   BURGER MENU — Mobile
   Trigger: .menu-toggle / .nav-menu.active
   ============================================================ */

/* Hamburger → X animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {

    /* Show toggle button */
    .menu-toggle {
        display: flex;
    }

    /* Mobile nav — hidden by default, slides in from left */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        z-index: 1005;
        background: rgba(10, 10, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 0;
        list-style: none;
        margin: 0;
        transition: left 0.35s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Open state */
    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 16px 28px;
        font-size: 1.1rem;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
}

/* Desktop: always show nav-menu as flex row */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        position: static;
        left: auto;
        width: auto;
        height: auto;
        overflow: visible;
        background: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
    }

    .menu-toggle {
        display: none !important;
    }
}