/* ==========================================================================
   ZËRI I KRYEQYTETIT - PREMIUM CSS ARCHITECTURE
   ========================================================================== */

/* --- CSS VARIABLES (THEME ENGINE) --- */
:root {
    /* Brand Colors - CNN/Reuters inspired */
    --brand-accent: #cc0000; /* Deep authoritative red */
    --brand-accent-hover: #990000;
    
    /* Light Theme (Default) */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.85);
    --bg-elevated: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-on-accent: #ffffff;
    
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    /* Typography */
    --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    /* Layout */
    --container-max: 1280px;
    --header-height: 110px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Category Colors */
    --cat-pol: #1d4ed8;
    --cat-eco: #15803d;
    --cat-spo: #ea580c;
    --cat-tech: #7e22ce;
    --cat-show: #be185d;
}

/* Dark Theme Variables */
body.dark-mode {
    --bg-main: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-glass: rgba(30, 41, 59, 0.85);
    --bg-elevated: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --border-light: #334155;
    --border-medium: #475569;
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* --- RESET & FOUNDATION --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: var(--font-ui); cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.hidden { display: none !important; }
.text-accent { color: var(--brand-accent) !important; }
.mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; } .mt-6 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-5 { margin-bottom: 3rem; }
.ml-4 { margin-left: 1.5rem; }

/* --- PREMIUM UI COMPONENTS --- */

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-glass);
}

/* Buttons */
.btn-solid, .btn-solid-full, .btn-subscribe {
    background-color: var(--brand-accent);
    color: var(--text-on-accent);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-solid-full { width: 100%; }
.btn-solid:hover, .btn-solid-full:hover, .btn-subscribe:hover {
    background-color: var(--brand-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.btn-outline, .btn-outline-full {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-block;
    text-align: center;
}
.btn-outline-full { width: 100%; }
.btn-outline:hover, .btn-outline-full:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-surface);
}

/* Category Badge */
.cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background-color: var(--brand-accent);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    box-shadow: var(--shadow-sm);
}
.badge-large {
    position: static;
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    position: relative;
    z-index: 1000;
    background: var(--bg-surface);
}

.top-bar {
    background: #0f172a; /* Always dark for premium contrast */
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span { margin-right: 20px; display: inline-flex; align-items: center; gap: 6px; }
.top-bar-left i { color: var(--brand-accent); }

.top-bar-right { display: flex; align-items: center; gap: 20px; }
.social-links a { color: #cbd5e1; margin-left: 12px; font-size: 1rem; transition: color var(--transition-fast); }
.social-links a:hover { color: #ffffff; }

.btn-theme-toggle { color: #cbd5e1; font-size: 1.1rem; }
.btn-theme-toggle:hover { color: #fff; }
.btn-login { color: #fff; font-weight: 600; font-size: 0.85rem; }
.btn-login:hover { color: var(--brand-accent); }

.nav-wrapper {
    position: sticky;
    top: 0;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    z-index: 999;
}

.nav-inner {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-accent);
    letter-spacing: -1px;
    white-space: nowrap;
}
body.dark-mode .brand-logo { color: var(--text-primary); }

.desktop-nav .nav-list { display: flex; gap: 24px; align-items: center; height: 100%; }
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    padding: 24px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background-color: var(--brand-accent);
    transition: width var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--brand-accent); }

/* Dropdown */
.dropdown-trigger { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}
.dropdown-trigger:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--bg-elevated); color: var(--brand-accent); padding-left: 25px; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.btn-search-toggle, .btn-mobile-menu { font-size: 1.2rem; color: var(--text-primary); }
.btn-search-toggle:hover, .btn-mobile-menu:hover { color: var(--brand-accent); }
.btn-mobile-menu { display: none; }

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%; left: 0; width: 100%;
    padding: 30px 0;
    border-top: 1px solid var(--border-light);
    border-radius: 0 0 12px 12px;
}
.search-container { position: relative; display: flex; align-items: center; }
#global-search-input {
    width: 100%;
    font-size: 2rem;
    font-family: var(--font-heading);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-medium);
    padding: 10px 50px 10px 0;
    color: var(--text-primary);
    outline: none;
}
#global-search-input:focus { border-color: var(--brand-accent); }
#close-search { position: absolute; right: 20px; font-size: 1.5rem; color: var(--text-muted); }

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    max-height: 50vh;
    overflow-y: auto;
}

