/* ============================================================
   QUL WADAL - Public identity v4
   Light, calm, editorial-modern. Plum ink + heritage purple/gold.
   Display: Readex Pro / Body: IBM Plex Sans Arabic
   ============================================================ */

:root{
  --paper:#FBFAF7;
  --paper2:#F4F2ED;
  --card:#FFFFFF;
  --ink:#201A2C;
  --ink2:#756E85;
  --purple:#6B21A8;
  --purple-deep:#4C1D95;
  --purple-soft:#F4EEFA;
  --gold:#C4A24A;
  --gold-deep:#A2843B;
  --gold-soft:#F8F2E2;
  --green:#1E7F5C;
  --live:#D64545;
  --line:#EAE6F0;
  --radius:16px;
  --head:'Readex Pro','IBM Plex Sans Arabic',sans-serif;
  --body:'IBM Plex Sans Arabic',sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);
  --sh:0 4px 24px rgba(32,26,44,.06);
  --sh-lg:0 18px 50px rgba(32,26,44,.12);
}

*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{
  font-family:var(--body);background:var(--paper);color:var(--ink);
  direction:rtl;line-height:1.8;-webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
button{font-family:var(--body)}
::selection{background:rgba(196,162,74,.3)}
a:focus-visible,button:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:6px}

.container{max-width:1140px;margin:0 auto;padding:0 5%}
.container-narrow{max-width:780px}

/* ------- signature: the "dalla" stroke ------- */
.kicker{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--head);font-size:.8rem;font-weight:600;color:var(--gold-deep);
}
.kicker:before{
  content:'';width:22px;height:3px;border-radius:2px;
  background:var(--gold);transform:rotate(-6deg);
}

/* ------- header ------- */
.hdr{position:sticky;top:0;z-index:100;background:rgba(251,250,247,.92);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line)}
.hdr-meta{border-bottom:1px solid var(--line);background:var(--paper2)}
.hdr-meta-in{display:flex;justify-content:space-between;align-items:center;
  padding-block:6px;font-size:.72rem;font-weight:500;color:var(--ink2)}
.hdr-meta .dot{display:inline-block;width:5px;height:5px;border-radius:50%;
  background:var(--gold);margin-inline:8px;vertical-align:middle}
