/* +------------------------------------------------------------------------+
   | Islamyaat theme layer (loaded last, see layout/container.html)
   | - one brand palette: green + warm gold (PlayTube's blue was replaced in
   |   style.css / night-mode.css / templates, originals kept as *.original)
   | - one Arabic UI font (IBM Plex Sans Arabic) + Amiri for Quran text
   +------------------------------------------------------------------------+ */
:root {
  /* brand: black/white + gold (was green). --iy-green kept as the name of the main accent for older rules */
  --iy-green: #c9993e;
  --iy-green-hover: #d8ad55;
  --iy-gold: #d6a841;
  --iy-gold-hover: #e3b955;
  --iy-on-gold: #1c1503;
  --iy-radius: 14px;
  --iy-font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", sans-serif;
  --iy-quran: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
}

/* one font everywhere (icon fonts keep their own family: only text elements are set) */
body, input, textarea, select, button, .btn, h1, h2, h3, h4, h5, h6, p, a, span, li, label, td, th,
.video-big-title h1, .dropdown-menu, .tooltip, .popover { font-family: var(--iy-font) !important; }
.fa, [class^="fa-"], [class*=" fa-"], .material-icons, .glyphicon { font-family: inherit; }
.fa { font-family: FontAwesome !important; }
.material-icons { font-family: "Material Icons" !important; }
.glyphicon { font-family: "Glyphicons Halflings" !important; }
body { letter-spacing: 0; -webkit-font-smoothing: antialiased; }

/* Quran text */
.iy-quran, .iy-dcard.ayah .q { font-family: var(--iy-quran) !important; }

/* links and selection in the brand colour */
::selection { background: rgba(201, 153, 62, .35); }
a:hover { color: var(--iy-green-hover); }

/* the search button in the header (was PlayTube blue) */
.search-header .btn, .pt_hdr_srch_btn, form.search-header button { background: var(--iy-gold) !important; border-color: var(--iy-gold) !important; color: var(--iy-on-gold) !important; }

/* pagination: brand colours, calmer */
.pagination>li>a, .pagination>li>span { background-color: rgba(201, 153, 62, .1); border-color: transparent; color: var(--iy-green); }
.pagination>.active>a, .pagination>.active>a:hover, .pagination>.active>span { background-color: var(--iy-gold); border-color: var(--iy-gold); color: var(--iy-on-gold); }

/* softer cards */
.iy-thumb, .iy-dcard, .iy-wird { border-radius: var(--iy-radius); }

/* ---------- Home hero ---------- */
.iy-hero { position: relative; z-index: 60; overflow: visible; padding: 44px 16px 40px; text-align: center; direction: rtl;
  background: radial-gradient(1200px 420px at 50% -10%, rgba(201, 153, 62,.18), transparent 70%), #fbf8f1; }
.iy-hero::before { /* faint geometric pattern */
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, currentColor 0 1px, transparent 1px 22px);
}
.iy-hero-ayah { position: relative; font-family: var(--iy-quran) !important; font-weight: 700; line-height: 1.5;
  font-size: clamp(38px, 7vw, 84px); color: rgba(150, 110, 30, .30) !important; margin: 0 0 6px; }