/* Breaking News Ticker */
.breaking-news-bar {
    background: var(--brand-accent);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}
.breaking-inner { display: flex; align-items: center; height: 40px; }
.breaking-label {
    background: #000;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}
.breaking-label::after {
    content: '';
    position: absolute;
    right: -10px; top: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 10px solid #000;
}
.breaking-ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-left: 25px;
}
.breaking-ticker {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerMove 35s linear infinite;
}
.breaking-ticker:hover { animation-play-state: paused; }
.ticker-item { margin-right: 50px; cursor: pointer; }
.ticker-item:hover { text-decoration: underline; }

@keyframes tickerMove {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --- MAIN LAYOUT & SECTIONS --- */
.app-content { min-height: 70vh; padding-bottom: 60px; }

.section-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; white-space: nowrap; }
.heading-line { flex: 1; height: 2px; background: var(--border-light); position: relative; }
.heading-line::after { content: ''; position: absolute; left: 0; top: -1px; height: 4px; width: 60px; background: var(--brand-accent); }
.view-all { font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }
.view-all:hover { color: var(--brand-accent); }

.main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

/* --- HERO SECTION --- */
.hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 550px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: block;
}
.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-card:hover .hero-img { transform: scale(1.03); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    color: white;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 15px 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    font-weight: 700;
}
.hero-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 25px;
    max-width: 800px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-meta i { color: var(--brand-accent); }

/* --- NEWS GRID & CARDS --- */
.news-grid-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}
.card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.news-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.news-card:hover .card-title { color: var(--brand-accent); }
.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.card-actions { display: flex; gap: 12px; }
.card-actions button { color: var(--text-muted); font-size: 1.1rem; transition: color 0.2s; }
.card-actions button:hover { color: var(--brand-accent); }
.btn-save.saved { color: #f59e0b; }
.btn-like.liked { color: var(--brand-accent); }

.load-more-container { text-align: center; }
.btn-load-more {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-load-more:hover { background: var(--brand-accent); color: white; border-color: var(--brand-accent); }

/* --- SIDEBAR WIDGETS --- */
.sidebar-sticky { position: sticky; top: 90px; }
.widget { padding: 25px; }
.widget-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}
.widget-title::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 40px; height: 2px; background: var(--brand-accent);
}

/* Most Read Trending */
.trending-list { counter-reset: trend-counter; }
.trend-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    group: hover;
}
.trend-item:last-child { margin-bottom: 0; }
.trend-num {
    counter-increment: trend-counter;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--border-medium);
    line-height: 0.8;
    transition: color 0.2s;
}
.trend-item:hover .trend-num { color: var(--brand-accent); }
.trend-info h4 { font-size: 0.95rem; line-height: 1.4; margin-bottom: 5px; transition: color 0.2s; }
.trend-item:hover h4 { color: var(--brand-accent); }
.trend-meta { font-size: 0.75rem; color: var(--text-muted); }

/* Sport Live Widget */
.live-indicator {
    background: #ef4444; color: white;
    font-size: 0.6rem; padding: 2px 6px; border-radius: 4px;
    animation: pulseLive 1.5s infinite;
    vertical-align: middle; margin-left: 8px; font-family: var(--font-ui);
}
@keyframes pulseLive { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.match-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.match-card:last-child { border-bottom: none; }
.team { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; flex:1; }
.team img { width: 24px; height: 24px; object-fit: contain; }
.team.away { flex-direction: row-reverse; text-align: right; }
.score { font-size: 1.2rem; font-weight: 900; color: var(--text-primary); padding: 0 15px; }
.match-status { font-size: 0.75rem; color: var(--brand-accent); font-weight: 700; width: 35px; text-align: center; }

/* Newsletter */
.newsletter-widget { text-align: center; }
.newsletter-icon { font-size: 3rem; color: var(--brand-accent); margin-bottom: 15px; }
.newsletter-widget p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 15px; }
.newsletter-widget input { width: 100%; padding: 12px; border: 1px solid var(--border-light); border-radius: 4px; background: var(--bg-main); color: var(--text-primary); outline: none; }
.newsletter-widget input:focus { border-color: var(--brand-accent); }