.hdr-meta-tag{color:var(--purple);font-weight:600}
.hdr-main-in{display:flex;justify-content:space-between;align-items:center;height:64px}
.brand{display:flex;align-items:baseline;gap:4px}
.brand-mark{font-family:var(--head);font-size:1.45rem;font-weight:700;color:var(--purple-deep);letter-spacing:0}
.brand-mark.light{color:#fff}
.brand-dot{width:8px;height:8px;border-radius:50%;background:var(--gold);align-self:center;margin-top:8px}
.nav{display:flex;gap:1.7rem}
.nav a{font-family:var(--head);font-size:.92rem;font-weight:500;color:var(--ink2);
  position:relative;padding-block:6px;transition:color .25s}
.nav a:after{content:'';position:absolute;bottom:0;right:0;width:0;height:2.5px;border-radius:2px;
  background:var(--gold);transform-origin:right;transition:width .3s var(--ease)}
.nav a:hover{color:var(--purple)}
.nav a.on{color:var(--purple);font-weight:600}
.nav a.on:after,.nav a:hover:after{width:100%}

/* ------- hero ------- */
.hero{padding:3.2rem 0 3.6rem;background:
  radial-gradient(640px 320px at 85% -10%,rgba(107,33,168,.07),transparent 60%),
  var(--paper)}
.hero-in{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.hero-title{font-family:var(--head);font-size:clamp(1.7rem,3.6vw,2.6rem);
  font-weight:700;line-height:1.5;margin:.8rem 0 1rem}
.hero-title a{transition:color .25s}
.hero-title a:hover{color:var(--purple)}
.hero-title em{font-style:normal;color:var(--purple)}
.hero-excerpt{color:var(--ink2);font-size:1.02rem;max-width:480px}
.hero-meta{display:flex;align-items:center;gap:1rem;margin-top:1.4rem;
  font-size:.82rem;color:var(--ink2)}
.hero-visual{position:relative;border-radius:22px;overflow:hidden;aspect-ratio:16/10;
  background:linear-gradient(150deg,var(--purple-deep),var(--purple));
  box-shadow:var(--sh-lg);display:block}
.hero-visual img{width:100%;height:100%;object-fit:cover;transition:transform 2.5s var(--ease)}
.hero-visual:hover img{transform:scale(1.035)}
.hero-ph{position:absolute;inset:0;display:grid;place-items:center;
  font-family:var(--head);font-size:5rem;font-weight:700;color:rgba(255,255,255,.22)}
.hero-corner{position:absolute;top:14px;left:14px;width:38px;height:38px;
  border-top:4px solid var(--gold);border-left:4px solid var(--gold);
  border-radius:10px 0 0 0;opacity:.9}
.hero-empty{text-align:center;padding-block:5rem}
.hero-empty .hero-excerpt{margin-inline:auto}

/* ------- sections ------- */
.sec{padding:3.2rem 0}
.sec-tight{padding:2rem 0 1.4rem}
.sec-alt{background:var(--paper2)}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;
  gap:1rem;margin-bottom:1.7rem;flex-wrap:wrap}
.sec-title{font-family:var(--head);font-size:1.5rem;font-weight:700;
  display:inline-flex;align-items:center;gap:12px}
.sec-title:after{content:'';width:26px;height:3.5px;border-radius:2px;
  background:var(--gold);transform:rotate(-6deg)}
.sec-more{font-size:.86rem;font-weight:600;color:var(--purple);transition:gap .3s;
  display:inline-flex;gap:5px}
.sec-more:hover{color:var(--purple-deep)}
.empty{color:var(--ink2);background:var(--card);border:1px dashed var(--line);
  border-radius:var(--radius);padding:2.4rem;text-align:center}

/* ------- cards ------- */
.grid{display:grid;gap:1.3rem}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .35s var(--ease),box-shadow .35s,border-color .35s}
.card:hover{transform:translateY(-5px);box-shadow:var(--sh-lg);border-color:transparent}
.card-img{position:relative;aspect-ratio:16/9;background:linear-gradient(150deg,var(--purple-soft),var(--gold-soft));overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover;transition:transform 2s var(--ease)}
.card:hover .card-img img{transform:scale(1.05)}
.card-img-ph{position:absolute;inset:0;display:grid;place-items:center;
  font-family:var(--head);font-size:2.6rem;font-weight:700;color:rgba(107,33,168,.25)}
.badge{position:absolute;top:10px;right:10px;font-size:.68rem;font-weight:700;
  padding:4px 11px;border-radius:20px;background:var(--card);color:var(--ink)}
