/*
Theme Name: StrategyBox
Theme URI: https://strategybox.store
Description: StrategyBox brand theme — matte graphite surfaces with lilac accents, Sora/Manrope typography (Cairo for Arabic). Bilingual (EN/AR) classic theme matching strategybox.store.
Author: StrategyBox
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: strategybox
*/

:root{
  --base:#0b0b10; --surface:#14141d; --surface-2:#1b1b27; --border:#282838;
  --text:#e9e9f2; --muted:#a2a2b6; --lilac:#a78bfa; --lilac-2:#c4b5fd; --lilac-deep:#7c3aed;
  --radius:16px; --wrap:1120px;
  --sans:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --head:"Sora","Manrope",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:
    radial-gradient(1100px 520px at 50% -12%, rgba(124,58,237,0.18) 0%, rgba(11,11,16,0) 60%),
    var(--base);
  background-attachment:fixed; color:var(--text); font-family:var(--sans);
  font-size:17px; line-height:1.7; -webkit-font-smoothing:antialiased;
}
a{color:var(--lilac); text-decoration:none} a:hover{color:var(--lilac-2)}
img{max-width:100%; height:auto; display:block}
h1,h2,h3,h4{font-family:var(--head); font-weight:700; line-height:1.2; color:#fff}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 24px}
/* Accessible skip link — hidden via clip (NOT left:-9999px, which overflows in RTL). */
.skip-link{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap}
.skip-link:focus{position:fixed; width:auto; height:auto; clip:auto; clip-path:none; inset-inline-start:16px; top:16px; background:#fff; color:#000; padding:8px 12px; border-radius:8px; z-index:100}
html,body{overflow-x:hidden}

/* Header */
.site-header{position:sticky; top:0; z-index:50; backdrop-filter:blur(12px);
  background:rgba(11,11,16,0.72); border-bottom:1px solid var(--border)}
.site-header .wrap{display:flex; align-items:center; gap:24px; height:68px}
.brand{display:flex; align-items:center; gap:10px; font-family:var(--head); font-weight:800; font-size:20px; color:#fff}
.brand .mark{width:22px; height:22px; transform:rotate(0); flex:0 0 auto}
.brand:hover{color:#fff}
.sb-nav{display:flex; gap:8px; list-style:none; margin:0; padding:0; align-items:center; flex-wrap:wrap}
.sb-nav a{color:var(--muted); padding:8px 12px; border-radius:10px; font-weight:600; font-size:15px}
.sb-nav a:hover{color:#fff; background:var(--surface)}
.sb-nav .current-menu-item>a{color:#fff; background:var(--surface)}
.header-right{margin-inline-start:auto; display:flex; align-items:center; gap:14px}
.btn{display:inline-block; font-family:var(--head); font-weight:600; font-size:15px; padding:10px 18px;
  border-radius:10px; background:linear-gradient(135deg,#a78bfa,#7c3aed); color:#fff !important;
  box-shadow:0 8px 22px rgba(124,58,237,0.35); border:0; cursor:pointer}
.btn:hover{filter:brightness(1.08); color:#fff}
.btn-ghost{background:transparent; box-shadow:none; border:1px solid var(--border); color:var(--text) !important}
.btn-ghost:hover{border-color:var(--lilac)}

/* Language switcher */
.lang-switch{display:flex; gap:6px; list-style:none; margin:0; padding:0}
.lang-switch a{color:var(--muted); font-weight:700; font-size:13px; padding:5px 9px; border-radius:8px; border:1px solid var(--border)}
.lang-switch .current-lang a,.lang-switch a:hover{color:#fff; border-color:var(--lilac)}

/* Hero (front page) */
.hero{padding:80px 0 40px; text-align:center}
.hero .eyebrow{display:inline-block; color:var(--lilac-2); font-weight:700; letter-spacing:3px; font-size:13px;
  border:1px solid rgba(167,139,250,0.4); background:rgba(124,58,237,0.12); padding:6px 14px; border-radius:999px; margin-bottom:22px}
.hero h1{font-size:clamp(2.2rem,5vw,3.4rem); margin:0 0 18px}
.hero h1 .grad{background:linear-gradient(135deg,#c4b5fd,#a78bfa 45%,#7c3aed); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent}
.hero p{color:var(--muted); font-size:1.2rem; max-width:620px; margin:0 auto 28px}
.hero .cta{display:flex; gap:14px; justify-content:center; flex-wrap:wrap}

/* Sections */
.section{padding:36px 0 64px}
.section-title{display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:12px 0 26px}
.section-title h2{font-size:1.7rem; margin:0}
.section-title .muted{color:var(--muted); font-size:.95rem}

/* Post grid / cards */
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:24px}
.card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
  transition:border-color .2s, transform .2s; display:flex; flex-direction:column}
.card:hover{border-color:var(--lilac); transform:translateY(-4px)}
.card .thumb{aspect-ratio:1200/630; background:var(--surface-2); overflow:hidden}
.card .thumb img{width:100%; height:100%; object-fit:cover}
.card .body{padding:18px 20px 22px; display:flex; flex-direction:column; gap:10px; flex:1}
.card .cat{color:var(--lilac-2); font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase}
.card h3{font-size:1.25rem; margin:0}
.card h3 a{color:#fff} .card h3 a:hover{color:var(--lilac-2)}
.card .excerpt{color:var(--muted); font-size:.98rem; margin:0}
.card .meta{color:#75758a; font-size:.82rem; margin-top:auto; padding-top:6px}

/* Single / page */
.article{background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:0 0 40px; overflow:hidden; margin:32px 0}
.article .hero-img{aspect-ratio:1200/630; background:var(--surface-2)}
.article .hero-img img{width:100%; height:100%; object-fit:cover}
.article .inner{max-width:760px; margin:0 auto; padding:0 28px}
.article .eyebrow{color:var(--lilac-2); font-weight:700; letter-spacing:2px; font-size:12px; text-transform:uppercase; display:block; margin:30px 0 10px}
.article h1{font-size:clamp(1.9rem,4vw,2.6rem); margin:0 0 12px}
.article .postmeta{color:var(--muted); font-size:.9rem; margin-bottom:26px}
.article .content{font-size:1.06rem}
.article .content h2{font-size:1.5rem; margin:34px 0 12px}
.article .content h3{font-size:1.2rem; margin:26px 0 10px}
.article .content p{margin:0 0 18px}
.article .content ul,.article .content ol{margin:0 0 18px; padding-inline-start:22px}
.article .content li{margin:6px 0}
.article .content blockquote{margin:24px 0; padding:14px 20px; border-inline-start:3px solid var(--lilac);
  background:var(--surface-2); border-radius:10px; color:var(--lilac-2)}
.article .content code{background:var(--surface-2); padding:2px 7px; border-radius:6px; font-size:.9em}
.article .content a{text-decoration:underline}
.tags{display:flex; gap:8px; flex-wrap:wrap; margin:26px 0 0}
.tags a{font-size:.8rem; color:var(--muted); border:1px solid var(--border); padding:5px 11px; border-radius:999px}
.tags a:hover{border-color:var(--lilac); color:#fff}

/* Footer */
.site-footer{border-top:1px solid var(--border); margin-top:40px; padding:44px 0; color:var(--muted)}
.site-footer .cols{display:flex; justify-content:space-between; gap:30px; flex-wrap:wrap; align-items:flex-start}
.site-footer .fnav{display:flex; gap:18px; list-style:none; margin:0; padding:0; flex-wrap:wrap}
.site-footer .fnav a{color:var(--muted); font-size:.92rem} .site-footer .fnav a:hover{color:#fff}
.site-footer .disclaimer{margin-top:22px; font-size:.8rem; color:#6a6a7d; max-width:760px; line-height:1.6}
.site-footer .copy{margin-top:12px; font-size:.85rem}

/* Pagination */
.pagination{display:flex; gap:10px; justify-content:center; margin:36px 0}
.pagination a,.pagination .current{padding:8px 14px; border-radius:10px; border:1px solid var(--border); color:var(--muted)}
.pagination .current,.pagination a:hover{border-color:var(--lilac); color:#fff}

/* Arabic / RTL */
html[lang^="ar"] body,.rtl body{font-family:"Cairo",system-ui,sans-serif}
html[lang^="ar"] h1,html[lang^="ar"] h2,html[lang^="ar"] h3,html[lang^="ar"] .brand,
.rtl h1,.rtl h2,.rtl h3,.rtl .brand{font-family:"Cairo",system-ui,sans-serif}

@media (max-width:720px){
  .site-header .wrap{height:auto; flex-wrap:wrap; padding-top:12px; padding-bottom:12px; gap:12px}
  .header-right{width:100%; justify-content:space-between}
  .sb-nav{order:3; width:100%}
}
