/* ============================================================
   shared.css – My Banten
   Sistem CSS Variable-based Theming
   Tema: Sky Blue (default) | Langit Senja (Oren Classic)
   ============================================================ */

/* ===== DEFAULT: Sky Blue ===== */
:root {
  --sky: #b3e5fc;
  --sky-mid: #81d4fa;
  --sky-dark: #4fc3f7;
  --sky-deep: #0288d1;
  --accent: #00bcd4;
  --accent2: #00e5ff;
  --glass: rgba(255,255,255,0.28);
  --glass-border: rgba(255,255,255,0.55);
  --text-dark: #01579b;
  --text-mid: #0277bd;
  --card-shadow: 0 8px 32px rgba(2,136,209,0.18);
  --white: #fff;
  --bg-grad: linear-gradient(160deg, #e0f7fa 0%, #b3e5fc 40%, #81d4fa 100%);
  --topbar-bg: rgba(179,229,252,0.75);
  --modal-bg: linear-gradient(170deg, #e0f7fa, #b3e5fc);
  --sun-color1: #ffe082;
  --sun-color2: #ffb300;
  --sun-glow: rgba(255,214,0,0.22);
}

/* ===== TEMA LANGIT SENJA (Oren Classic) ===== */
html.tema-senja {
  --sky: #ffcc80;
  --sky-mid: #ffb74d;
  --sky-dark: #ff9800;
  --sky-deep: #e65100;
  --accent: #ff6d00;
  --accent2: #ffab40;
  --glass: rgba(255,220,180,0.30);
  --glass-border: rgba(255,255,255,0.55);
  --text-dark: #7f2f00;
  --text-mid: #bf360c;
  --card-shadow: 0 8px 32px rgba(230,81,0,0.18);
  --white: #fff;
  --bg-grad: linear-gradient(160deg, #fff3e0 0%, #ffe0b2 35%, #ffcc80 65%, #ffb74d 100%);
  --topbar-bg: rgba(255,204,128,0.78);
  --modal-bg: linear-gradient(170deg, #fff3e0, #ffcc80);
  --sun-color1: #ff8f00;
  --sun-color2: #e65100;
  --sun-glow: rgba(255,100,0,0.28);
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== BODY ===== */
body {
  min-height: 100vh;
  background: var(--bg-grad);
  font-family: 'Nunito', sans-serif;
  overflow-x: hidden;
  position: relative;
  transition: background 0.5s ease;
}

/* ===== AWAN ===== */
.cloud {
  position: fixed;
  background: rgba(255,255,255,0.55);
  border-radius: 50px;
  filter: blur(2px);
  z-index: 0;
  animation: drift linear infinite;
  transition: background 0.5s;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.c1 { width:180px;height:50px;top:8%;left:-200px;animation-duration:30s; }
.c1::before { width:80px;height:80px;top:-40px;left:20px; }
.c1::after  { width:60px;height:60px;top:-30px;left:80px; }
.c2 { width:120px;height:35px;top:22%;left:-140px;animation-duration:45s;animation-delay:-15s; }
.c2::before { width:55px;height:55px;top:-28px;left:15px; }
.c2::after  { width:40px;height:40px;top:-20px;left:55px; }
@keyframes drift { from{left:-250px} to{left:110vw} }

html.tema-senja .cloud {
  background: rgba(255,180,100,0.42);
}

/* ===== MATAHARI ===== */
.sun {
  position: fixed;
  top: 5%;
  right: 8%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, var(--sun-color1) 60%, var(--sun-color2) 100%);
  border-radius: 50%;
  box-shadow: 0 0 40px 15px var(--sun-glow);
  z-index: 0;
  transition: background 0.5s, box-shadow 0.5s;
}

html.tema-senja .sun {
  top: auto;
  bottom: 18%;
  right: 8%;
  width: 80px;
  height: 80px;
  animation: sunGlow 3s ease-in-out infinite;
}
@keyframes sunGlow {
  0%,100% { box-shadow: 0 0 40px 15px rgba(255,100,0,0.28), 0 0 80px 30px rgba(255,150,0,0.12); }
  50%      { box-shadow: 0 0 65px 28px rgba(255,100,0,0.42), 0 0 120px 55px rgba(255,150,0,0.20); }
}

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid rgba(255,255,255,0.5);
  transition: background 0.5s;
}
.back-btn {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-dark);
  transition: background 0.2s, color 0.5s;
}
.back-btn:hover { background: rgba(255,255,255,0.6); }
.topbar-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text-dark);
  letter-spacing: 1px;
  transition: color 0.5s;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow);
  padding: 20px;
  margin-bottom: 16px;
  transition: background 0.5s, box-shadow 0.5s;
}
