/*
Theme Name: Kashif News
Theme URI: https://news.kashif.ly
Author: Alkashif
Description: القالب الرسمي لموقع أخبار الكاشف
Version: 1.0.0
Text Domain: kashif-news
*/

:root{
    --navy:#07162f;
    --navy2:#0c2145;
    --navy3:#102c59;
    --gold:#d9ad4a;
    --gold2:#f0ce78;
    --white:#ffffff;
    --bg:#f5f7fb;
    --text:#152238;
    --muted:#718096;
    --border:#e5e9f1;
    --shadow:0 12px 35px rgba(7,22,47,.08);
    --radius:18px;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    direction:rtl;
    background:var(--bg);
    color:var(--text);
    font-family:"Cairo","Tahoma","Arial",sans-serif;
    line-height:1.8;
}

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

img{
    max-width:100%;
    height:auto;
}

.container{
    width:min(1180px,calc(100% - 32px));
    margin:auto;
}

/* Header */

.site-header{
    background:linear-gradient(135deg,var(--navy),var(--navy2));
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,.08);
    position:sticky;
    top:0;
    z-index:100;
}

.header-main{
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

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

.brand img{
    width:150px;
    max-height:50px;
    object-fit:contain;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 18px;
    border-radius:12px;
    font-weight:700;
    transition:.2s ease;
}

.btn-gold{
    background:var(--gold);
    color:var(--navy);
}

.btn-gold:hover{
    background:var(--gold2);
    transform:translateY(-1px);
}

.btn-outline{
    border:1px solid rgba(255,255,255,.2);
    color:#fff;
}

.btn-outline:hover{
    background:rgba(255,255,255,.08);
}

/* Categories */

.category-nav{
    border-top:1px solid rgba(255,255,255,.08);
    background:rgba(0,0,0,.08);
}

.category-scroll{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:10px 0;
    scrollbar-width:none;
}

.category-scroll::-webkit-scrollbar{
    display:none;
}

.category-scroll a{
    white-space:nowrap;
    padding:7px 13px;
    border-radius:10px;
    color:#dce5f4;
    font-size:14px;
    transition:.2s ease;
}

.category-scroll a:hover{
    background:rgba(217,173,74,.15);
    color:var(--gold2);
}

/* Hero */

.hero{
    background:
        radial-gradient(circle at 15% 20%,rgba(217,173,74,.15),transparent 30%),
        linear-gradient(135deg,var(--navy),var(--navy3));
    color:#fff;
    padding:70px 0 110px;
}

.hero-content{
    max-width:760px;
}

.hero-badge{
    display:inline-flex;
    padding:7px 13px;
    border:1px solid rgba(217,173,74,.35);
    background:rgba(217,173,74,.08);
    color:var(--gold2);
    border-radius:999px;
    font-size:14px;
    margin-bottom:18px;
}

.hero h1{
    margin:0 0 14px;
    font-size:clamp(32px,5vw,58px);
    line-height:1.25;
}

.hero p{
    margin:0;
    color:#c7d3e5;
    font-size:18px;
    max-width:650px;
}

/* Main */

.main-wrap{
    margin-top:-55px;
    padding-bottom:70px;
}

.section{
    margin-bottom:38px;
}

.section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:18px;
}

.section-head h2{
    margin:0;
    font-size:25px;
    color:var(--navy);
}

.section-head a{
    color:#8c6b20;
    font-weight:700;
}

/* Featured */

.featured-card{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    min-height:390px;
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:var(--shadow);
}

.featured-media{
    background:#dde4ef;
    min-height:350px;
}

.featured-media img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.placeholder{
    width:100%;
    height:100%;
    min-height:260px;
    background:
        radial-gradient(circle at 30% 30%,rgba(217,173,74,.32),transparent 27%),
        linear-gradient(135deg,var(--navy2),var(--navy3));
    display:flex;
    align-items:center;
    justify-content:center;
}

.placeholder img{
    width:110px;
    height:110px;
    object-fit:contain;
}

.featured-body{
    padding:38px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.meta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
    color:var(--muted);
    font-size:14px;
}

