/*
Theme Name: Qiblah
Theme URI: https://qiblah.me/
Author: ArtTree
Author URI: https://arttree.sa
Description: واجهة قِبْلَــــة / Qiblah المخصصة، عربية/English، RTL/LTR، ومتجاوبة بالكامل.
Version: 2.7.5
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: qibla-theme
*/

:root{
  --qibla-bg:#071a16;
  --qibla-panel:#102d25;
  --qibla-emerald:#086b58;
  --qibla-deep:#04362c;
  --qibla-mint:#bce8d5;
  --qibla-gold:#d7b36a;
  --qibla-text:#ffffff;
  --qibla-muted:#a7bbb3;
  --qibla-line:rgba(255,255,255,.09);
}

html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--qibla-bg);
  color:var(--qibla-text);
  font-family:"Thmanyah Sans","Thmanyah Serif Text",Arial,sans-serif;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
*{box-sizing:border-box}
img{max-width:100%;height:auto}
a{color:inherit}

.q-theme-shell{
  min-height:100vh;
  background:
    radial-gradient(circle at 85% 0,rgba(8,107,88,.22),transparent 30%),
    radial-gradient(circle at 8% 38%,rgba(215,179,106,.07),transparent 24%),
    var(--qibla-bg);
}
.q-theme-wrap{
  width:min(1120px,calc(100% - 36px));
  margin-inline:auto;
}
.q-theme-header{
  border-bottom:1px solid var(--qibla-line);
  background:rgba(7,26,22,.78);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.q-theme-header-inner{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.q-theme-brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-weight:800;
  font-size:21px;
}
.q-theme-brand img{
  width:42px;
  height:42px;
  object-fit:contain;
}
.q-theme-nav{
  display:flex;
  align-items:center;
  gap:18px;
  color:#bdcec7;
  font-size:14px;
}
.q-theme-nav a{
  text-decoration:none;
}
.q-theme-nav a:hover{color:#fff}
.q-theme-content{
  padding:72px 0 90px;
}
.q-theme-article{
  max-width:860px;
  margin-inline:auto;
  padding:clamp(24px,4vw,52px);
  border:1px solid var(--qibla-line);
  border-radius:30px;
  background:rgba(255,255,255,.028);
}
.q-theme-article h1,
.q-theme-article h2,
.q-theme-article h3{
  font-family:"Thmanyah Serif Display","Thmanyah Sans",Arial,sans-serif;
  line-height:1.25;
}
.q-theme-article h1{
  font-size:clamp(36px,5vw,58px);
  margin:0 0 28px;
}
.q-theme-article h2{margin-top:38px}
.q-theme-article p,
.q-theme-article li{color:#c8d6d1}
.q-theme-article a{color:var(--qibla-mint)}
.q-theme-footer{
  padding:28px 0 38px;
  border-top:1px solid var(--qibla-line);
  color:#829a90;
  font-size:13px;
}
.q-theme-footer-inner{
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.q-theme-footer a{
  color:#b7ccc4;
  text-decoration:none;
}

.q-service-unavailable{
  max-width:760px;
  margin:90px auto;
  padding:34px;
  border:1px solid var(--qibla-line);
  border-radius:26px;
  background:rgba(255,255,255,.035);
  text-align:center;
}
.q-service-unavailable img{
  width:80px;
  margin:0 auto 20px;
}
.q-service-unavailable h1{margin:0 0 12px}
.q-service-unavailable p{color:var(--qibla-muted)}

@media(max-width:720px){
  .q-theme-wrap{width:min(100% - 26px,1120px)}
  .q-theme-header-inner{min-height:66px}
  .q-theme-nav a:not(:last-child){display:none}
  .q-theme-content{padding:44px 0 62px}
  .q-theme-footer-inner{flex-direction:column;text-align:center;align-items:center}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}


/* Qiblah v2 — transparent header */
.q-theme-header{
  position:sticky;
  top:0;
  z-index:50;
  background:transparent !important;
  border-bottom-color:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  transition:background .35s ease,border-color .35s ease,box-shadow .35s ease,backdrop-filter .35s ease;
}
.q-theme-header.is-scrolled{
  background:rgba(7,26,22,.82) !important;
  border-bottom-color:rgba(255,255,255,.08) !important;
  box-shadow:0 14px 42px rgba(0,0,0,.18);
  backdrop-filter:blur(18px) saturate(125%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(125%) !important;
}

/* Qiblah Theme 2.2 — mobile menu for inner pages */
.q-theme-menu-toggle{display:none;width:44px;height:44px;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:rgba(255,255,255,.04);padding:10px;flex-direction:column;justify-content:center;gap:5px}
.q-theme-menu-toggle span{height:2px;width:21px;background:#fff;border-radius:5px;display:block}
.q-theme-mobile-nav{display:none}
@media(max-width:720px){.q-theme-nav{display:none!important}.q-theme-menu-toggle{display:flex}.q-theme-header-inner{position:relative}.q-theme-mobile-nav.open{position:absolute;display:grid;top:calc(100% + 8px);inset-inline:0;padding:10px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(7,26,22,.96);backdrop-filter:blur(18px);z-index:80}.q-theme-mobile-nav a{padding:11px 13px;text-decoration:none;color:#dce8e3}}

/* Qiblah 2.5.2 ticket page */
.q-theme-content:has(.qiblah-ticket-page){padding-top:34px}



/* Qiblah 2.6.4 — no Tahoma fallback. The active font is injected globally by Font Manager. */
body{font-family:"Thmanyah Sans",Arial,sans-serif}
h1,h2,h3,h4,h5,h6{font-family:"Thmanyah Serif Display","Thmanyah Sans",Arial,sans-serif}

/* Error / empty-state pages */
.q-error-page{min-height:70vh;display:grid;place-items:center;padding:70px 0;text-align:center}
.q-error-card{width:min(720px,100%);margin:auto;padding:54px 28px}
.q-error-code{font-family:Arial,sans-serif;font-size:clamp(72px,14vw,150px);font-weight:900;line-height:.9;color:rgba(188,232,213,.12);letter-spacing:-.06em}
.q-error-card h1{font-size:clamp(34px,5vw,56px);margin:18px 0 12px}
.q-error-card p{max-width:580px;margin:0 auto 28px;color:var(--qibla-muted);font-size:18px}
.q-error-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.q-error-button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:10px 18px;border-radius:15px;text-decoration:none;background:#fff;color:#071a16;font-weight:800}
.q-error-button.secondary{background:rgba(255,255,255,.05);color:#fff;border:1px solid var(--qibla-line)}
.q-search-page{padding:64px 0 90px}.q-search-page h1{font-size:clamp(36px,5vw,58px)}.q-search-results{display:grid;gap:14px;margin-top:30px}.q-search-result{padding:22px;border:1px solid var(--qibla-line);border-radius:20px;background:rgba(255,255,255,.025);text-decoration:none}.q-search-result p{color:var(--qibla-muted);margin-bottom:0}