/* Ads */
.ad-widget {
    background: var(--bg-elevated);
    border: 1px dashed var(--border-medium);
    text-align: center; padding: 10px; border-radius: 8px;
    min-height: 250px; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.ad-label {
    position: absolute; top: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.1); font-size: 0.6rem; text-transform: uppercase; padding: 2px;
}
.ad-widget img { width: 100%; height: 100%; object-fit: cover; }

/* --- VIDEO CENTER --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.video-card {
    position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 16/9;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.video-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4);
    display: flex; flex-direction: column; justify-content: space-between; padding: 20px; transition: background 0.3s;
}
.video-card:hover img { transform: scale(1.05); }
.video-card:hover .video-overlay { background: rgba(0,0,0,0.2); }
.play-btn {
    align-self: center; margin-top: auto; margin-bottom: auto;
    width: 60px; height: 60px; background: var(--brand-accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; padding-left: 5px;
    box-shadow: 0 0 20px rgba(204,0,0,0.6); transition: transform 0.3s;
}
.video-card:hover .play-btn { transform: scale(1.1); }
.video-title { color: white; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* --- SINGLE ARTICLE VIEW --- */
.reading-progress-bar {
    position: fixed; top: 0; left: 0; height: 4px; background: var(--brand-accent); z-index: 9999; width: 0%; transition: width 0.1s;
}

.article-header { text-align: center; max-width: 900px; margin: 0 auto 40px auto; }
.article-main-title {
    font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.15; font-weight: 900;
    color: var(--text-primary); margin-bottom: 25px;
}
.article-meta-bar {
    display: flex; justify-content: space-between; align-items: center; padding: 20px 0;
    border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
    margin-bottom: 30px; flex-wrap: wrap; gap: 20px;
}
.meta-author { display: flex; align-items: center; gap: 15px; }
.author-avatar { width: 50px; height: 50px; background: var(--brand-accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; }
.author-info { text-align: left; }
.author-name { display: block; font-weight: 700; color: var(--text-primary); font-size: 1.1rem; }
.meta-date { color: var(--text-muted); font-size: 0.9rem; }
.meta-stats { display: flex; gap: 20px; color: var(--text-secondary); font-weight: 500; }

.article-actions-top { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.action-btn {
    padding: 10px 20px; background: var(--bg-elevated); border: 1px solid var(--border-light);
    border-radius: 30px; font-weight: 600; color: var(--text-primary); transition: all 0.2s; display: flex; align-items: center; gap: 8px;
}
.action-btn:hover { background: var(--text-primary); color: var(--bg-surface); }
.action-btn.active-state { background: var(--brand-accent); color: white; border-color: var(--brand-accent); }

.article-featured-image { margin-bottom: 40px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.article-featured-image img { width: 100%; max-height: 600px; object-fit: cover; }
.article-featured-image figcaption { padding: 10px; font-size: 0.85rem; color: var(--text-muted); text-align: right; font-style: italic; }

.article-body-content {
    max-width: 800px; margin: 0 auto; font-size: 1.25rem; line-height: 1.8; color: var(--text-primary); font-family: var(--font-heading);
}
.article-body-content p { margin-bottom: 25px; }
.article-body-content h2, .article-body-content h3 { font-family: var(--font-ui); font-weight: 700; margin: 40px 0 20px; line-height: 1.3; }
.article-body-content blockquote {
    border-left: 5px solid var(--brand-accent); padding: 20px 30px; margin: 40px 0;
    background: var(--bg-elevated); font-style: italic; font-size: 1.4rem; color: var(--text-secondary); border-radius: 0 8px 8px 0;
}

.article-tags span { display: inline-block; padding: 6px 15px; background: var(--bg-elevated); color: var(--text-secondary); border-radius: 4px; font-size: 0.85rem; margin: 0 10px 10px 0; font-weight: 600; cursor: pointer; }
.article-tags span:hover { background: var(--brand-accent); color: white; }

/* Comments */
.comments-section { max-width: 800px; margin: 0 auto; padding-top: 40px; border-top: 2px solid var(--border-light); }
.premium-input {
    width: 100%; padding: 15px; border: 1px solid var(--border-light); border-radius: 8px;
    background: var(--bg-main); color: var(--text-primary); font-family: var(--font-ui); font-size: 1rem; outline: none; transition: border-color 0.2s;
}
.premium-input:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(204,0,0,0.1); }
.comment-form { padding: 25px; }
.comment-item { display: flex; gap: 15px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--border-light); }
.comment-avatar { width: 40px; height: 40px; background: var(--bg-elevated); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--text-secondary); }
.comment-content { flex: 1; }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.comment-author { font-weight: 700; font-size: 0.95rem; }
.comment-date { font-size: 0.8rem; color: var(--text-muted); }
.comment-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }
.btn-delete-comment { color: #ef4444; font-size: 0.8rem; margin-top: 10px; cursor: pointer; }

/* --- CATEGORY VIEW --- */
.category-header { text-align: center; padding: 60px 0; background: var(--bg-elevated); border-radius: 12px; margin-top: 20px; }
.category-title { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; color: var(--brand-accent); }
.news-list-vertical { display: flex; flex-direction: column; gap: 30px; }
.news-card-horizontal {
    display: flex; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; height: 220px; transition: all 0.3s; cursor: pointer;
}
.news-card-horizontal:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-medium); }
.news-card-horizontal .card-img-wrap { width: 35%; height: 100%; }
.news-card-horizontal .card-content { width: 65%; justify-content: center; }

