/* /assets/css/site.css  (QARNENO MIDNIGHT MAGAZINE - ALTERNATIVE THEME) */

@font-face{
  font-family:"VazirFD";
  src:url("/fonts/Vazir-FD.woff2") format("woff2"),
      url("/fonts/Vazir-FD.woff") format("woff"),
      url("/fonts/Vazir-FD.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

/* RESET */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{max-width:1260px;margin:0 auto;padding:0 18px}
:focus-visible{outline:2px solid rgba(249,115,22,.75);outline-offset:2px}

/* THEME */
:root{
  --bg:#070b12;
  --bg2:#0b1220;
  --surface:rgba(15,23,42,.72);
  --card:#0f1a2c;
  --card2:#101f36;
  --line:rgba(255,255,255,.10);

  --text:#e9f1ff;
  --muted:#9fb0cc;

  --primary:#f97316;
  --primary2:#db2777;
  --accent:#a78bfa;
  --warning:#fbbf24;
  --danger:#fb7185;

  --shadow:0 18px 60px rgba(0,0,0,.40);
  --shadow2:0 12px 34px rgba(0,0,0,.35);
  --r:20px;
}

body{
  font-family:"VazirFD",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  direction:rtl;
  line-height:2;
  font-size:15px;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 86% -10%, rgba(249,115,22,.18), transparent 60%),
    radial-gradient(900px 520px at 12% -10%, rgba(167,139,250,.16), transparent 62%),
    radial-gradient(700px 520px at 50% 120%, rgba(219,39,119,.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

/* Helpers */
.muted{color:var(--muted)}
.h-scroll{-webkit-overflow-scrolling:touch}

/* LAYOUT */
.page-shell{min-height:100vh;display:flex;flex-direction:column}
.site-main{flex:1;padding:18px 0 28px}
.layout-wrapper{display:block;width:100%}

/* BADGE */
.badge{
  display:inline-flex;align-items:center;gap:7px;
  padding:4px 10px;border-radius:10px;
  font-size:11px;
  background:rgba(249,115,22,.14);
  color:rgba(255,232,214,.98);
  border:1px solid rgba(249,115,22,.20);
}
.badge.badge-green{
  background:rgba(167,139,250,.14);
  color:rgba(238,233,255,.98);
  border-color:rgba(167,139,250,.22);
}

/* HEADER */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(8,12,20,.72);
  backdrop-filter: blur(18px);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 40px rgba(0,0,0,.45);
}

.header-top{
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(90deg, rgba(249,115,22,.16), rgba(167,139,250,.12), rgba(219,39,119,.10));
}
.header-top-inner{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 0;
}
.top-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.top-link{
  font-size:12px;
  color:rgba(233,241,255,.96);
  padding:5px 10px;border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  transition:.18s;
}
.top-link:hover{transform:translateY(-1px);box-shadow:var(--shadow2)}
.top-note{font-size:12px;color:rgba(159,176,204,.95);display:flex;align-items:center;gap:8px}
.dot{
  width:9px;height:9px;border-radius:999px;
  background:var(--primary);
  box-shadow:0 0 0 4px rgba(249,115,22,.14);
}

.header-main{padding:10px 0 10px; position:relative;}
.header-main-inner{display:flex;align-items:center;justify-content:space-between;gap:14px}

.brand-block{display:flex;align-items:center;gap:12px;min-width:220px}
.brand-logo-img{
  max-height:54px;width:auto;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.42));
}
.brand-text{display:flex;flex-direction:column;line-height:1.25}
.brand-title{font-size:16px;font-weight:950;color:var(--text)}
.brand-subtitle{font-size:11px;color:var(--muted)}

.header-actions{
  display:flex;align-items:center;gap:10px;
  justify-content:flex-end;min-width:240px
}
.header-search{position:relative;min-width:260px}
.header-search input{
  width:100%;
  background:rgba(255,255,255,.06);
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  padding:10px 12px;
  padding-left:38px;
  font-size:12px;
  outline:none;
}
.header-search input::placeholder{color:rgba(159,176,204,.95)}
.header-search-icon{
  position:absolute;left:12px;top:50%;
  transform:translateY(-50%);
  font-size:14px;opacity:.9;
  color:rgba(233,241,255,.92);
}
.header-search button{display:none}

.quick-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:14px;
  background:linear-gradient(135deg, rgba(249,115,22,.22), rgba(219,39,119,.16));
  border:1px solid rgba(249,115,22,.22);
  font-size:12px;font-weight:950;color:var(--text);
  transition:.18s;
}
.quick-btn:hover{transform:translateY(-1px);box-shadow:var(--shadow2)}

