﻿/* ══════════════════════════════════════════════════
   Ma7ata — styles.css
   Depends on: css/colors_and_type.css (tokens)
               css/bootstrap.min.css  (grid / utilities)
   ══════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────── */
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  overflow-x: hidden;
}
body {
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--teal-600);
  direction: rtl;
  text-align: right;
}

/* ── Navbar ───────────────────────────────────── */
.ma7-nav {
  position: relative;
  z-index: 100;
  background: #0c3249;
  text-align: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-wordmark {
  font: 900 20px/1 "Tajawal";
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* ── Page / ambient ───────────────────────────── */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.ambient-a {
  position: absolute;
  inset-inline-start: -240px;
  top: -200px;
  width: 720px;
  height: 720px;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(124, 213, 255, 0.28),
    transparent
  );
  filter: blur(8px);
}
.ambient-b {
  position: absolute;
  inset-inline-end: -280px;
  bottom: -260px;
  width: 760px;
  height: 760px;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(124, 213, 255, 0.22),
    transparent
  );
  filter: blur(8px);
}
.ambient-c {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    1200px 600px at 70% 30%,
    rgba(229, 239, 241, 0.6),
    transparent 60%
  );
}

/* ── Hero section ────────────────────────────── */
.hero-section {
  position: relative;
  z-index: 4;
  padding: 60px 0 80px;
}
@media (max-width: 991.98px) {
  .hero-section {
    padding: 40px 0 60px;
  }
}
@media (max-width: 575.98px) {
  .hero-section {
    padding: 28px 0 48px;
  }
}

/* ── Hero copy ───────────────────────────────── */
.hero-copy {
  padding-block: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13px/1 "Tajawal";
  color: var(--teal-700);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(12, 50, 73, 0.1);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
  flex-shrink: 0;
}

.headline {
  font: 900 80px/0.98 "Tajawal";
  color: var(--teal-600);
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.headline .accent {
  color: #0c3249;
}

@media (max-width: 1199.98px) {
  .headline {
    font-size: 64px;
  }
}
@media (max-width: 991.98px) {
  .headline {
    font-size: 52px;
  }
}
@media (max-width: 767.98px) {
  .headline {
    font-size: 42px;
  }
}
@media (max-width: 575.98px) {
  .headline {
    font-size: 34px;
  }
}

.sub {
  font: 400 19px/1.6 "Tajawal";
  color: var(--slate-500);
  max-width: 560px;
  margin: 0 0 36px;
}
.sub strong {
  color: var(--teal-700);
  font-weight: 700;
}
@media (max-width: 767.98px) {
  .sub {
    font-size: 16px;
  }
}
@media (max-width: 575.98px) {
  .sub {
    font-size: 15px;
  }
}

/* CTA row */
.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange-500);
  color: #0c3249;
  border: 0;
  border-radius: 14px;
  padding: 16px 28px;
  font: 700 16px/1 "Tajawal";
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 14px 30px -8px rgba(124, 213, 255, 0.55),
    0 6px 14px -6px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms;
}
.cta:hover {
  color: #0c3249;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px -8px rgba(124, 213, 255, 0.6),
    0 8px 18px -6px rgba(0, 0, 0, 0.2);
}
.store-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Official Google Play black badge */
.store-btn-gplay {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 9px 16px 9px 14px;
  text-decoration: none;
  transition:
    background 160ms,
    transform 160ms;
  direction: ltr;
}
.store-btn-gplay:hover {
  background: #1a1a1a;
  text-decoration: none;
  transform: translateY(-1px);
}
.gplay-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.gplay-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: "Roboto", "Tajawal", sans-serif;
  line-height: 1;
}
.gplay-get {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0.9;
  text-transform: uppercase;
}
.gplay-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}

/* Trust row */
.trust-row {
  display: flex;
  gap: 32px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(12, 50, 73, 0.1);
  flex-wrap: wrap;
}
.trust {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust .num {
  font: 800 22px/1 "Tajawal";
  color: var(--teal-600);
}
.trust .lbl {
  font: 400 12px/1.3 "Tajawal";
  color: var(--slate-500);
}

/* ── Phone stage ──────────────────────────────── */
.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* desktop: give room for floating hint cards */
  padding: 20px 80px;
}
@media (max-width: 991.98px) {
  .stage {
    padding: 20px 20px 0;
  }
}

