@import url("variables.css");

@import url("header.css");

@import url("hero.css");

@import url("breaking.css");

@import url("cards.css");

@import url("trending.css");

@import url("featured.css");

@import url("categories.css");

@import url("footer.css");

@import url("responsive.css");

@import url("article.css");

@import url("static-page.css");

/* ==========================================================
   GLOBAL RESET & BASE
   ========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Poppins",sans-serif;
    background:var(--background);
    color:var(--text);
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
}

.container{
    width:min(1280px,92%);
    margin:auto;
}

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

a{
    text-decoration:none;
}

button{
    cursor:pointer;
    font-family:inherit;
}

/* ==========================================================
   SHARED CTA BUTTONS
   Same look for hero / featured / news / load-more
   ========================================================== */

.hero-btn,
.featured-btn,
.news-btn,
.load-more-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:14px 28px;
    background:linear-gradient(135deg,#2563EB 0%,#1D4ED8 55%,#1E3A8A 100%);
    color:#fff;
    border:1px solid rgba(255,255,255,.1);
    border-radius:var(--radius-full);
    font-weight:600;
    font-size:15px;
    letter-spacing:.2px;
    text-decoration:none;
    cursor:pointer;
    box-shadow:
        0 1px 0 rgba(255,255,255,.12) inset,
        0 10px 24px rgba(30,58,138,.32);
    transition:var(--transition);
}

.hero-btn:hover,
.hero-main:hover .hero-btn,
.news-btn:hover,
.news-card:hover .news-btn,
.featured-btn:hover,
.load-more-btn:hover:not(:disabled){
    background:linear-gradient(135deg,#3B82F6 0%,#2563EB 50%,#1E40AF 100%);
    transform:translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255,255,255,.16) inset,
        0 14px 30px rgba(30,58,138,.4);
    color:#fff;
}

.hero-btn-arrow,
.news-btn-arrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    transition:var(--transition);
}

.hero-btn-arrow{
    width:28px;
    height:28px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    font-size:12px;
}

.hero-main:hover .hero-btn-arrow,
.hero-btn:hover .hero-btn-arrow{
    background:rgba(255,255,255,.22);
    transform:translateX(-3px);
}

.news-card:hover .news-btn-arrow,
.news-btn:hover .news-btn-arrow{
    transform:translateX(-4px);
}

/* Section rhythm */
section{
    padding:var(--space-2xl) 0;
}

/* ==========================================================
   CATEGORY FILTER BUTTONS (search/filter bar, if present)
   ========================================================== */

.category-btn{
    padding:10px 20px;
    border:1px solid var(--border);
    border-radius:var(--radius-full);
    background:var(--surface);
    color:var(--text-light);
    cursor:pointer;
    transition:var(--transition);
    font-size:15px;
    font-weight:500;
}

.category-btn:hover{
    border-color:var(--primary);
    color:var(--primary);
}

.category-btn.active{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}

/* ==========================================================
   404 PAGE
   ========================================================== */

.error-page{
    min-height:70vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:var(--space-2xl) 20px;
}

.error-code{
    font-size:110px;
    font-weight:800;
    color:var(--primary);
    line-height:1;
    margin-bottom:var(--space-sm);
}

.error-page h2{
    font-size:32px;
    font-weight:700;
    margin-bottom:var(--space-sm);
    color:var(--text);
}

.error-page p{
    max-width:600px;
    margin:0 auto var(--space-lg);
    line-height:1.8;
    color:var(--text-light);
}

.error-buttons{
    display:flex;
    justify-content:center;
    gap:16px;
    flex-wrap:wrap;
}

/* ==========================================================
   MOBILE MENU
   ========================================================== */

.menu-btn{
    display:none;
    width:44px;
    height:44px;
    align-items:center;
    justify-content:center;
    font-size:22px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    border-radius:var(--radius-sm);
    cursor:pointer;
    color:#fff;
    transition:var(--transition);
}

.menu-btn:hover{
    background:rgba(255,255,255,.16);
}

.mobile-menu{
    display:none;
    flex-direction:column;
    background:var(--surface);
    box-shadow:var(--shadow-lg);
    padding:var(--space-sm) var(--space-md) var(--space-md);
    position:sticky;
    top:0;
    z-index:999;
}

.mobile-menu a{
    text-decoration:none;
    padding:14px 6px;
    color:var(--text);
    font-weight:600;
    font-size:15px;
    border-bottom:1px solid var(--border);
}

.mobile-menu a:last-child{
    border-bottom:none;
}

.mobile-menu a.active{
    color:var(--primary);
}

.mobile-menu.show{
    display:flex;
}

/* ==========================================================
   DARK MODE OVERRIDES
   ========================================================== */

body.dark-mode .hero-sidebar,
body.dark-mode .featured-card,
body.dark-mode .hero-main,
body.dark-mode .news-card,
body.dark-mode .trending-card,
body.dark-mode .mobile-menu,
body.dark-mode .category-card{
    background:var(--surface);
    border-color:var(--border);
    color:var(--text);
}

body.dark-mode .nav-menu a,
body.dark-mode .mobile-menu a,
body.dark-mode .news-title,
body.dark-mode .hero-content h1,
body.dark-mode .featured-content h3,
body.dark-mode .trending-content h4,
body.dark-mode .section-header h2,
body.dark-mode .featured-title,
body.dark-mode .trending-title{
    color:var(--text);
}

body.dark-mode .news-summary,
body.dark-mode .hero-content p,
body.dark-mode .featured-content p,
body.dark-mode .trending-meta,
body.dark-mode .news-meta,
body.dark-mode .hero-meta{
    color:var(--text-light);
}

body.dark-mode .search-box{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,255,255,.1);
}

body.dark-mode .search{
    color:#fff;
}

body.dark-mode .search::placeholder{
    color:var(--text-muted);
}

body.dark-mode .categories-section,
body.dark-mode .featured,
body.dark-mode .trending{
    background:var(--background);
}

body.dark-mode .news-meta,
body.dark-mode .hero-sidebar .trending-item{
    border-color:var(--border);
}