/* NAV */
.nav-wrapper{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 0 10px;
  gap:10px;
}
.nav-toggle-input{display:none}
.nav-toggle-btn{
  display:none;
  flex-direction:column;justify-content:center;align-items:center;gap:4px;
  width:42px;height:42px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  cursor:pointer;
}
.nav-toggle-btn span{height:2px;width:18px;border-radius:999px;background:rgba(233,241,255,.92)}

.nav-menu{
  display:flex;gap:4px;align-items:center;
  padding:4px 6px;
  flex-wrap:nowrap;
  overflow-x:auto;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  border-radius:14px;
}
.nav-item{
  padding:8px 12px;
  font-size:13px;white-space:nowrap;
  color:rgba(233,241,255,.95);
  border-radius:12px;
  transition:.18s;
  border:1px solid transparent;
}
.nav-item-home{
  background:linear-gradient(90deg, rgba(249,115,22,.95), rgba(219,39,119,.90));
  color:#0b1220;
  font-weight:990;
}
.nav-item:hover{
  border-color:rgba(167,139,250,.28);
  background:rgba(167,139,250,.10);
  transform:translateY(-1px);
}

/* MOBILE NAV */
@media (max-width: 980px){
  .header-actions{display:none !important;}
  .brand-subtitle{display:none !important;}
  .nav-toggle-btn{display:flex !important;}

  .header-main-inner{position:relative;}
  .nav-wrapper{justify-content:flex-start;z-index:9999;}

  .nav-menu{
    display:none !important;
    position:fixed !important;
    top:66px !important;
    right:12px !important;
    left:12px !important;

    background:rgba(8,12,20,.96) !important;
    border:1px solid rgba(255,255,255,.12) !important;
    box-shadow:0 26px 60px rgba(0,0,0,.55) !important;
    border-radius:18px !important;
    padding:10px !important;

    gap:8px !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;

    max-height:72vh !important;
    overflow:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  .nav-toggle-input:checked ~ .nav-menu{display:flex !important;}

  .nav-menu .nav-item{
    width:100% !important;
    display:block !important;
    text-align:right !important;
    border:1px solid rgba(255,255,255,.10) !important;
    background:rgba(255,255,255,.04) !important;
  }
  .nav-menu .nav-item-home{
    border-color:transparent !important;
    background:linear-gradient(90deg, rgba(249,115,22,.95), rgba(219,39,119,.90)) !important;
    color:#0b1220 !important;
  }
}

/* BLOCKS */
.block{
  background:linear-gradient(180deg, rgba(15,26,44,.96), rgba(15,26,44,.90));
  border-radius:var(--r);
  padding:16px 16px 18px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:var(--shadow);
  margin-bottom:16px;
}
.block-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.block-title{
  font-size:15px;font-weight:990;color:var(--text);
  display:inline-flex;align-items:center;gap:10px;
}
.block-title .icon{
  width:28px;height:28px;border-radius:14px;
  background:linear-gradient(135deg, rgba(249,115,22,.95), rgba(167,139,250,.86));
  display:inline-flex;align-items:center;justify-content:center;
  font-size:14px;color:#0b1220;
  box-shadow:0 12px 22px rgba(0,0,0,.35);
}

/* HOME LAYOUT */
.news-layout{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);
  gap:16px;
}
@media (max-width:980px){.news-layout{grid-template-columns:1fr}}

/* HERO */
.hero-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:14px}
@media (max-width:980px){.hero-grid{grid-template-columns:1fr}}

.hero-main-card{
  position:relative;border-radius:22px;overflow:hidden;
  background:linear-gradient(180deg, rgba(15,26,44,.92), rgba(7,11,18,.98));
  min-height:320px;
  box-shadow:0 22px 70px rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.10);
}
.hero-main-thumb{position:relative;max-height:280px;overflow:hidden}
.hero-main-thumb img{width:100%;height:280px;object-fit:cover;filter:saturate(1.05) contrast(1.05);transform:scale(1.03);transition:transform .55s ease}
.hero-main-card:hover .hero-main-thumb img{transform:scale(1.12)}
.hero-main-overlay{
  position:absolute;inset:0;
  background:
    radial-gradient(860px 420px at 12% 0%, rgba(249,115,22,.26), transparent 62%),
    radial-gradient(860px 420px at 88% 0%, rgba(167,139,250,.22), transparent 64%),
    linear-gradient(0deg, rgba(0,0,0,.88), transparent 62%);
}
.hero-main-body{position:absolute;inset:auto 0 0 0;padding:16px 16px 14px;color:var(--text)}
.hero-main-cat{
  display:inline-flex;align-items:center;gap:8px;
  padding:4px 10px;border-radius:12px;
  background:rgba(255,255,255,.08);
  font-size:11px;border:1px solid rgba(255,255,255,.14);
}
.hero-main-title{font-size:22px;font-weight:990;margin:8px 0 6px;line-height:1.6}
.hero-main-meta{font-size:11px;color:rgba(233,241,255,.82);display:flex;gap:10px;flex-wrap:wrap}
.hero-main-excerpt{margin:10px 0 0;font-size:12px;color:rgba(233,241,255,.86);line-height:1.95}

