/* =========================================================
   MOUNTAIN GALLERY - GLOBAL & CORE STYLES
   Clean, Professional Design with SVG Icons & Sunset Gradients
   ========================================================= */

:root {
  --ig-purple: #833AB4;
  --ig-pink: #C13584;
  --ig-rose: #E1306C;
  --ig-orange: #F56040;
  --ig-yellow: #FCAF45;
  
  --gradient-main: linear-gradient(135deg, #833AB4 0%, #C13584 32%, #E1306C 58%, #F56040 82%, #FCAF45 100%);
  --gradient-hover: linear-gradient(135deg, #833AB4 0%, #E1306C 40%, #F56040 80%, #FCAF45 100%);
  --gradient-soft: linear-gradient(135deg, rgba(131, 58, 180, 0.08) 0%, rgba(225, 48, 108, 0.08) 50%, rgba(245, 96, 64, 0.08) 100%);
  
  --purple-dark: #4c1d95;
  --purple-soft: #f8f3ff;
  --text-main: #262626;
  --text-muted: #737373;
  --text-light: #8a5a96;
  --border-soft: rgba(225, 48, 108, 0.16);
  --border-glass: rgba(255, 255, 255, 0.45);
  
  --bg-page: #fcfbfe;
  --card-bg: #ffffff;
  --shadow-sm: 0 4px 14px rgba(131, 58, 180, 0.08);
  --shadow-md: 0 12px 32px rgba(193, 53, 132, 0.16);
  --shadow-lg: 0 20px 50px rgba(131, 58, 180, 0.22);
  --shadow-glow: 0 0 24px rgba(225, 48, 108, 0.35);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 5% 5%, rgba(252, 175, 69, 0.12), transparent 35%),
    radial-gradient(circle at 95% 5%, rgba(225, 48, 108, 0.10), transparent 32%),
    radial-gradient(circle at 50% 95%, rgba(131, 58, 180, 0.08), transparent 35%);
  z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #faf6fd;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ig-purple), var(--ig-rose));
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ig-orange);
}

.page-container {
  min-height: 100vh;
  padding: 20px 24px 32px 24px;
  display: flex;
  flex-direction: column;
  max-width: 1380px;
  margin: 0 auto;
}

/* SVG Icon Helper */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.svg-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   TOPBAR / NAVBAR
   ========================================================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  background: var(--gradient-main);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  color: #ffffff;
  position: relative;
  z-index: 100;
  transition: var(--transition-smooth);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  padding: 8px;
  transition: transform var(--transition-fast);
}

.brand-wrapper:hover .brand-logo {
  transform: scale(1.05) rotate(-2deg);
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-info h1 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #ffffff;
}

.brand-info p {
  margin-top: 3px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple-dark);
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(76, 29, 149, 0.18);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.nav-btn .svg-icon {
  width: 17px;
  height: 17px;
}

.nav-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.28);
  color: var(--ig-rose);
}

.menu-trigger-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.menu-trigger-btn .svg-icon {
  width: 24px;
  height: 24px;
}

.menu-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}

/* =========================================================
   DROPDOWN & NAVIGATION MENU
   ========================================================= */
.site-dropdown {
  position: fixed;
  top: 105px;
  right: 32px;
  width: 320px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  z-index: 9999;
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.site-dropdown.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(225, 48, 108, 0.12);
  color: var(--purple-dark);
}

.dropdown-header strong {
  font-size: 15px;
  font-weight: 900;
}

.dropdown-header small {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 700;
}

.dropdown-close-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--ig-purple);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.dropdown-close-btn .svg-icon {
  width: 16px;
  height: 16px;
}

.dropdown-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(225, 48, 108, 0.10);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--purple-dark);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--purple-soft);
  border-color: var(--ig-rose);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.menu-icon-box {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gradient-main);
  color: #ffffff;
  flex-shrink: 0;
}

.menu-icon-box .svg-icon {
  width: 20px;
  height: 20px;
}

.dropdown-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
}

.dropdown-item small {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
}

.dropdown-mountain-list {
  display: none;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  margin: -4px 0 10px 0;
  border-radius: var(--radius-md);
  background: #fffafd;
  border: 1px solid rgba(225, 48, 108, 0.15);
}

.dropdown-mountain-list.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.dropdown-mountain-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: none;
  border-radius: var(--radius-sm);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  color: var(--purple-dark);
  transition: var(--transition-fast);
  text-decoration: none;
}

.dropdown-mountain-item:last-child {
  margin-bottom: 0;
}

.dropdown-mountain-item:hover {
  background: var(--gradient-main);
  color: #ffffff;
  transform: scale(1.02);
}

.dropdown-mountain-item strong {
  font-size: 12.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-mountain-item strong .svg-icon {
  width: 15px;
  height: 15px;
}

.dropdown-mountain-item span {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 700;
}

/* =========================================================
   MODAL DIALOG (ABOUT)
   ========================================================= */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 13, 38, 0.55);
  backdrop-filter: blur(10px);
}

.app-modal.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.app-modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(76, 29, 149, 0.4);
  border: 1px solid var(--border-soft);
  text-align: center;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--ig-purple);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn .svg-icon {
  width: 18px;
  height: 18px;
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

.modal-hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: var(--gradient-main);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.modal-hero-icon .svg-icon {
  width: 40px;
  height: 40px;
}

.app-modal-card h2 {
  margin-bottom: 14px;
  color: var(--purple-dark);
  font-size: 26px;
  font-weight: 900;
}

.app-modal-card p {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.modal-action-btn {
  margin-top: 10px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--gradient-main);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.modal-action-btn:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: auto;
  padding: 24px 0 6px 0;
  color: var(--text-muted);
  font-size: 13.5px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--ig-rose);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* =========================================================
   ANIMATIONS & MEDIA QUERIES
   ========================================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .page-container {
    padding: 12px 14px 20px 14px;
  }
  
  .topbar {
    padding: 12px 16px;
    border-radius: var(--radius-md);
  }
  
  .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  
  .brand-info h1 {
    font-size: 18px;
  }
  
  .brand-info p {
    font-size: 11px;
  }
  
  /* Sembunyikan tombol 'Kembali ke Peta' di HP agar hamburger tidak kepinggir */
  .topbar .nav-btn {
    display: none !important;
  }
  
  .topbar-actions {
    margin-left: auto;
    gap: 0;
  }

  .menu-trigger-btn {
    width: 44px;
    height: 44px;
  }
  
  .site-dropdown {
    top: 86px;
    right: 14px;
    left: 14px;
    width: auto;
  }
  
  .site-footer {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }
}