.category-label{
    color:#8b691c;
    background:#fff7e4;
    border:1px solid #f3dfae;
    padding:4px 9px;
    border-radius:999px;
    font-weight:700;
}

.featured-body h2{
    font-size:32px;
    line-height:1.45;
    margin:15px 0 12px;
    color:var(--navy);
}

.featured-body p{
    color:var(--muted);
    margin:0 0 22px;
}

/* Grid */

.posts-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.news-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    overflow:hidden;
    transition:.22s ease;
}

.news-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow);
}

.card-media{
    height:210px;
    background:#dde4ef;
}

.card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.card-body{
    padding:20px;
}

.card-body h3{
    margin:10px 0 8px;
    font-size:19px;
    line-height:1.55;
    color:var(--navy);
}

.card-body p{
    color:var(--muted);
    font-size:14px;
    margin:0;
}

/* Category boxes */

.categories-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

.category-box{
    background:#fff;
    border:1px solid var(--border);
    border-radius:15px;
    padding:20px;
    font-weight:800;
    color:var(--navy);
    transition:.2s ease;
}

.category-box span{
    display:block;
    font-weight:400;
    color:var(--muted);
    font-size:13px;
    margin-top:3px;
}

.category-box:hover{
    border-color:#e2c26d;
    transform:translateY(-2px);
}

/* Article */

.article-wrap{
    width:min(900px,calc(100% - 32px));
    margin:45px auto 70px;
}

.article-card{
    background:#fff;
    border-radius:22px;
    box-shadow:var(--shadow);
    overflow:hidden;
}

.article-cover img{
    width:100%;
    max-height:520px;
    object-fit:cover;
    display:block;
}

.article-body{
    padding:clamp(24px,5vw,55px);
}

.article-body h1{
    color:var(--navy);
    line-height:1.45;
    font-size:clamp(30px,5vw,46px);
    margin:15px 0 20px;
}

.article-content{
    font-size:18px;
    line-height:2;
}

.article-content h2,
.article-content h3{
    color:var(--navy);
}

.article-content a{
    color:#9b741d;
    text-decoration:underline;
}

.article-content blockquote{
    margin:28px 0;
    padding:16px 22px;
    border-right:4px solid var(--gold);
    background:#faf7ef;
}

/* Archive */

.archive-head{
    padding:45px 0 25px;
}

.archive-head h1{
    margin:0;
    color:var(--navy);
}

/* Pagination */

.pagination{
    margin-top:30px;
    display:flex;
    justify-content:center;
}

.pagination .nav-links{
    display:flex;
    gap:8px;
}

.page-numbers{
    background:#fff;
    border:1px solid var(--border);
    padding:8px 13px;
    border-radius:9px;
}

.page-numbers.current{
    background:var(--navy);
    color:#fff;
}

/* Empty */

.empty-state{
    background:#fff;
    border-radius:18px;
    padding:45px;
    text-align:center;
    color:var(--muted);
}

/* Footer */

.site-footer{
    background:var(--navy);
    color:#d7e0ed;
    padding:48px 0 25px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:35px;
}

.footer-logo{
    width:150px;
    margin-bottom:15px;
}

.footer-title{
    color:#fff;
    font-weight:800;
    margin-bottom:12px;
}

.footer-links{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.footer-links a:hover{
    color:var(--gold2);
}

.footer-bottom{
    margin-top:35px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.1);
    font-size:13px;
    color:#8898af;
}

/* Responsive */

@media(max-width:900px){
    .featured-card{
        grid-template-columns:1fr;
    }

    .posts-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .categories-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:650px){
    .header-main{
        min-height:68px;
    }

    .brand img{
        width:125px;
    }

    .header-actions .btn-outline{
        display:none;
    }

    .header-actions .btn{
        padding:0 12px;
        min-height:39px;
        font-size:13px;
    }

    .hero{
        padding:48px 0 90px;
    }

    .posts-grid{
        grid-template-columns:1fr;
    }

    .categories-grid{
        grid-template-columns:1fr 1fr;
    }

    .featured-body{
        padding:25px;
    }

    .featured-body h2{
        font-size:25px;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }
}