.hero-side-list{display:flex;flex-direction:column;gap:10px}
.hero-side-item{
  display:grid;grid-template-columns:118px minmax(0,1fr);
  gap:10px;padding:10px;border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  transition:.18s;
}
.hero-side-item:hover{transform:translateY(-1px);box-shadow:var(--shadow2)}
.hero-side-thumb img{width:100%;height:86px;object-fit:cover;border-radius:14px;filter:saturate(1.05)}
.hero-side-title{font-size:13px;font-weight:980;margin:0 0 6px;color:var(--text);line-height:1.8}
.hero-side-meta{font-size:11px;color:var(--muted);display:flex;gap:6px;flex-wrap:wrap}

/* NEWS GRID */
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:1100px){.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:740px){.news-grid{grid-template-columns:1fr}}

.news-card{
  border-radius:18px;overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  display:flex;flex-direction:column;min-height:100%;
  transition:.2s ease;
}
.news-card:hover{box-shadow:var(--shadow2);transform:translateY(-2px);border-color:rgba(249,115,22,.22)}
.news-thumb{position:relative;height:180px;overflow:hidden;background:#0b1220}
.news-thumb img{width:100%;height:100%;object-fit:cover;filter:saturate(1.05) contrast(1.05)}
.news-thumb::after{
  content:"";
  position:absolute;
  inset:auto 10px 10px 10px;
  height:54%;
  background:linear-gradient(0deg,rgba(0,0,0,.86),transparent);
  border-radius:18px;
  pointer-events:none
}
.news-cat-pill{
  position:absolute;right:12px;bottom:12px;
  padding:4px 10px;border-radius:12px;
  background:rgba(8,12,20,.88);
  color:rgba(255,232,214,.98);
  font-size:11px;z-index:2;
  border:1px solid rgba(249,115,22,.26);
}
.news-body{padding:10px 12px 12px}
.news-title{font-size:14px;font-weight:990;margin:0 0 6px;color:var(--text);line-height:1.8}
.news-meta{font-size:11px;color:var(--muted);margin-bottom:6px;display:flex;gap:8px;flex-wrap:wrap}
.news-excerpt{font-size:12px;color:rgba(233,241,255,.86);margin:0;line-height:1.95}

/* LIST */
.news-list{display:flex;flex-direction:column;gap:10px}
.news-row{
  display:grid;grid-template-columns:122px minmax(0,1fr);
  gap:10px;align-items:stretch;
  padding:10px;border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  transition:.18s;
}
.news-row:hover{box-shadow:var(--shadow2);transform:translateY(-1px);border-color:rgba(167,139,250,.20)}
.news-row-thumb img{width:100%;height:88px;border-radius:14px;object-fit:cover}
.news-row-title{font-size:13px;font-weight:990;margin:0 0 6px;color:var(--text);line-height:1.85}
.news-row-excerpt{font-size:12px;color:rgba(233,241,255,.85);margin:0;line-height:1.95}
.news-row-meta{font-size:11px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap}

/* PAGINATION */
.pagination{
  display:flex;align-items:center;justify-content:center;gap:8px;
  padding-top:14px;flex-wrap:wrap
}
.page-link{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:40px;height:40px;
  padding:0 12px;border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(233,241,255,.95);font-size:12px;font-weight:950;
  transition:.18s;
}
.page-link:hover{transform:translateY(-1px);box-shadow:var(--shadow2);border-color:rgba(249,115,22,.22)}
.page-link.active{
  background:linear-gradient(90deg, rgba(249,115,22,.95), rgba(219,39,119,.90));
  color:#0b1220;border-color:transparent
}

/* SINGLE */
.single-wrapper{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:18px}
@media (max-width:980px){.single-wrapper{grid-template-columns:1fr}}

.single-article{
  background:linear-gradient(180deg, rgba(15,26,44,.96), rgba(15,26,44,.90));
  border-radius:24px;
  padding:18px 18px 20px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:var(--shadow);
}
.single-cat{font-size:11px;margin-bottom:8px;color:var(--muted)}
.single-cat a{
  display:inline-flex;align-items:center;gap:8px;
  padding:4px 10px;border-radius:12px;
  background:rgba(249,115,22,.12);
  border:1px solid rgba(249,115,22,.22);
  color:rgba(255,232,214,.98);
}
.single-title{font-size:26px;font-weight:990;margin:10px 0 8px;color:var(--text);line-height:1.7}
.single-meta{font-size:11px;color:var(--muted);margin-bottom:12px;display:flex;gap:10px;flex-wrap:wrap}
.single-thumb img{
  width:100%;max-height:500px;object-fit:cover;
  border-radius:20px;margin-bottom:14px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 50px rgba(0,0,0,.45);
}
.single-body{font-size:14px;color:rgba(233,241,255,.92);line-height:2.15}
.single-body a{color:#ffd6b8;text-decoration:underline}
.single-body h2,.single-body h3,.single-body h4{color:var(--text)}
.single-tags{margin-top:14px;font-size:12px;color:var(--muted)}
.single-tags .badge{margin-right:6px}

.related-block{margin-top:16px}
.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (max-width:640px){.related-grid{grid-template-columns:1fr}}
.related-item a{
  display:block;padding:10px 12px;border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  font-size:13px;font-weight:950;
  transition:.18s;
}
.related-item a:hover{border-color:rgba(249,115,22,.22);box-shadow:var(--shadow2)}

/* SIDEBAR */
.side-list{display:flex;flex-direction:column;gap:10px}
.side-item{
  display:grid;grid-template-columns:92px minmax(0,1fr);
  gap:10px;padding:10px;border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  transition:.18s;
}
.side-item:hover{transform:translateY(-1px);box-shadow:var(--shadow2);border-color:rgba(167,139,250,.22)}
.side-thumb img{width:100%;height:72px;object-fit:cover;border-radius:14px}
.side-title{font-size:13px;font-weight:990;line-height:1.85;color:var(--text)}
.side-meta{font-size:11px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap}

/* CATEGORY */
.category-header{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.category-title{
  display:inline-flex;align-items:center;gap:10px;
  font-size:16px;font-weight:990;color:var(--text)
}
.category-title .icon{
  width:28px;height:28px;border-radius:14px;
  background:linear-gradient(135deg, rgba(249,115,22,.95), rgba(167,139,250,.86));
  display:inline-flex;align-items:center;justify-content:center;
  color:#0b1220;font-size:14px
}
.category-desc{font-size:13px;color:var(--muted)}
.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:820px){.category-grid{grid-template-columns:1fr}}

.cat-card{
  border-radius:18px;overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  display:grid;grid-template-columns:160px minmax(0,1fr);
  min-height:140px;
  transition:.2s ease;
}
.cat-card:hover{box-shadow:var(--shadow2);transform:translateY(-2px);border-color:rgba(249,115,22,.22)}
.cat-thumb{background:#0b1220}
.cat-thumb img{width:100%;height:100%;min-height:140px;object-fit:cover}
.cat-body{padding:10px 12px}
.cat-title{font-size:14px;font-weight:990;margin:0 0 6px;color:var(--text);line-height:1.85}
.cat-meta{font-size:11px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.cat-excerpt{font-size:12px;color:rgba(233,241,255,.85);margin:0;line-height:1.95}

/* PAGES */
.page-wrapper h1{
  margin:0 0 10px;
  font-size:22px;
  font-weight:990;
  color:var(--text);
}
.page-content{
  font-size:14px;
  color:rgba(233,241,255,.92);
  line-height:2.15;
}
.page-content a{color:#ffd6b8;text-decoration:underline}

/* FOOTER */
.site-footer{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.06));
  color:var(--text);
  margin-top:20px;
  border-top:1px solid rgba(255,255,255,.08);
}
.footer-inner{padding:18px 18px 10px}
.footer-cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}
@media (max-width:960px){.footer-cols{grid-template-columns:1fr}}

.footer-col{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:14px 14px 12px;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}
.footer-col h4{font-size:15px;font-weight:990;color:#ffd6b8;margin:0 0 10px}
.footer-col p,.footer-col li{font-size:13px;color:rgba(233,241,255,.85)}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col li{padding:4px 0}
.footer-col a:hover{text-decoration:underline}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  padding:10px 0 8px;
  font-size:12px;
  color:rgba(159,176,204,.95);
}

/* CONTENT IMAGES */
.single-body img{
  max-width:100%;
  height:auto;
  border-radius:14px;
  display:block;
  margin:12px auto;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}

/* VIDEO */
.video-embed{
  width:100%;
  max-width:100%;
  overflow:hidden;
  border-radius:14px;
  background:#000;
  border:1px solid rgba(255,255,255,.12);
  margin:12px auto;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}
.video-embed video,
.video-embed iframe{
  display:block;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  aspect-ratio:16/9;
  border:0;
}
