/* ==========================================================================
   UKM PAGUYUBAN TEATER "Q" UIN SUNAN AMPEL SURABAYA
   Black Metallic & Smoked Glass Luxury Stylesheet (css/style.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --biru: #0c0f18;
  --biru-muda: #38bdf8;
  --putih: #ffffff;
  --merah: #dc2626;
  --hitam: #020204;
  --emas: #f59e0b;
  --emas-muda: #fbbf24;
  --abu: #e5e7eb;
  --abu-soft: #94a3b8;
  --bg-card: rgba(11, 13, 20, 0.85);
  --bg-input: #06070a;
  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.95);
  --radius-xl: 20px;
  --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography Colors */
  --text-main: #ffffff;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: #020204 !important;
  color-scheme: dark;
}

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent !important;
}

button:focus, button:focus-visible {
  outline: none !important;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body);
  background-color: #020204;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 74px; /* Ruang nyaman untuk mobile bottom nav */
}

/* Background Overlay Black Metallic Panggung Megah */
.overlay {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -10%, #151822 0%, #07080c 45%, #010103 100%);
  color: var(--text-body);
}

/* Penyelarasan Global Heading & Teks */
.overlay h1, 
.overlay h2, 
.overlay h3, 
.overlay h4,
.overlay h5,
.overlay .text-slate-900,
.overlay .text-slate-800 { 
  color: var(--text-main) !important; 
}

.overlay p, 
.overlay li, 
.overlay .text-slate-700,
.overlay .text-slate-600 { 
  color: var(--text-body) !important; 
}

.overlay .text-slate-500,
.overlay .text-slate-400 {
  color: var(--text-muted) !important;
}

.overlay .border-slate-200,
.overlay .border-slate-100,
.overlay .border-slate-300 {
  border-color: var(--border-subtle) !important;
}

/* Background Utility Replacement for Pure Dark Theme */
.overlay .bg-blue-50,
.overlay .bg-blue-50\/50,
.overlay .bg-blue-50\/70 {
  background-color: rgba(30, 58, 138, 0.25) !important;
  color: #93c5fd !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

.overlay .bg-amber-50 {
  background-color: rgba(180, 83, 9, 0.2) !important;
  color: #fde68a !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

.overlay .bg-slate-50 {
  background-color: rgba(14, 16, 24, 0.8) !important;
  border-color: var(--border-subtle) !important;
}

.overlay .bg-white {
  background-color: rgba(14, 16, 24, 0.94) !important;
  border-color: var(--border-subtle) !important;
  color: #e5e7eb !important;
}

/* Black Metallic Smoked Glass Utility Overrides */
.overlay .bg-slate-900,
.overlay .bg-slate-900\/90,
.overlay .bg-slate-900\/85,
.overlay .bg-slate-900\/80,
.overlay .bg-slate-900\/70,
.overlay .bg-slate-900\/60,
.overlay .bg-slate-900\/50,
.overlay .bg-slate-950,
.overlay .bg-slate-950\/90,
.overlay .bg-slate-950\/80,
.overlay .bg-slate-950\/70 {
  background-color: rgba(10, 12, 18, 0.84) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.overlay .border-slate-800,
.overlay .border-slate-800\/90,
.overlay .border-slate-800\/80,
.overlay .border-slate-800\/70,
.overlay .border-slate-700,
.overlay .border-slate-700\/80 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.overlay .text-blue-700,
.overlay .text-blue-800,
.overlay .text-blue-900 {
  color: #60a5fa !important;
}

@media (min-width: 901px) {
  body {
    padding-bottom: 0;
  }
}

/* Scrollbar Minimalis Rapi */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

/* Header Atas: Black Metallic Smoked Glass (Gaya Panggung Teater Mewah) */
.header-corporate {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  background: linear-gradient(180deg, rgba(8, 9, 14, 0.96) 0%, rgba(2, 3, 5, 0.90) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.95), inset 0 -1px 0 0 rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* Navigasi Desktop Header */
.nav-desktop-item {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

/* Logo Lingkaran Identik Portal (Latar Putih Bersih, Tegas & Jelas) */
.logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 640px) {
  .logo-circle {
    width: 44px;
    height: 44px;
    padding: 3px;
  }
}
.logo-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
}
.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   BOTTOM NAVBAR (MOBILE ONLY - BLACK METALLIC SMOKED GLASS FLOATING BAR)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.94) 0%, rgba(1, 1, 3, 0.98) 100%) !important;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: flex !important;
  justify-content: center;
  box-shadow: 0 -12px 36px -4px rgba(0, 0, 0, 0.98), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}

.bottom-nav-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 0.45rem 0.5rem 0.6rem;
  width: 100%;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  flex: 1;
  font-size: 0.85rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.45rem 0.4rem;
  border-radius: 999px;
  transition: var(--transition-base);
  text-align: center;
  background: transparent;
  border: none;
}

.bottom-nav-item span.icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 18, 26, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item.active span.icon {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.1) 100%);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
  transform: scale(1.1);
}

@media (min-width: 901px) {
  .bottom-nav {
    display: none !important;
  }
}