.iy-hero-sub { position: relative; font-size: 16px; opacity: .75; margin: 0 0 22px; color: inherit !important; }
.iy-hero-search { position: relative; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid rgba(127,127,127,.25); border-radius: 999px; padding: 6px 8px 6px 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.iy-hero-search svg { width: 22px; height: 22px; opacity: .6; flex-shrink: 0; margin-inline-start: 10px; }
.iy-hero-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font-size: 17px; padding: 10px 4px; color: inherit; height: auto !important; }
.iy-hero-search button { border: 0; border-radius: 999px; padding: 10px 22px; background: var(--iy-gold); color: var(--iy-on-gold); font-weight: 600; font-size: 15px; cursor: pointer; }
.iy-hero-search button:hover { background: var(--iy-gold-hover); }
.iy-hero-btns { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.iy-hero-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none !important; transition: background .15s, border-color .15s; }
.iy-hero-btn svg { width: 18px; height: 18px; }
.iy-hero-btn.gold { background: var(--iy-gold); color: #1c1503 !important; }
.iy-hero-btn.gold:hover { background: var(--iy-gold-hover); }
.iy-hero-btn.ghost { border: 1px solid rgba(127,127,127,.4); color: inherit !important; }
.iy-hero-btn.ghost:hover { border-color: var(--iy-gold); }
@media (max-width: 640px) {
  .iy-hero { padding: 28px 12px 26px; }
  .iy-hero-sub { font-size: 14px; margin-bottom: 16px; }
  .iy-hero-search input { font-size: 15px; }
  .iy-hero-search button { padding: 9px 16px; }
}

/* ---------- night mode ---------- */
:root:has(link.night-mode-css) .iy-hero { background: radial-gradient(1200px 420px at 50% -10%, rgba(201, 153, 62,.16), transparent 70%), #141414; color: #e8e8e8; }
:root:has(link.night-mode-css) .iy-hero-ayah { color: rgba(214,168,65,.38) !important; } /* muted gold calligraphy */
:root:has(link.night-mode-css) .iy-hero-search { background: #24272b; border-color: #34383d; box-shadow: none; }
:root:has(link.night-mode-css) .iy-hero-search input { color: #fff; }
:root:has(link.night-mode-css) .pagination>li>a, :root:has(link.night-mode-css) .pagination>li>span { background-color: rgba(201, 153, 62,.18) !important; color: #e0bf74 !important; border-color: transparent !important; }
:root:has(link.night-mode-css) .pagination>.active>a { background-color: var(--iy-gold) !important; color: var(--iy-on-gold) !important; }

/* gold fills need dark text (white on gold is hard to read) */
.isl-btn-main, .iy-follow:not(.on):not(.iy-fav-btn), .iy-install .go, .iy-pt .next, .iy-wird .week i.ok, .iy-hero-search button { color: var(--iy-on-gold) !important; }
.iy-pt .next b { opacity: .8; }

/* ---------- home search: dropdown + mic ---------- */
.iy-sbox { position: relative; max-width: 720px; margin: 0 auto; text-align: start; }
.iy-hero-search .iy-mic { background: transparent !important; color: inherit !important; padding: 8px !important; border-radius: 50%; opacity: .75; display: grid; place-items: center; }
.iy-hero-search .iy-mic[hidden] { display: none; }
.iy-hero-search .iy-mic svg { width: 22px; height: 22px; margin: 0; opacity: 1; }
.iy-hero-search .iy-mic:hover { opacity: 1; background: rgba(127,127,127,.15) !important; }
.iy-hero-search .iy-mic.on { color: #e5484d !important; opacity: 1; animation: iy-pulse 1.2s ease-in-out infinite; }
@keyframes iy-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(229,72,77,.45); } 50% { box-shadow: 0 0 0 10px rgba(229,72,77,0); } }
.iy-sdrop { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 1000; background: #fff; color: #111; border: 1px solid rgba(127,127,127,.22);
  border-radius: 18px; padding: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.18); max-height: 440px; overflow-y: auto; }
.iy-sdrop[hidden] { display: none; }
.iy-shead { font-size: 12px; opacity: .55; padding: 10px 12px 4px; }
.iy-sitem { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: inherit !important; text-decoration: none !important; cursor: pointer; }
.iy-sitem:hover, .iy-sitem.on { background: rgba(127,127,127,.13); }
.iy-sitem .ic { width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; opacity: .75; }
.iy-sitem .ic svg { width: 20px; height: 20px; }
.iy-sitem .ic img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.iy-sitem .ic img.th { width: 64px; height: 36px; border-radius: 6px; }
.iy-sitem:has(img.th) .ic { width: 64px; }
.iy-sitem .tx { flex: 1; min-width: 0; font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iy-sitem .tx small { display: block; font-size: 12px; opacity: .6; overflow: hidden; text-overflow: ellipsis; }
.iy-sitem .x { background: none; border: 0; color: inherit; opacity: .5; cursor: pointer; font-size: 14px; padding: 4px 8px; border-radius: 50%; }
.iy-sitem .x:hover { opacity: 1; background: rgba(127,127,127,.2); }
.iy-snone { padding: 10px 12px; font-size: 14px; opacity: .6; }
:root:has(link.night-mode-css) .iy-sdrop { background: #1f1f1f; color: #eee; border-color: #333; box-shadow: 0 18px 50px rgba(0,0,0,.5); }

/* the category chips row has a -20px top margin (PlayTube) and slid under the hero: give it room */
.iy-hero ~ .pt_sec_nav_cats { margin-top: 0 !important; }
.iy-hero { margin: -20px -15px 0; } /* full width, like the category bar under it (cancels the page padding) */
@media (max-width: 705px) { .iy-hero { margin: -20px 0 0; } } /* phones: the page has no side padding */

/* Islamyaat: no color transitions while switching light/dark (the fixed sidebar could stay painted dark) */
.iy-mode-switch, .iy-mode-switch *, .iy-mode-switch *::before, .iy-mode-switch *::after { transition: none !important; }

/* Islamyaat: language button in the header */
.iy-lang-menu { max-height: 70vh; overflow-y: auto; min-width: 190px; padding: 6px 0; }
.iy-lang-menu > li > a { padding: 8px 18px; font-size: 15px; }
.iy-lang-menu > li.active > a, .iy-lang-menu > li.active > a:hover { background: rgba(201,153,62,.14); color: var(--iy-gold, #c9993e); font-weight: 700; }
.iy-lang-menu > li.active > a span { float: left; }

/* Islamyaat: home hero = "night sky" (picked by the owner, 1 Dec 2026; preview: Desktop/islamyaat/previews/hero-backgrounds.html).
   Same in light and dark mode: navy night, small stars, a gold crescent (span.iy-hero-moon in islamyaat/hero.html), brighter calligraphy. */
.iy-hero, :root:has(link.night-mode-css) .iy-hero { color: #e8e8e8; /* overflow stays visible: the search suggestions drop below the hero */
  background: radial-gradient(700px 300px at 50% 0%, rgba(214,168,65,.22), transparent 70%), linear-gradient(180deg, #0b1630 0%, #0a1120 55%, #0d0d12 100%); }
.iy-hero::before { opacity: .9;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 22%, #fff 99%, transparent), radial-gradient(1px 1px at 18% 64%, #fff 99%, transparent),
    radial-gradient(1.6px 1.6px at 27% 14%, #ffe9b0 99%, transparent), radial-gradient(1px 1px at 36% 48%, #fff 99%, transparent),
    radial-gradient(1.2px 1.2px at 44% 80%, #fff 99%, transparent), radial-gradient(1px 1px at 58% 30%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 66% 70%, #ffe9b0 99%, transparent), radial-gradient(1px 1px at 74% 18%, #fff 99%, transparent),
    radial-gradient(1.3px 1.3px at 83% 56%, #fff 99%, transparent), radial-gradient(1px 1px at 92% 26%, #fff 99%, transparent),
    radial-gradient(1px 1px at 4% 86%, #fff 99%, transparent), radial-gradient(1.2px 1.2px at 96% 82%, #fff 99%, transparent),
    radial-gradient(1px 1px at 51% 10%, #fff 99%, transparent), radial-gradient(1px 1px at 13% 40%, #fff 99%, transparent),
    radial-gradient(1px 1px at 88% 8%, #fff 99%, transparent), radial-gradient(1px 1px at 62% 92%, #fff 99%, transparent); }
.iy-hero-moon { position: absolute; top: 26px; left: 7%; width: 58px; height: 58px; border-radius: 50%; box-shadow: -12px 8px 0 0 #e9c46a;
  transform: rotate(-20deg); opacity: .85; filter: drop-shadow(0 0 14px rgba(233,196,106,.5)); pointer-events: none; }
.iy-hero-ayah, :root:has(link.night-mode-css) .iy-hero-ayah { color: rgba(233,196,106,.55) !important; }
.iy-hero-search, :root:has(link.night-mode-css) .iy-hero-search { background: #1b2233; border-color: #2c3550; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.iy-hero-search input, :root:has(link.night-mode-css) .iy-hero-search input { color: #fff !important; }
.iy-hero-search input::placeholder { color: rgba(255,255,255,.55); }
.iy-hero-btn.ghost { border-color: rgba(200,205,220,.4); color: #e8e8e8 !important; }
@media (max-width: 705px) { .iy-hero-moon { width: 40px; height: 40px; top: 16px; left: 5%; box-shadow: -8px 6px 0 0 #e9c46a; } }
