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

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --accent:         #e63946;
    --accent-dark:    #c1121f;
    --accent-glow:    rgba(230, 57, 70, 0.3);

    --bg-page:        #0f0f0f;
    --bg-card:        rgba(255, 255, 255, 0.04);
    --bg-card-hover:  rgba(230, 57, 70, 0.06);
    --bg-elevated:    rgba(255, 255, 255, 0.07);

    --border-subtle:  rgba(255, 255, 255, 0.08);
    --border-card:    rgba(255, 255, 255, 0.12);

    --text-primary:   #f0f0f0;
    --text-secondary: #9a9a9a;
    --text-accent:    #e63946;

    --success:        #4caf50;
    --error:          #f44336;
    --warning:        #ff9800;

    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;

    --shadow-card:    0 4px 20px rgba(0,0,0,0.4);
    --font-body:      'Inter', Arial, sans-serif;
    --font-heading:   'Playfair Display', Georgia, serif;
    --transition:     0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.3; }

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

/* ============================================================
   Header
   ============================================================ */
#site-header {
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link { text-decoration: none; }
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.logo-accent { color: var(--accent); }

.main-nav { display: flex; gap: 0.25rem; align-items: center; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.nav-toggle:hover { background: var(--bg-elevated); }

/* Language switcher */
.langs { position: relative; display: inline-flex; align-items: center; }
.lang-current-btn {
    background: none; border: none; cursor: pointer; padding: 2px;
    display: flex; align-items: center; border-radius: 50%;
}
.lang-current-btn img { display: block; width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--accent); transition: border-color 0.2s; }
.lang-current-btn img:hover { border-color: rgba(230,57,70,0.7); }
.other-langs {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: rgba(15,15,15,0.97); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); padding: 8px;
    grid-template-columns: repeat(2, 28px); gap: 6px;
    z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
/* Desktop: show on hover; Touch/Mobile: show on .open class toggled by JS */
.langs:hover .other-langs, .langs.open .other-langs { display: grid; }
.langs:hover::after {
    content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 8px;
}
.other-langs a img { display: block; width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid transparent; transition: border-color 0.2s; }
.other-langs a img:hover { border-color: rgba(230,57,70,0.5); }
.nav-link {
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }

/* ============================================================
   Main Content
   ============================================================ */
#content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}
.hero-sub { color: var(--text-secondary); font-size: 1.1rem; }

/* ============================================================
   Category Navigation (home)
   ============================================================ */
.category-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}
.country-badge, .cat-badge {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}
.country-badge { background: rgba(255,255,255,0.08); color: var(--text-primary); border: 1px solid var(--border-card); }
.country-badge:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cat-badge { border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.cat-badge:hover { color: var(--text-primary); background: var(--bg-elevated); }

.sports-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.sport-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}
.sport-badge:hover { color: var(--text-primary); border-color: var(--accent); background: rgba(229,57,53,0.08); }

/* ============================================================
   Articles Grid
   ============================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ============================================================
   Article Card
   ============================================================ */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all var(--transition);
}
.card-img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.article-card:hover .card-img { transform: scale(1.04); }
.card-img-placeholder { opacity: 0.5; }
.card-meta, .card-title, .card-lead, .card-footer { padding: 0 1.25rem; }
.card-meta { padding-top: 1rem; gap: 0.5rem; }
.card-title { padding-top: 0.5rem; }
.card-lead { padding-top: 0.25rem; }
.card-footer { padding-bottom: 1.25rem; margin-top: auto; padding-top: 0.75rem; }
.article-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.card-category, .card-country {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.card-category { background: var(--accent); color: #fff; }
.card-country { background: var(--bg-elevated); color: var(--text-secondary); }
.featured-badge { background: #d4ac0d; color: #111; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.5rem; border-radius: 4px; }

.featured-section { margin-bottom: 2.5rem; }
.section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem;
    color: var(--text-primary); border-left: 3px solid #d4ac0d; padding-left: 0.75rem; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.card-title {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.4;
}
.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--accent); }

.card-lead {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    margin-top: auto;
}
.card-read-more {
    margin-left: auto;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.82rem;
}

/* ============================================================
   Article Detail
   ============================================================ */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}
.breadcrumb ol { display: flex; gap: 0.5rem; list-style: none; flex-wrap: wrap; }
.breadcrumb li { color: var(--text-secondary); }
.breadcrumb li::after { content: ' /'; margin-left: 0.5rem; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }

.article-full { max-width: 780px; }
.article-hero { margin: 1.25rem 0; border-radius: var(--radius-md); overflow: hidden; }
.article-hero-img { width: 100%; max-height: 450px; object-fit: cover; display: block; border-radius: var(--radius-md); }