/* Footer Black Metallic Panggung */
.footer-corporate {
  background: linear-gradient(180deg, #06070a 0%, #000000 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8;
}

/* Kartu Konten: Kaca Hitam Mengilap (Black Metallic Smoked Glass) */
.card-clean {
  background: linear-gradient(145deg, rgba(13, 15, 23, 0.85) 0%, rgba(5, 6, 10, 0.90) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.95), inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: #e5e7eb;
}
.card-clean:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 24px 50px -8px rgba(0, 0, 0, 0.98), inset 0 1px 0 0 rgba(255, 255, 255, 0.24), 0 0 24px rgba(245, 158, 11, 0.15) !important;
  transform: translateY(-3px);
}

/* Tombol Aksi Gradien Biru Muda ke Biru Identik Portal */
.btn-primary-blue {
  background: linear-gradient(135deg, var(--biru-muda), var(--biru));
  color: var(--putih);
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  border: none;
}
.btn-primary-blue:hover {
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}
.btn-primary-blue:active {
  transform: scale(0.98);
}

.btn-header-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #020617;
  font-weight: 800;
  border-radius: 999px;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.btn-header-cta:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.6);
}

.btn-outline-blue {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-outline-blue:hover {
  background: rgba(30, 64, 175, 0.5);
  border-color: var(--biru-muda);
  color: #ffffff;
}

/* Modal Overlay Gelap Teatrikal */
.modal-overlay {
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Modal Card Styles (Penyelarasan Dark Slate pada Semua Modal) */
#checkoutModal > div,
#cartModal > div,
#ticketPaymentModal > div,
#oprecSuccessModal > div,
#installModal > div,
#customConfirmModal > div,
#mapPickerModal > div {
  background-color: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  color: #f8fafc !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95) !important;
}

/* Form Input Dark Elegan Identik Portal */
.input-clean,
input[type="text"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
  background-color: var(--bg-input) !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  border-radius: 12px !important;
  transition: all 0.2s ease;
}
.input-clean:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

/* Tab Panel Transition */
.tab-panel {
  min-height: 70vh;
}
.tab-panel.hidden {
  display: none !important;
}

.animate-fade-in {
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Leaflet Pin */
.custom-leaflet-marker {
  background: transparent !important;
  border: none !important;
}

#leafletMap {
  width: 100%;
  height: 100%;
}

.animate-scale-up {
  animation: scaleUp 0.25s ease-out;
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* ==========================================================================
   QUICK MENU GRID (12 IKON AKSES CEPAT IDENTIK PORTAL)
   ========================================================================== */
.quick-menu-container {
  background: linear-gradient(145deg, rgba(14, 16, 25, 0.88) 0%, rgba(4, 5, 8, 0.94) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 22px 55px -10px rgba(0, 0, 0, 0.98), inset 0 1px 0 0 rgba(255, 255, 255, 0.16) !important;
}

.quick-menu-item {
  cursor: pointer;
  user-select: none;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  touch-action: manipulation;
}

.quick-menu-item:focus,
.quick-menu-item:focus-visible,
.quick-menu-item:active,
.quick-menu-item:visited {
  outline: none !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.quick-menu-item *,
.quick-menu-item *:focus,
.quick-menu-item *:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.quick-menu-item .icon-box {
  box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.35);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quick-menu-item:hover .icon-box {
  transform: translateY(-3px) scale(1.05);
}

.quick-menu-item:active .icon-box {
  transform: scale(0.92);
}

.quick-menu-item.is-disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

.quick-menu-item.is-disabled .icon-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #64748b !important;
  box-shadow: none !important;
  transform: none !important;
}

.quick-menu-item.is-disabled:hover .icon-box {
  transform: none !important;
}

/* ==========================================================================
   VIDEO GALLERY TOOLBAR & PILL BUTTONS (YOUTUBE CINEMA STYLE)
   ========================================================================== */
.video-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  border-radius: 0.75rem;
  padding: 0.375rem 0.875rem;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background-color: rgb(30 41 59);
  color: rgb(203 213 225) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-pill-btn:hover {
  background-color: rgb(51 65 85) !important;
  color: #ffffff !important;
  border-color: rgb(71 85 105);
}

.video-pill-btn.active {
  background-color: #dc2626 !important; /* red-600 */
  color: #ffffff !important;
  border-color: #ef4444 !important; /* red-500 */
  box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.35) !important;
  font-weight: 700 !important;
}

.video-pill-btn.active span,
.video-pill-btn.active i {
  color: #ffffff !important;
}

.video-pill-btn #videoTotalBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background-color: rgba(15, 23, 42, 0.8) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-left: 0.25rem;
}

.video-pill-btn.active #videoTotalBadge {
  background-color: rgba(0, 0, 0, 0.45) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* --------------------------------------------------------------------------
   SMART ARTICLE READER PARAGRAPH SPACING & TYPOGRAPHY
   -------------------------------------------------------------------------- */
#articleReaderContent {
  display: block;
}

#articleReaderContent p {
  margin-bottom: 1.35rem !important;
  line-height: 1.85 !important;
  color: #e2e8f0 !important;
  display: block !important;
  font-size: 0.95rem !important;
}

#articleReaderContent p:last-child {
  margin-bottom: 0 !important;
}