/* KONON.ID Design System — Dark Glassmorphism, Mushaf Light Mode & Official Brand Logo */
:root {
  --bg-void: #060913;
  --bg-card: rgba(15, 23, 42, 0.80);
  --bg-subcard: rgba(15, 23, 42, 0.72);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.20);
  --cyan-neon: #22d3ee;
  --purple-neon: #a855f7;
  --emerald-neon: #34d399;
}

/* Mode Terang / Mushaf Nyaman Baca (khusus Ruang Ibadah saat user beralih dari Dark Mode) */
body.mushaf-light {
  --bg-void: #f5f2ea;
  --bg-card: rgba(255, 253, 248, 0.94);
  --bg-subcard: rgba(248, 244, 234, 0.92);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --border-subtle: rgba(15, 23, 42, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  line-height: 1.65;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

.font-arabic {
  font-family: 'Amiri', serif;
  line-height: 2.25;
}

/* Official KONON Logo Badge */
.konon-logo-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.18);
  flex-shrink: 0;
}

#cyber-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

body.mushaf-light #cyber-canvas,
body.mushaf-light .ambient-orb {
  opacity: 0.15;
}

.ambient-orb {
  position: fixed;
  border-radius: 9999px;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.orb-cyan {
  width: 340px;
  height: 340px;
  top: -80px;
  left: -80px;
  background: rgba(34, 211, 238, 0.14);
}

.orb-purple {
  width: 380px;
  height: 380px;
  bottom: 10%;
  right: -100px;
  background: rgba(168, 85, 247, 0.14);
}

.glass-panel {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.glass-panel:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 18px 40px -15px rgba(34, 211, 238, 0.18);
}

/* Override teks utility saat Mode Terang Mushaf aktif di Ruang Ibadah */
body.mushaf-light header {
  background: rgba(255, 253, 248, 0.92) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

body.mushaf-light footer {
  background: rgba(244, 239, 228, 0.96) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

body.mushaf-light .text-white {
  color: #0f172a !important;
}

body.mushaf-light .text-slate-200,
body.mushaf-light .text-slate-300 {
  color: #1e293b !important;
}

body.mushaf-light .text-slate-400 {
  color: #475569 !important;
}

body.mushaf-light .text-cyan-300,
body.mushaf-light .text-cyan-200\/90 {
  color: #0e7490 !important;
}

body.mushaf-light .text-emerald-300 {
  color: #047857 !important;
}

body.mushaf-light .bg-slate-900,
body.mushaf-light .bg-slate-900\/70,
body.mushaf-light .bg-slate-900\/75,
body.mushaf-light .bg-slate-900\/80,
body.mushaf-light .bg-slate-950\/70 {
  background-color: rgba(241, 235, 222, 0.85) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}

body.mushaf-light select,
body.mushaf-light input {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
}

/* Ayat aktif sedang diputar audionya */
.ayat-card-playing {
  border-color: #22d3ee !important;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35);
}

/* Tab Muslim Pro aktif */
.ibadah-tab-btn.active {
  background: linear-gradient(135deg, #22d3ee, #34d399);
  color: #060913 !important;
  font-weight: 700;
  border-color: transparent;
}

/* Tombol Tasbih Tactile */
.tasbih-tap-btn {
  transition: transform 0.08s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tasbih-tap-btn:active {
  transform: scale(0.95);
}

.tilt-3d {
  transform-style: preserve-3d;
  will-change: transform;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

input, select, textarea {
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  #cyber-canvas, .ambient-orb { display: none; }
}