.badge-news{background:var(--purple);color:#fff}
.badge-sports{background:var(--green);color:#fff}
.badge-article{background:var(--gold);color:var(--ink)}
.badge-x{right:auto;left:10px;background:var(--ink);color:#fff}
.card-body{padding:1.1rem 1.2rem 1.2rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.card-title{font-family:var(--head);font-size:1.02rem;font-weight:600;line-height:1.6}
.card-excerpt{font-size:.85rem;color:var(--ink2);line-height:1.75;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-meta{display:flex;align-items:center;gap:.7rem;font-size:.74rem;
  color:var(--ink2);margin-top:auto;padding-top:.4rem}
.sep{width:4px;height:4px;border-radius:50%;background:var(--gold);display:inline-block}
.card-cta{font-size:.83rem;font-weight:700;color:var(--purple)}

/* ------- categories filter ------- */
.cats{display:flex;gap:.55rem;flex-wrap:wrap;margin-bottom:1.8rem}
.cat{font-size:.85rem;font-weight:600;padding:7px 17px;border-radius:30px;
  background:var(--card);border:1.5px solid var(--line);color:var(--ink2);
  transition:all .25s}
.cat:hover{border-color:var(--purple);color:var(--purple)}
.cat.on{background:var(--purple);border-color:var(--purple);color:#fff}

/* ------- match cards ------- */
.match-rail{display:flex;gap:.9rem;overflow-x:auto;padding:4px 2px 14px;
  scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--purple) transparent}
.match-rail::-webkit-scrollbar{height:5px}
.match-rail::-webkit-scrollbar-thumb{background:var(--purple);border-radius:3px}
.match{min-width:250px;flex:0 0 auto;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:1rem 1.1rem;scroll-snap-align:start;
  transition:box-shadow .3s,border-color .3s}
.match:hover{box-shadow:var(--sh)}
.match.is-live{border-color:rgba(214,69,69,.5)}
.post-match .match{min-width:0;width:100%}
.match-top{display:flex;justify-content:space-between;align-items:center;
  font-size:.7rem;color:var(--ink2);margin-bottom:.8rem}
.match-comp{font-weight:600}
.match-status{font-weight:700;display:inline-flex;align-items:center;gap:5px}
.st-live{color:var(--live)}
.st-upcoming{color:var(--gold-deep)}
.st-finished{color:var(--ink2)}
.pulse{width:7px;height:7px;border-radius:50%;background:var(--live);animation:pl 1.4s infinite}
@keyframes pl{0%,100%{opacity:1}50%{opacity:.3}}
.match-row{display:grid;grid-template-columns:1fr auto 1fr;gap:.6rem;align-items:center}
.match-team{display:flex;flex-direction:column;align-items:center;gap:.45rem;
  font-size:.8rem;font-weight:600;text-align:center}
.match-team img{width:42px;height:42px;object-fit:contain}
.team-ph{width:42px;height:42px;border-radius:50%;background:var(--purple-soft);
  display:grid;place-items:center;font-family:var(--head);font-weight:700;color:var(--purple)}
.match-score{display:flex;align-items:center;gap:5px;
  font-family:var(--head);font-variant-numeric:tabular-nums}
.match-score b{font-size:1.55rem;font-weight:700}
.match-score i{color:var(--ink2);font-style:normal}
.match-score .vs{color:var(--gold-deep);font-size:1.2rem}
.match-time{margin-top:.7rem;padding-top:.6rem;border-top:1px dashed var(--line);
  font-size:.7rem;color:var(--ink2);text-align:center}

/* ------- page head ------- */
.pg-head{padding:3rem 0 2.2rem;border-bottom:1px solid var(--line);
  background:radial-gradient(560px 240px at 50% -30%,rgba(107,33,168,.06),transparent 65%),var(--paper)}
.pg-title{font-family:var(--head);font-size:clamp(1.9rem,4vw,2.7rem);
  font-weight:700;margin:.5rem 0 .4rem}
.pg-desc{color:var(--ink2);max-width:560px}

/* ------- post page ------- */
.post-head{padding:2.8rem 0 1.6rem}
.post-crumbs{display:flex;align-items:center;gap:.7rem;font-size:.8rem;
  font-weight:600;color:var(--purple);margin-bottom:1rem}
.post-crumbs a:hover{color:var(--purple-deep)}
.post-title{font-family:var(--head);font-size:clamp(1.6rem,3.4vw,2.3rem);
  font-weight:700;line-height:1.55;margin-bottom:1rem}
.post-meta{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;
  font-size:.8rem;color:var(--ink2)}
.post-figure{border-radius:20px;overflow:hidden;box-shadow:var(--sh-lg);margin-bottom:1.8rem}
.post-match{margin-bottom:1.8rem}
.post-body{font-size:1.05rem;line-height:2.05;color:var(--ink)}
.post-body p{margin-bottom:1.1rem}
.post-body img{border-radius:14px;margin:1.4rem auto}
.post-body h2,.post-body h3{font-family:var(--head);margin:1.6rem 0 .8rem;line-height:1.6}
.post-body a{color:var(--purple);font-weight:600}
.post-body ul,.post-body ol{padding-inline-start:1.4rem;margin-bottom:1.1rem}
.post-body blockquote{border-inline-start:4px solid var(--gold);background:var(--gold-soft);
  padding:1rem 1.3rem;border-radius:0 12px 12px 0;margin:1.4rem 0}
.btn-x{display:inline-block;margin-top:1.2rem;background:var(--purple);color:#fff;
  font-weight:700;padding:13px 28px;border-radius:40px;
  box-shadow:0 12px 28px -10px rgba(107,33,168,.5);transition:all .28s var(--ease)}
.btn-x:hover{background:var(--purple-deep);transform:translateY(-2px)}
.post-share{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;
  margin-top:2.4rem;padding-top:1.4rem;border-top:1px solid var(--line);
  font-size:.85rem;color:var(--ink2)}
.post-share a,.copy-btn{font-size:.82rem;font-weight:600;padding:7px 17px;
  border-radius:30px;border:1.5px solid var(--line);background:var(--card);
  color:var(--ink);cursor:pointer;transition:all .25s}
.post-share a:hover,.copy-btn:hover{border-color:var(--purple);color:var(--purple)}

/* ------- duo banners ------- */
.duo{display:grid;grid-template-columns:1fr 1fr;gap:1.3rem}
.duo-card{border-radius:20px;padding:2.2rem 2rem;color:#fff;
  transition:transform .35s var(--ease),box-shadow .35s;position:relative;overflow:hidden}
.duo-card:hover{transform:translateY(-5px);box-shadow:var(--sh-lg)}
.duo-card h3{font-family:var(--head);font-size:1.35rem;font-weight:700;margin:.5rem 0 .4rem}
.duo-card p{font-size:.88rem;opacity:.8}
.duo-card .kicker{color:var(--gold)}
.duo-programs{background:linear-gradient(140deg,var(--purple-deep),var(--purple))}
.duo-people{background:linear-gradient(140deg,#242031,var(--ink))}

/* ------- pager ------- */
.pager{display:flex;justify-content:center;gap:.8rem;margin-top:2.4rem}
.pager-btn{font-weight:700;font-size:.88rem;padding:10px 24px;border-radius:40px;
  background:var(--card);border:1.5px solid var(--line);transition:all .25s}
.pager-btn:hover{border-color:var(--purple);color:var(--purple)}

/* ------- footer ------- */
.ftr{background:var(--ink);color:#fff;margin-top:2.5rem;padding:3.4rem 0 0}
.ftr-in{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:2.4rem;
  padding-bottom:2.2rem;border-bottom:1px solid rgba(255,255,255,.09)}
.ftr-brand p{font-size:.85rem;color:rgba(255,255,255,.45);margin-top:.8rem;max-width:280px}
.ftr-links,.ftr-soc{display:flex;flex-direction:column;gap:.6rem}
.ftr-links a,.ftr-soc a{font-size:.86rem;color:rgba(255,255,255,.5);transition:color .2s;width:fit-content}
.ftr-links a:hover,.ftr-soc a:hover{color:var(--gold)}
.ftr-bottom{padding:1.4rem 5%;font-size:.78rem;color:rgba(255,255,255,.35);text-align:center}

/* ------- mobile tabbar ------- */
.tabbar{display:none;position:fixed;bottom:0;right:0;left:0;z-index:200;
  background:rgba(255,255,255,.94);backdrop-filter:blur(18px);
  border-top:1px solid var(--line);
  padding:7px 4px calc(7px + env(safe-area-inset-bottom,0px));
  grid-template-columns:repeat(5,1fr)}
.tabbar a{display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:5px 2px;color:var(--ink2);font-size:.6rem;font-weight:700;position:relative}
.tabbar svg{width:21px;height:21px;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tabbar a.on{color:var(--purple)}
.tabbar a.on:before{content:'';position:absolute;top:-8px;width:20px;height:3px;
  border-radius:2px;background:var(--gold);transform:rotate(-6deg)}

/* ------- responsive ------- */
@media(max-width:1000px){
  .hero-in{grid-template-columns:1fr;gap:1.8rem}
  .hero-visual{order:-1}
  .grid-3{grid-template-columns:1fr 1fr}
  .ftr-in{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .nav{display:none}
  .tabbar{display:grid}
  body{padding-bottom:66px}
  .hdr-meta-tag{display:none}
  .grid-3,.grid-2,.duo{grid-template-columns:1fr}
  .sec{padding:2.4rem 0}
  .ftr-in{grid-template-columns:1fr}
}

/* ------- reduced motion ------- */
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.001s !important;transition-duration:.001s !important}
}
