@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* Tema "langit": biru langit dominan, navy untuk teks, amber sebagai sentuhan hangat. */
    --background: 204 100% 97%;          /* sky-50 */
    --foreground: 206 72% 18%;           /* navy #0d324f */
    --card: 0 0% 100%;
    --card-foreground: 206 72% 18%;
    --popover: 0 0% 100%;
    --popover-foreground: 206 72% 18%;
    --primary: 200 92% 36%;              /* biru langit #0778b0 (kontras 4,86:1 dgn putih) */
    --primary-foreground: 0 0% 100%;
    --secondary: 199 95% 92%;            /* sky-100 */
    --secondary-foreground: 201 90% 25%;
    --muted: 202 80% 95%;
    --muted-foreground: 203 30% 38%;
    --accent: 199 95% 92%;
    --accent-foreground: 201 90% 25%;
    --destructive: 0 72% 48%;
    --destructive-foreground: 0 0% 100%;
    --border: 200 70% 88%;
    --input: 200 55% 80%;
    --ring: 199 89% 48%;
    --highlight: 38 92% 50%;             /* amber: sentuhan hangat ("matahari") */
    --radius: 0.625rem;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply text-foreground antialiased;
    background-color: hsl(var(--background));
    /* Gradasi langit yang lembut di bagian atas halaman. */
    background-image:
      radial-gradient(1200px 400px at 85% -120px, hsl(199 95% 86% / 0.55), transparent 70%),
      linear-gradient(180deg, hsl(199 100% 94%) 0%, hsl(var(--background)) 280px);
    background-attachment: fixed;
  }
}

/* Ruang aman untuk bottom navigation di HP (termasuk notch iOS). */
.pb-safe {
  padding-bottom: calc(env(safe-area-inset-bottom) + 4.5rem);
}
@media (min-width: 1024px) {
  .pb-safe {
    padding-bottom: 1.5rem;
  }
}
