/* Jelajah Sejarah Banten - V2 Design System */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

/* CSS Variables for Light / Dark Mode System */
:root {
  --color-primary: 11 60 42; /* #0b3c2a - Hijau Tua */
  --color-on-primary: 255 255 255; /* #ffffff - Putih */
  --color-primary-container: 11 60 42; /* #0b3c2a - Hijau Tua */
  --color-on-primary-container: 212 175 55; /* #d4af37 - Emas */
  --color-background: 255 255 255; /* #ffffff - Putih */
  --color-on-background: 11 60 42; /* #0b3c2a - Hijau Tua */
  --color-surface: 255 255 255; /* #ffffff - Putih */
  --color-surface-variant: 240 247 244; /* #f0f7f4 - Soft Green-White */
  --color-on-surface: 11 60 42; /* #0b3c2a - Hijau Tua */
  --color-on-surface-variant: 42 78 64; /* #2a4e40 - Hijau Tua Abu-abu */
  --color-outline: 180 195 188; /* #b4c3bc - Sage Outline */
  --color-outline-variant: 232 242 237; /* #e8f2ed - Light Sage */
  --color-secondary: 212 175 55; /* #d4af37 - Emas */
  --color-on-secondary: 255 255 255; /* #ffffff - Putih */
  --primary: var(--color-primary);
  --primary-container: var(--color-primary-container);
  --surface: rgb(var(--color-surface));
  --outline-variant: rgb(var(--color-outline-variant));
}

/* Malam Mode */
html.dark {
  --color-primary: 212 175 55; /* #d4af37 - Emas */
  --color-on-primary: 11 60 42; /* #0b3c2a - Hijau Tua */
  --color-primary-container: 11 60 42; /* #0b3c2a - Hijau Tua */
  --color-on-primary-container: 255 255 255; /* #ffffff */
  --color-background: 4 28 19; /* #041c13 - Hijau Tua Sangat Gelap */
  --color-on-background: 255 255 255; /* #ffffff */
  --color-surface: 11 60 42; /* #0b3c2a - Hijau Tua */
  --color-surface-variant: 42 78 64; /* #2a4e40 */
  --color-on-surface: 255 255 255; /* #ffffff */
  --color-on-surface-variant: 180 195 188; /* #b4c3bc */
  --color-outline: 116 119 125; /* #74777d */
  --color-outline-variant: 42 78 64; /* #2a4e40 */
  --color-secondary: 212 175 55; /* #d4af37 - Emas */
  --color-on-secondary: 11 60 42; /* #0b3c2a - Hijau Tua */
}

/* Base Styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        linear-gradient(180deg, rgba(var(--color-primary-container), 0.08), transparent 360px),
        radial-gradient(circle at 20px 20px, rgba(var(--color-primary-container), 0.08) 1px, transparent 1.5px),
        rgb(var(--color-background));
    background-size: auto, 32px 32px, auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.26;
    background-image:
        linear-gradient(90deg, rgba(var(--color-primary), 0.05) 1px, transparent 1px),
        linear-gradient(rgba(var(--color-primary), 0.04) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Gradients */
.hero-gradient {
    background: linear-gradient(to bottom, rgba(0, 5, 14, 0.45) 0%, rgba(28, 28, 24, 0.9) 100%);
}

.cta-gold {
    background: linear-gradient(45deg, #0b1f33 0%, #40617f 100%);
    box-shadow: 0 4px 15px rgba(11, 31, 51, 0.2);
    color: #ffffff; /* Contrast color */
}

.cta-gold:hover {
    background: linear-gradient(45deg, #40617f 0%, #0b1f33 100%);
}

.glass-effect {
    background: rgba(252, 249, 243, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(116, 119, 125, 0.2);
}

/* Reusable visual polish */
.heritage-panel {
    position: relative;
    isolation: isolate;
    box-shadow: 0 18px 50px rgba(11, 31, 51, 0.08);
}

.heritage-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(var(--color-primary-container), 0.1), transparent 34%),
        linear-gradient(315deg, rgba(var(--color-primary), 0.05), transparent 42%);
    opacity: 0.9;
}

.heritage-panel::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background-image:
        repeating-linear-gradient(45deg, rgba(var(--color-primary-container), 0.04) 0 1px, transparent 1px 14px);
    opacity: 0.45;
    pointer-events: none;
}

.lift-card {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.lift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(11, 31, 51, 0.1);
}

.image-sheen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 45%, transparent 60%);
    transform: translateX(-130%);
    transition: transform 700ms ease;
    pointer-events: none;
}

.group:hover .image-sheen::after {
    transform: translateX(130%);
}

.soft-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-primary-container), 0.65), transparent);
}

.focus-ring:focus-visible {
    outline: 3px solid rgba(var(--color-primary-container), 0.55);
    outline-offset: 3px;
}

.home-menu-card {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(var(--color-outline-variant), 0.95);
    border-radius: 8px;
    background: rgba(var(--color-surface-variant), 0.65);
    color: rgb(var(--color-primary));
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.home-menu-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.85);
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 18px 38px rgba(11, 31, 51, 0.08);
}

.home-menu-card .material-symbols-outlined {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgb(var(--color-primary-container));
    color: #d4af37;
    font-size: 24px;
}

.home-menu-card strong {
    font-size: 14px;
    line-height: 1.35;
}

.warm-filter {
    filter: sepia(0.2) contrast(1.1) brightness(0.9);
    transition: filter 0.3s ease;
}

.warm-filter:hover {
    filter: sepia(0) contrast(1.1) brightness(1);
    transform: scale(1.05);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 90px),
        repeating-linear-gradient(0deg, rgba(212,175,55,0.035) 0 1px, transparent 1px 90px);
    mix-blend-mode: overlay;
    opacity: 0.65;
}

.map-dot {
    filter: drop-shadow(0 8px 12px rgba(11, 31, 51, 0.2));
}

.map-dot::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 8px;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(28, 28, 24, 0.15);
}

.history-map-pin {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 0;
    color: #ffffff;
    background: #6b0f1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -100%);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
    cursor: pointer;
}

.history-map-pin::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 22px;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    filter: blur(1px);
    transform: translate(-50%, 6px);
}

.history-map-pin:hover,
.history-map-pin:focus-visible {
    transform: translate(-50%, -100%) scale(1.18);
    outline: 4px solid rgba(212, 175, 55, 0.35);
}

.history-map-pin.is-active {
    color: rgb(var(--color-primary));
    background: #d4af37;
    transform: translate(-50%, -100%) scale(1.25);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.prose article,
article.prose {
    text-wrap: pretty;
}

@media (max-width: 640px) {
    body {
        background-size: auto, 24px 24px, auto;
    }

    .hero-section {
        border-radius: 1.25rem;
        min-height: 560px;
    }
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

/* Skeleton Loader */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: rgb(var(--color-surface-variant));
    background-image: linear-gradient(to right, rgb(var(--color-surface-variant)) 0%, rgba(var(--color-surface-variant), 0.5) 20%, rgb(var(--color-surface-variant)) 40%, rgb(var(--color-surface-variant)) 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%; 
    animation: shimmer 2s linear infinite forwards;
    border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgb(var(--color-background));
}
::-webkit-scrollbar-thumb {
    background: rgb(var(--color-primary-container));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--color-primary));
}
