/* IslamPlay — global styles */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: #0f0d0a;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: #f3e9d2;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}

/* ── Responsive app frame ──────────────────────────────────────── */
/* Mobile: fill the viewport, no phone shell, no page header       */
.ip-app-frame {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #0f0d0a;
}
.ip-app-canvas {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  box-shadow: none;
}

/* ── Desktop hero (left) — hidden on mobile/tablet ────────────── */
.ip-hero { display: none; }

/* ── Tablet / small desktop: centered phone preview ──────────── */
@media (min-width: 720px) {
  body {
    background:
      radial-gradient(ellipse 1200px 800px at 25% 20%, rgba(212, 175, 106, 0.12), transparent 55%),
      radial-gradient(ellipse at top, #2a2010 0%, #17130d 55%, #0b0906 100%);
    background-attachment: fixed;
  }

  .ip-app-frame {
    position: relative;
    inset: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 40px 20px;
    align-items: center;
    justify-content: center;
    gap: 60px;
  }

  .ip-app-canvas {
    width: 420px;
    height: min(880px, calc(100dvh - 80px));
    max-height: 880px;
    border-radius: 44px;
    border: 1px solid rgba(212, 175, 106, 0.25);
    box-shadow:
      0 40px 120px rgba(0, 0, 0, 0.7),
      0 0 100px rgba(212, 175, 106, 0.06);
    flex-shrink: 0;
  }
}

/* ── Large desktop: two-column hero + phone ──────────────────── */
@media (min-width: 1100px) {
  .ip-app-frame {
    padding: 40px 60px;
    gap: 80px;
  }
  .ip-hero {
    display: flex;
    flex-direction: column;
    width: 460px;
    max-width: 460px;
    color: #f3e9d2;
  }
  .ip-hero-bismillah {
    font-family: 'Amiri', serif;
    font-size: 56px;
    font-weight: 700;
    color: #e9c97a;
    line-height: 1;
    text-shadow: 0 0 32px rgba(212, 175, 106, 0.35);
    margin-bottom: 24px;
  }
  .ip-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 60px;
    line-height: 1;
    margin: 0 0 14px;
    color: #f3e9d2;
  }
  .ip-hero h1 .accent {
    color: #e9c97a;
    font-style: italic;
    font-size: 38px;
    display: block;
    margin-top: 8px;
    line-height: 1.1;
  }
  .ip-hero-arabic {
    font-family: 'Amiri', serif;
    font-size: 24px;
    color: rgba(233, 201, 122, 0.85);
    margin: 16px 0 20px;
  }
  .ip-hero-lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    line-height: 1.5;
    color: rgba(243, 233, 210, 0.80);
    margin: 0 0 28px;
    font-weight: 400;
  }

  .ip-hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }
  .ip-hero-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .ip-hero-feature-ico {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(212, 175, 106, 0.10);
    border: 1px solid rgba(212, 175, 106, 0.25);
    display: flex; align-items: center; justify-content: center;
  }
  .ip-hero-feature-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #f3e9d2;
    margin-bottom: 2px;
  }
  .ip-hero-feature-sub {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: rgba(243, 233, 210, 0.55);
    line-height: 1.4;
  }

  .ip-hero-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 106, 0.14);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(243, 233, 210, 0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .ip-hero-footer-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4a9a7a;
    box-shadow: 0 0 10px rgba(74, 154, 122, 0.8);
    animation: ipPulse 2s ease-in-out infinite;
  }
  @keyframes ipPulse { 50% { opacity: 0.4; } }
}

/* ── Extra-wide: more breathing room ────────────────────────── */
@media (min-width: 1400px) {
  .ip-app-frame { gap: 120px; padding: 60px 100px; }
  .ip-hero { width: 520px; max-width: 520px; }
  .ip-hero h1 { font-size: 68px; }
}

.ip-stage {
  min-height: 100vh;
  padding: 48px 24px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.ip-stage-header {
  text-align: center;
  max-width: 720px;
  margin-bottom: 8px;
}
.ip-stage-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 44px;
  margin: 0 0 10px;
  color: #e9c97a;
  letter-spacing: 0.5px;
}
.ip-stage-header p {
  font-family: 'Inter', sans-serif;
  color: rgba(243, 233, 210, 0.55);
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ip-screens {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 40px;
  justify-content: center;
  align-items: flex-start;
}

.ip-screen-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ip-screen-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: rgba(233, 201, 122, 0.85);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}
.ip-screen-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(243, 233, 210, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -10px;
}

/* Ornamental divider */
.ip-divider {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(212, 175, 106, 0.4);
}
.ip-divider::before, .ip-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, 0.4), transparent);
}

/* Tweaks panel */
.ip-tweaks {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 280px;
  background: rgba(23, 19, 13, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 106, 0.3);
  border-radius: 14px;
  padding: 18px;
  color: #f3e9d2;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ip-tweaks h3 {
  margin: 0 0 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: #e9c97a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.ip-tweaks label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 233, 210, 0.55);
  margin: 12px 0 6px;
}
.ip-tweaks .ip-opt-row {
  display: flex;
  gap: 6px;
}
.ip-tweaks button.ip-opt {
  flex: 1;
  background: rgba(212, 175, 106, 0.08);
  border: 1px solid rgba(212, 175, 106, 0.2);
  color: #f3e9d2;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.ip-tweaks button.ip-opt:hover {
  background: rgba(212, 175, 106, 0.15);
}
.ip-tweaks button.ip-opt.active {
  background: linear-gradient(180deg, #d4af6a, #b8904a);
  color: #17130d;
  border-color: transparent;
  font-weight: 600;
}

/* ── Scrollbars inside the app canvas ──────────────────────────
   Hide the vertical scrollbar on the main screen (it's inside the
   phone shell, looks wrong). Keep a thin themed scrollbar on
   horizontally-scrolling rows so mouse users can drag them. */

/* Hide vertical screen scrollbar */
.ip-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ip-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Thin gold scrollbar on horizontal rows */
.ip-hscroll {
  scrollbar-width: thin;                   /* Firefox */
  scrollbar-color: rgba(212, 175, 106, 0.45) transparent;
  scroll-behavior: smooth;
}
.ip-hscroll::-webkit-scrollbar {
  height: 6px;
  width: 6px;
  background: transparent;
}
.ip-hscroll::-webkit-scrollbar-track {
  background: transparent;
}
.ip-hscroll::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 106, 0.35);
  border-radius: 999px;
  transition: background 0.2s;
}
.ip-hscroll:hover::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 106, 0.55);
}
