/* ============================================================
   glass.css — עיצוב משותף: "לילה במדבר" + נגיעות Liquid Glass
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #1b1e2e;          /* רקע האזור התחתון */
  --bg-2: #22263a;
  --ink: #f4f1ea;
  --ink-2: rgba(244, 241, 234, .58);
  --accent: #f0a05a;      /* כתום חם – למספר היום */

  /* חומר הזכוכית – צף מעל הסצנה */
  --glass-fill: rgba(255, 255, 255, .10);
  --glass-fill-strong: rgba(255, 255, 255, .16);
  --glass-rim: rgba(255, 255, 255, .32);
  --glass-blur: 18px;

  --radius-l: 26px;
  --radius-m: 18px;
  --font: "Rubik", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* ---------- Liquid Glass ---------- */
.glass {
  position: relative;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-radius: var(--radius-l);
  box-shadow:
    inset 0 1px 0 var(--glass-rim),
    inset 0 -1px 0 rgba(0,0,0,.25),
    0 8px 24px -10px rgba(0,0,0,.6);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%);
}
.glass-control { border-radius: 999px; --glass-blur: 14px; }

.pressable {
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3);
  will-change: transform;
}
.pressable:active { transform: scale(.92); transition-duration: .12s; }
.pressable:focus-visible { outline: 3px solid rgba(255,255,255,.6); outline-offset: 3px; }

@media (prefers-reduced-transparency: reduce) {
  :root { --glass-fill: rgba(40,44,64,.94); --glass-blur: 0px; }
}
@media (prefers-reduced-motion: reduce) {
  .pressable { transition: none; }
  * { animation: none !important; }
}

/* ---------- אייקוני אפליקציות (סגנון פסטל שטוח) ---------- */
.app-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  font-size: 30px; line-height: 1;
  border-radius: 17px;
  background: var(--tint, #b7c4e6);
  color: #2a2d40;
  /* נגיעת זכוכית: קצה עליון בהיר ורצפה כהה */
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.55),
    inset 0 -2px 0 rgba(0,0,0,.10),
    0 6px 14px -6px rgba(0,0,0,.55);
}
.app-icon img { width: 36px; height: 36px; object-fit: contain; }

/* ---------- רכיבים לדפי אפליקציה ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px 9px 12px;
  color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 15px;
}
.back-btn svg { width: 18px; height: 18px; }
.container {
  max-width: 560px; margin: 0 auto;
  padding: 16px 18px max(28px, env(safe-area-inset-bottom));
}
