/* =========================================
   SISTEMI I DIZAJNIT & VARIABLAT
   ========================================= */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f8;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-color: #d90429; /* Ngjyra Premium e Lajmeve (psh. CNN) */
    --accent-hover: #ef233c;
    --border-color: #e5e5e5;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #f1f1f1;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* =========================================
   RESET & BAZAT
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

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

/* =========================================
   HEADER & MENU (UI/UX)
   ========================================= */
.top-bar {
    background-color: var(--bg-secondary);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 20px 0;
}

.logo {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

.main-nav ul li a {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    transition: var(--transition);
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

/* Mega Menu */
.has-mega-menu {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mega-menu-grid h4 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.mega-menu-grid a {
    display: block;
    padding: 5px 0;
    text-transform: none !important;
    font-weight: 400 !important;
}

/* Breaking News Ticker */
.breaking-news {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 0;
}

.breaking-badge {
    font-weight: 700;
    background: #000;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 14px;
}

/* =========================================
   LAYOUT KRYESOR (Grid System)
   ========================================= */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 20px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 32px;
}

.title-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-top: 5px;
}

/* Artikujt */
.hero-article {
    position: relative;
    height: 450px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 40px;
    overflow: hidden;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.article-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.article-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* =========================================
   SIDEBAR & WIDGETS
   ========================================= */
.sidebar-banner {
    width: 100%;
    height: 250px;
    background-color: var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    font-weight: bold;
    color: var(--text-secondary);
}

.widget {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.trending-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    gap: 15px;
}

.trending-list li span {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.5;
}

/* =========================================
   KOMPONENTËT & MODAL
   ========================================= */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.w-100 { width: 100%; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-primary);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; background: var(--bg-primary); color: var(--text-primary); }

#reading-progress {
    position: fixed; top: 0; left: 0; height: 4px; background: var(--accent-color); width: 0%; z-index: 10000; transition: width 0.1s;
}

/* =========================================
   RESPONSIVE DESIGN (Mobile First Concept)
   ========================================= */
@media (max-width: 1024px) {
    .layout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .flex-between { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-direction: column; text-align: center; }
    .mega-menu { display: none; }
}