.phone-wrap {
  position: relative;
  transform: rotate(-4deg);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.phone-wrap:hover {
  transform: rotate(-2deg) translateY(-6px);
}
@media (max-width: 991.98px) {
  /* no tilt on mobile — saves horizontal space */
  .phone-wrap {
    transform: none;
  }
  .phone-wrap:hover {
    transform: none;
  }
}

.pedestal {
  position: absolute;
  bottom: -28px;
  inset-inline: 8%;
  height: 38px;
  background: radial-gradient(
    ellipse at center,
    rgba(12, 50, 73, 0.18),
    transparent 70%
  );
  filter: blur(4px);
  z-index: 0;
}

/* Floating tag */
.tag-float {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  background: var(--sky-300);
  color: var(--teal-600);
  font: 700 12px/1 "Tajawal";
  padding: 8px 14px;
  border-radius: 999px;
  transform: rotate(8deg);
  box-shadow: 0 10px 24px -8px rgba(124, 213, 255, 0.6);
  z-index: 3;
}

/* Floating hint cards */
.hint {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow:
    0 16px 48px -12px rgba(24, 39, 75, 0.2),
    0 8px 18px -10px rgba(24, 39, 75, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  direction: rtl;
  z-index: 3;
  min-width: 200px;
}
.hint .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hint .ti {
  font: 700 13px/1.2 "Tajawal";
  color: var(--teal-600);
}
.hint .sb {
  font: 400 11px/1.3 "Tajawal";
  color: var(--slate-500);
  margin-top: 2px;
}
.hint-nadeem {
  top: 12%;
  inset-inline-start: -10px;
  transform: rotate(2deg);
}
.hint-nadeem .ic {
  background: var(--orange-500);
  color: #fff;
  font: 900 16px/1 "Tajawal";
}
.hint-podcast {
  bottom: 16%;
  inset-inline-end: -10px;
  transform: rotate(-3deg);
}
.hint-podcast .ic {
  background: var(--mist-100);
  color: var(--teal-600);
}

/* ── Footer ───────────────────────────────────── */
.footnote {
  position: relative;
  z-index: 4;
  padding: 24px 0 40px;
  font: 400 12px/1.4 "Tajawal";
  color: var(--slate-300);
  border-top: 1px solid rgba(12, 50, 73, 0.07);
}
.ltr {
  direction: ltr;
  text-align: left;
}

/* ── Animations ───────────────────────────────── */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
.hero-copy .eyebrow {
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both 60ms;
}
.hero-copy .headline {
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both 140ms;
}
.hero-copy .sub {
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both 240ms;
}
.hero-copy .cta-row {
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both 320ms;
}
.hero-copy .trust-row {
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both 400ms;
}
.phone-wrap {
  animation: float-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both 200ms;
}
.hint,
.tag-float {
  animation: float-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hint-nadeem {
  animation-delay: 600ms;
}
.hint-podcast {
  animation-delay: 750ms;
}
.tag-float {
  animation-delay: 480ms;
}

/* ═══════════════════════════════════════════════
   PHONE DEVICE
═══════════════════════════════════════════════ */
.phone-device {
  width: 320px;
  height: 660px;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  background: #fbfbfb;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.12);
  font-family: "Tajawal", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Larger phone on desktop */
@media (min-width: 992px) {
  .phone-device {
    width: 360px;
    height: 740px;
  }
}

.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  border-radius: 20px;
  background: #000;
  z-index: 50;
}
.phone-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 22px 8px;
  box-sizing: border-box;
}
.phone-time {
  font-family: -apple-system, system-ui;
  font-weight: 590;
  font-size: 14px;
  line-height: 1;
  color: #000;
}
.phone-indicators {
  display: flex;
  align-items: center;
  gap: 5px;
}
.phone-home-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 8px;
  pointer-events: none;
}
.phone-home-pill {
  width: 110px;
  height: 5px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.25);
}

.phone-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  direction: rtl;
  padding-top: 50px;
  padding-bottom: 88px;
  box-sizing: border-box;
}
.phone-content::-webkit-scrollbar {
  display: none;
}

