/* ═══════════════════════════════════════════════════════════
   belya · Screen Showcase — premium app screen presenter
   ═══════════════════════════════════════════════════════════ */

/* Phone frame backgrounds adapt to dark/light mode */
.sphone-content,
.phone-screen,
.screen-phone { background: var(--bg); }

/* SVG font rendering */
.sphone-content svg text,
.screen-phone svg text,
.phone-screen svg text { font-feature-settings: normal; }

/* Force LTR inside all phone screen SVGs — they manage Arabic/EN
   internally via class="ar"/"en" text elements, so page direction
   must not reverse their coordinate system. */
.sphone-content svg,
.screen-phone svg,
.phone-screen svg {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ─── Section ─────────────────────────────────────────────── */
#screens { overflow: hidden; padding-bottom: 0; }

/* ─── Tab bar ─────────────────────────────────────────────── */
.stabs-bar {
  display: flex;
  justify-content: center;
  margin: 44px 0 64px;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stabs-bar::-webkit-scrollbar { display: none; }

.stabs {
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px;
  flex-shrink: 0;
}

.stab {
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.15s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
}
.stab:hover { color: var(--ink); transform: translateY(-1px); }
.stab.is-on { background: var(--accent); color: #fff; transform: none; }

/* ─── Three-column showcase grid ─────────────────────────── */
.showcase {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  gap: 48px 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 120px;
  align-items: center;
}

/* ─── Info column (left) ──────────────────────────────────── */
.showcase-info {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.sinfo {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sinfo.is-on {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}
html[data-lang="ar"] .sinfo               { transform: translateX(22px); }
html[data-lang="ar"] .sinfo.is-on         { transform: translateX(0); }

.sinfo-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
html[data-lang="ar"] .sinfo-tag {
  letter-spacing: 0;
  text-transform: none;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.sinfo-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.sinfo-title em { font-style: italic; color: var(--accent); }

.sinfo-body {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.65;
  margin: 0 0 24px;
}

.sinfo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sinfo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.sinfo-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
html[data-lang="ar"] .sinfo-list li              { flex-direction: row-reverse; }

/* ─── Phone column (center) ───────────────────────────────── */
.showcase-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sphone-glow {
  position: absolute;
  width: 360px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(232,163,99,0.22) 0%, transparent 68%);
  filter: blur(36px);
  pointer-events: none;
  animation: sglow 4.5s ease-in-out infinite;
}
@keyframes sglow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.07); }
}

.sphone-chrome {
  width: 280px;
  border-radius: 50px;
  background: #ffffff;
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 24px 64px rgba(0,0,0,0.16),
    0 4px 16px rgba(0,0,0,0.08);
}
/* dark sphone-chrome — commented out, light-only for now
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .sphone-chrome {
    box-shadow:
      0 0 0 1.5px rgba(255,255,255,0.1),
      0 0 0 9px   var(--surface),
      0 0 0 10.5px var(--line),
      0 40px 120px rgba(0,0,0,0.5),
      0 8px  30px  rgba(0,0,0,0.2);
  }
}
[data-theme="dark"] .sphone-chrome {
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.1),
    0 0 0 9px   var(--surface),
    0 0 0 10.5px var(--line),
    0 40px 120px rgba(0,0,0,0.5),
    0 8px  30px  rgba(0,0,0,0.2);
}
*/

.sphone-content {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  aspect-ratio: 1320 / 2868;
}

/* Screen panels — fade+slide transition */
.sscreen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.97) translateY(10px);
  transition:
    opacity  0.45s cubic-bezier(0.4,0,0.2,1),
    transform 0.45s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.sscreen.is-on {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.sscreen svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Chips column (right) ────────────────────────────────── */
.showcase-chips {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.schips {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  inset: 0;
  pointer-events: none;
  justify-content: center;
}
.schips.is-on {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}
html[data-lang="ar"] .schips         { transform: translateX(-18px); }
html[data-lang="ar"] .schips.is-on   { transform: translateX(0); }

.schip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.schip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.schip > div:not(.schip-dot) { flex: 1; }

.schip-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 3px;
}
.schip-val2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}
.schip-lbl {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}
.schip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.schip-dot-warn   { background: var(--warn); }
.schip-dot-danger { background: var(--bad); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .showcase {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
    padding-bottom: 80px;
  }
  .showcase-info {
    max-width: 520px;
    width: 100%;
    min-height: auto;
  }
  .sinfo {
    position: relative;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .sinfo.is-on { display: flex; }
  .showcase-phone { order: -1; }

  /* Show chips below the phone as a horizontal pair */
  .showcase-chips {
    width: 100%;
    max-width: 520px;
    min-height: auto;
  }
  .schips {
    flex-direction: row;
    gap: 10px;
    position: relative;
    inset: auto;
    transform: none !important;
    opacity: 0;
    pointer-events: none;
    display: none;
  }
  .schips.is-on {
    display: flex;
    opacity: 1;
    position: relative;
    pointer-events: auto;
  }
  .schip {
    flex: 1;
    padding: 12px 14px;
  }
  .schip-val  { font-size: 20px; }
  .schip-val2 { font-size: 13px; }
  .schip-lbl  { font-size: 11px; }
}

@media (max-width: 480px) {
  .stabs  { gap: 2px; }
  .stab   { padding: 7px 11px; font-size: 12px; }
  .sphone-chrome { width: 240px; }
  .stabs-bar { margin-bottom: 40px; }
}