/* --- ADMIN PANEL --- */
.admin-layout { display: flex; min-height: 80vh; margin-top: 20px; gap: 30px; }
.admin-sidebar { width: 280px; padding: 30px 0; border-radius: 12px; height: fit-content; position: sticky; top: 90px; }
.admin-brand { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 900; color: var(--brand-accent); text-align: center; margin-bottom: 30px; }
.admin-nav li a { display: flex; align-items: center; gap: 15px; padding: 15px 30px; color: var(--text-secondary); font-weight: 600; border-left: 4px solid transparent; transition: all 0.2s; }
.admin-nav li a:hover, .admin-nav li a.active { background: var(--bg-elevated); color: var(--brand-accent); border-left-color: var(--brand-accent); }
.admin-workspace { flex: 1; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card { display: flex; align-items: center; gap: 20px; padding: 25px; border-radius: 12px; }
.stat-icon { width: 60px; height: 60px; background: rgba(204,0,0,0.1); color: var(--brand-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.stat-data h4 { font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: 5px; }
.stat-data p { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 15px 20px; border-bottom: 1px solid var(--border-light); }
.admin-table th { background: var(--bg-elevated); font-weight: 600; color: var(--text-secondary); text-transform: uppercase; font-size: 0.8rem; }
.admin-table tbody tr:hover { background: var(--bg-main); }
.table-img { width: 60px; height: 40px; object-fit: cover; border-radius: 4px; }
.action-icons i { cursor: pointer; padding: 5px; color: var(--text-muted); transition: 0.2s; font-size: 1.1rem; margin-right: 10px; }
.action-icons i.fa-edit:hover { color: #3b82f6; }
.action-icons i.fa-trash-alt:hover { color: #ef4444; }

.premium-form { padding: 30px; border-radius: 12px; }
.form-row { display: flex; gap: 20px; }
.flex-1 { flex: 1; } .flex-2 { flex: 2; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); font-size: 0.9rem; }
.editor-textarea { font-family: monospace; }
.color-picker-wrap { display: flex; align-items: center; gap: 15px; }
.color-picker-wrap input[type="color"] { width: 50px; height: 50px; border: none; border-radius: 8px; cursor: pointer; background: none; }

/* Custom Checkbox */
.custom-checkbox { display: inline-flex; align-items: center; cursor: pointer; font-weight: 500; font-size: 0.9rem; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { height: 20px; width: 20px; background-color: var(--bg-elevated); border: 1px solid var(--border-medium); border-radius: 4px; margin-right: 10px; position: relative; transition: 0.2s; }
.custom-checkbox:hover input ~ .checkmark { background-color: var(--border-light); }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--brand-accent); border-color: var(--brand-accent); }
.checkmark:after { content: ""; position: absolute; display: none; left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }

/* --- FOOTER --- */
.main-footer { background: #0f172a; color: white; padding-top: 60px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 900; color: var(--brand-accent); margin-bottom: 15px; }
.footer-slogan { color: #94a3b8; font-size: 0.95rem; line-height: 1.6; max-width: 300px; }
.footer-col h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--brand-accent); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #cbd5e1; font-size: 0.95rem; transition: all 0.2s; }
.footer-links a:hover { color: white; padding-left: 5px; }

.app-btn {
    display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.1);
    padding: 10px 20px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); transition: 0.3s; width: fit-content;
}
.app-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.app-btn i { font-size: 2rem; }
.app-btn div { display: flex; flex-direction: column; }
.app-btn span { font-size: 0.7rem; text-transform: uppercase; color: #cbd5e1; }
.app-btn strong { font-size: 1.1rem; }

.footer-bottom { background: #020617; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; color: #64748b; }
.bottom-flex { display: flex; justify-content: space-between; align-items: center; }

/* --- MODALS & UTILS --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 9999;
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.modal-content { width: 90%; max-width: 900px; padding: 20px; position: relative; border-radius: 12px; }
.modal-close { position: absolute; top: -40px; right: 0; font-size: 2rem; color: white; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 8px; overflow: hidden; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: var(--brand-accent); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    box-shadow: var(--shadow-lg); z-index: 1000; transition: all 0.3s; opacity: 0.7;
}
.back-to-top:hover { opacity: 1; transform: translateY(-5px); }

.toast-container { position: fixed; bottom: 20px; left: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-surface-glass); backdrop-filter: blur(10px); color: var(--text-primary); padding: 15px 25px; border-radius: 8px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--brand-accent); font-weight: 600; display: flex; align-items: center; gap: 10px; animation: slideInLeft 0.3s forwards; }

/* --- ANIMATIONS & LOADERS --- */
.page-loader { position: fixed; inset: 0; background: var(--bg-main); z-index: 9998; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s; }
.spinner { width: 50px; height: 50px; border: 4px solid var(--border-light); border-top-color: var(--brand-accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-scale { animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .main-layout, .article-layout { grid-template-columns: 1fr 300px; gap: 30px; }
    .hero-title { font-size: 2.8rem; }
}
@media (max-width: 992px) {
    .main-layout, .article-layout { grid-template-columns: 1fr; }
    .sidebar-column { margin-top: 40px; }
    .hero-card { height: 450px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; position: static; padding: 15px; display: flex; overflow-x: auto; margin-bottom: 20px; }
    .admin-nav { display: flex; }
    .admin-nav li a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .admin-nav li a.active { border-bottom-color: var(--brand-accent); background: none; }
    .form-row { flex-direction: column; gap: 0; }
}
@media (max-width: 768px) {
    .desktop-nav, .top-bar-left .live-date, .btn-subscribe { display: none; }
    .btn-mobile-menu { display: block; }
    .nav-inner { height: 60px; }
    .brand-logo { font-size: 1.5rem; }
    .hero-title { font-size: 2rem; }
    .hero-card { height: 350px; }
    .hero-overlay { padding: 30px 20px; }
    .news-grid-masonry { grid-template-columns: 1fr; }
    .news-card-horizontal { flex-direction: column; height: auto; }
    .news-card-horizontal .card-img-wrap, .news-card-horizontal .card-content { width: 100%; }
    .news-card-horizontal .card-img-wrap { height: 200px; }
    .article-main-title { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .app-buttons { display: flex; flex-direction: column; align-items: center; }
    .bottom-flex { flex-direction: column; gap: 15px; text-align: center; }
    
    /* Mobile Menu */
    .mobile-nav-menu { position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-surface); padding: 20px; box-shadow: var(--shadow-md); border-top: 1px solid var(--border-light); z-index: 998; }
    .mobile-nav-menu li { border-bottom: 1px solid var(--border-light); }
    .mobile-nav-menu a { display: block; padding: 15px 0; font-weight: 600; font-size: 1.1rem; }
}