.article-header { margin-bottom: 2rem; }
.article-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.badge-category { background: var(--accent); color: #fff; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.badge-country  { background: var(--bg-elevated); color: var(--text-secondary); padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; }
.badge-source   { color: var(--text-secondary); font-size: 0.82rem; }

.article-title { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 1rem; }

.lang-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin: 0.75rem 0 1rem;
    font-size: 0.85rem;
    max-width: 100%;
}
.lang-current { font-weight: 600; color: var(--text-primary); }
.lang-sep { color: var(--text-secondary); }
.lang-link {
    color: var(--accent);
    text-decoration: none;
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    transition: background 0.15s;
}
.lang-link:hover { background: var(--accent); color: #fff; }

.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--text-primary); }
.article-body h2 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; color: var(--text-primary); }
.article-body p { margin-bottom: 1rem; }
.article-body ul { margin: 0.75rem 0 1rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.editorial-img { margin: 2rem auto; max-width: 100%; text-align: center; }
.editorial-img img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-md); height: auto; }
.article-geo { margin: 2rem 0 1.5rem; }
#article-map { width: 100%; height: 340px; border-radius: var(--radius-md); border: 1px solid var(--border-card); }
.geo-widget { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-card); margin: 1rem 0 1.5rem; overflow: hidden; }
.geo-maps-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; padding: 0.45rem 0.9rem; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-sm); color: var(--text-secondary); text-decoration: none; font-size: 0.82rem; font-weight: 500; transition: var(--transition); }
.geo-maps-link:hover { border-color: var(--accent); color: var(--accent); }
.ref-link { color: var(--accent); text-decoration: underline; }
.booking-cta { margin: 1rem 0; padding: 0.75rem; background: var(--bg-card); border-radius: var(--radius-md); border-left: 3px solid var(--accent); }
.booking-cta a { font-weight: 600; color: var(--accent); }

.video-container { position: relative; margin: 1.5rem 0; width: 100%; aspect-ratio: 16 / 9;
                   overflow: hidden; border-radius: var(--radius-md); background: #000; }
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.related-articles { margin-top: 3rem; }
.related-articles h2 { margin-bottom: 1.5rem; font-size: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}
.page-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.filter-type { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}
.page-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.page-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-info { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-small {
    padding: 0.25rem 0.75rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-small:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   View All / No Content
   ============================================================ */
.view-all { text-align: center; margin-top: 1.5rem; }
.no-content { color: var(--text-secondary); text-align: center; padding: 3rem; font-size: 1.1rem; }

/* ============================================================
   Footer
   ============================================================ */
#site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 1.5rem;
    margin-top: auto;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-copy { font-size: 0.85rem; color: var(--text-secondary); }
.footer-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: var(--text-secondary); }
.footer-nav a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 0.75rem; align-items: center; margin-left: auto; }
.footer-social-link { color: var(--text-secondary); opacity: 0.7; transition: opacity 0.15s; display: flex; }
.footer-social-link:hover { opacity: 1; }

/* ============================================================
   Responsive — Tablet (≤768px): layout adjustments
   ============================================================ */
@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   Responsive — Tablet + Phone (≤1024px): hamburger menu
   Nav is always collapsed behind hamburger on tablets and phones.
   ============================================================ */
@media (max-width: 1024px) {
    .nav-toggle { display: flex; align-items: center; }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px; /* height of #site-header */
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(15,15,15,0.98);
        border-bottom: 1px solid var(--border-subtle);
        padding: 0.5rem 0;
        z-index: 99;
        backdrop-filter: blur(10px);
    }
    .main-nav.open { display: flex; }

    .nav-link {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
        border-radius: 0;
        width: 100%;
    }
    .nav-link:hover { border-radius: 0; }

    /* Separator "|" doesn't make sense when lang-switcher wraps */
    .lang-sep { display: none; }
}

/* ============================================================
   Responsive — Phone only (≤480px): tighter content padding
   ============================================================ */
@media (max-width: 480px) {
    #content { padding: 1.25rem 1rem; }
    .hero { padding: 1.5rem 0.5rem; }
    .breadcrumb ol { flex-wrap: wrap; gap: 0.25rem; }
}

/* ============================================================
   Auth / Header User Menu
   ============================================================ */
.header-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

/* ============================================================
   Avatars
   ============================================================ */
.avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-placeholder {
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.avatar-sm.avatar-placeholder { font-size: 0.85rem; }

/* ============================================================
   Likes & Comments
   ============================================================ */
.engagement-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.15s;
}
.like-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}
.like-btn.liked {
    background: rgba(230, 57, 70, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}
.like-btn:disabled { cursor: default; opacity: 0.6; }
.like-icon { font-size: 1.1rem; line-height: 1; }

.comments-section { margin-top: 2.5rem; }
.comments-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.comment-flash {
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.88rem;
}
.comment-flash.ok {
    background: rgba(76,175,80,0.12);
    border: 1px solid var(--success);
    color: var(--success);
}
.comment-flash.err {
    background: rgba(244,67,54,0.12);
    border: 1px solid var(--error);
    color: var(--error);
}

.comment-form { margin-bottom: 2rem; }
.comment-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: border-color var(--transition);
}
.comment-input:focus { border-color: var(--accent); }

.comment-list { display: flex; flex-direction: column; gap: 1.25rem; }
.comment-card {
    display: flex;
    gap: 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}
.comment-author {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    text-decoration: none;
}
.comment-author:hover { color: var(--accent); }
.comment-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.comment-body {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-primary);
}

/* ============================================================
   Cookie Consent Banner
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1c1c1c;
    border-top: 1px solid var(--border-card);
    padding: 0.9rem 1.5rem;
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-secondary);
    min-width: 200px;
    margin: 0;
}
.cookie-banner-text a {
    color: var(--accent);
    text-decoration: underline;
    margin-left: 0.3rem;
}
.cookie-banner-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}
.cookie-btn-secondary {
    padding: 0.45rem 1rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color var(--transition);
    font-family: var(--font-body);
}
.cookie-btn-secondary:hover { border-color: var(--text-secondary); }
.cookie-btn-primary {
    padding: 0.45rem 1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    font-family: var(--font-body);
}
.cookie-btn-primary:hover { background: var(--accent-dark); }
@media (max-width: 600px) {
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .cookie-banner-actions { width: 100%; justify-content: flex-end; }
}