/* ── App header ── */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px 12px;
}
.app-greeting {
  display: flex;
  align-items: center;
  gap: 9px;
}
.app-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5eff1;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 13px/1 "Tajawal";
  color: #0c3249;
}
.app-greeting-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.app-greeting-hi {
  font: 400 10px/1 "Tajawal";
  color: #929292;
}
.app-greeting-name {
  font: 700 13px/1 "Tajawal";
  color: #0c3249;
}
.app-bell {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d6d9dd;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── App headline ── */
.app-headline {
  padding: 0 18px 12px;
}
.app-headline h2 {
  font: 800 18px/1.25 "Tajawal";
  color: #0c3249;
  margin: 0 0 3px;
}
.app-headline p {
  font: 400 12px/1.5 "Tajawal";
  color: #494949;
  margin: 0;
}

/* ── Chips ── */
.app-chips {
  display: flex;
  gap: 6px;
  padding: 0 18px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.app-chips::-webkit-scrollbar {
  display: none;
}
.chip {
  font: 400 11px/1 "Tajawal";
  border-radius: 8px;
  padding: 6px 10px;
  white-space: nowrap;
  background: #e5eff1;
  color: #0c3249;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition:
    background 140ms,
    color 140ms;
}
.chip.active {
  background: #0c3249;
  color: #fff;
  font-weight: 500;
}

/* ── Category grid ── */
.app-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 18px 14px;
}
.cat-tile {
  border-radius: 12px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cat-tile .cat-icon {
  font-size: 22px;
  line-height: 1;
}
.cat-tile .cat-label {
  font: 700 10px/1 "Tajawal";
}

/* ── Progress card ── */
.section-title {
  font: 700 13px/1 "Tajawal";
  color: #0c3249;
  margin: 0 0 8px;
}
.app-section {
  padding: 0 18px 12px;
}
.progress-card {
  background: #e5eff1;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.progress-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress-title {
  font: 700 14px/1 "Tajawal";
  color: #0c3249;
}
.progress-sub {
  font: 400 10px/1 "Tajawal";
  color: #1a5178;
}
.progress-bar {
  height: 4px;
  border-radius: 8px;
  background: rgba(12, 50, 73, 0.2);
  position: relative;
}
.progress-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  border-radius: 8px;
  background: #0c3249;
}
.progress-btns {
  display: flex;
  gap: 5px;
}
.pb {
  font: 500 10px/1 "Tajawal";
  border-radius: 7px;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
}
.pb-orange {
  background: #7cd5ff;
  color: #0c3249;
}
.pb-outline {
  background: #fff;
  color: #0c3249;
  border: 1px solid #0c3249 !important;
}

/* ── Recommended ── */
.reco-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.view-all {
  font: 400 10px/1 "Tajawal";
  color: #1a5178;
}
.cards-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cards-scroll::-webkit-scrollbar {
  display: none;
}
.content-card {
  min-width: 118px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid #d6d9dd;
  flex-shrink: 0;
}
.card-thumb {
  height: 66px;
  border-radius: 8px;
  margin-bottom: 6px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 4px;
  box-sizing: border-box;
}
.card-badge {
  font: 500 8px/1 "Tajawal";
  background: rgba(255, 255, 255, 0.9);
  padding: 3px 5px;
  border-radius: 5px;
  white-space: nowrap;
}
.card-title {
  font: 700 10px/1.3 "Tajawal";
  color: #0c3249;
  margin-bottom: 2px;
}
.card-meta {
  font: 400 9px/1 "Tajawal";
  color: #929292;
}

/* ── Nadeem pill ── */
.nadeem-pill {
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: 80px;
  background: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow:
    0 13px 61px -4px rgba(24, 39, 75, 0.18),
    0 8px 21px -6px rgba(24, 39, 75, 0.14);
  z-index: 10;
}
.nadeem-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #7cd5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 14px/1 "Tajawal";
  color: #0c3249;
  flex-shrink: 0;
}
.nadeem-label {
  flex: 1;
  font: 500 13px/1 "Tajawal";
  color: #0c3249;
}

/* ── Bottom nav ── */
.bottom-nav {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 72px;
  background: #fff;
  border-top: 1px solid rgba(12, 50, 73, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 14px;
  z-index: 20;
}
.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font: 400 9px/1 "Tajawal";
  color: #929292;
}
.nav-tab.active {
  color: #0c3249;
  font-weight: 700;
}
.nav-fab-space {
  width: 52px;
}

/* Nadeem FAB */
.nadeem-fab {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 30;
}
.fab-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #7cd5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 18px/1 "Tajawal";
  color: #0c3249;
  box-shadow:
    2px 7px 14px 0 rgba(124, 213, 255, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.12);
}
.fab-label {
  font: 700 8px/1 "Tajawal";
  color: #0c3249;
}
