/* ==========================================================================
   Aurora Background
   Latar bergaya halaman utama DeepSeek ("Into the Unknown"): aliran biru–putih
   yang bergerak perlahan (shader WebGL) + grid kotak halus.

   Dipakai oleh: templates/aurora_bg.php
   Variabel yang bisa diubah dari luar:
      --aurora-tint-rgb : warna dasar (dipakai grid + gradasi). Default 138, 163, 214
      --aurora-grid     : ukuran kotak grid (default 88px)
   ========================================================================== */

.aurora-bg {
   /* Satu warna dasar untuk grid (abu-abu muda, senada dengan air) */
   --aurora-tint-rgb: 152, 163, 179;

   --aurora-grid: 88px;

   position: fixed;
   inset: 0;
   z-index: -1;
   overflow: hidden;
   pointer-events: none;
   /* Fallback bila WebGL tidak tersedia */
   background-color: #f7f8fa;
   background-image: linear-gradient(180deg,
         rgba(var(--aurora-tint-rgb), .34) 0%,
         rgba(var(--aurora-tint-rgb), .18) 26%,
         rgba(var(--aurora-tint-rgb), .06) 60%,
         rgba(var(--aurora-tint-rgb), .14) 100%);
}

/* Lapisan aliran (dirender oleh canvas / WebGL) */
.aurora-bg__canvas {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   display: block;
}

/* Grid halus di seluruh latar — memakai warna dasar yang sama dengan air */
.aurora-bg__grid {
   position: absolute;
   inset: 0;
   background-image:
      linear-gradient(to right, rgba(var(--aurora-tint-rgb), .14) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(var(--aurora-tint-rgb), .14) 1px, transparent 1px);
   background-size: var(--aurora-grid) var(--aurora-grid);
   background-position: center top;
   -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, .55) 78%, rgba(0, 0, 0, .42) 100%);
   mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, .55) 78%, rgba(0, 0, 0, .42) 100%);
}

/* Cahaya putih di tengah agar teks/kartu tetap mudah dibaca */
.aurora-bg__glow {
   position: absolute;
   inset: 0;
   background: radial-gradient(62% 48% at 50% 40%,
         rgba(255, 255, 255, .22) 0%,
         rgba(255, 255, 255, .08) 48%,
         rgba(255, 255, 255, 0) 72%);
}

/* --------------------------------------------------------------------------
   Penyesuaian halaman yang memakai templates/starting_page_layout.php
   (body diberi class "aurora-page")
   -------------------------------------------------------------------------- */
body.aurora-page,
body.aurora-page .main-panel,
body.aurora-page .content,
body.aurora-page .wrapper {
   background-color: transparent !important;
   background-image: none !important;
}

body.aurora-page {
   background-color: #f7f8fa !important;
}

/* Di layar kecil grid diperkecil supaya proporsinya tetap enak dilihat */
@media (max-width: 767.98px) {
   .aurora-bg {
      --aurora-grid: 64px;
   }
}
