/* ==========================================================================
   PESONA NUSANTARA ENTERTAINMENT — dashboard.css
   Global stylesheet — dipakai di semua halaman
   --------------------------------------------------------------------------
   DAFTAR ISI:
     1.  Root Variables
     2.  Reset & Base
     3.  Typography Helpers
     4.  Utility Classes
     5.  Animations (shared keyframes)
     6.  Header / Navbar
     7.  Hamburger Button
     8.  Mobile Menu (drawer)
     9.  WhatsApp Floating Button
    10.  Footer
    11.  Scroll Reveal
    12.  Legacy Classes (kompatibilitas halaman lama)
    13.  Custom Scrollbar
    14.  Selection & Focus
    15.  Responsive
   ========================================================================== */


/* ==========================================================================
   1. ROOT VARIABLES
   ========================================================================== */
:root {
    /* Brand */
    --brand-amber:      #f59e0b;
    --brand-amber-dark: #d97706;
    --brand-red:        #dc2626;
    --brand-red-dark:   #b91c1c;
    --brand-dark:       #0f172a;
    --brand-dark-2:     #1e1b4b;

    /* Neutrals */
    --ink:      #1c1917;
    --ink-soft: #475569;
    --muted:    #78716c;
    --line:     #e7e0d5;
    --line-alt: #eef2f7;
    --bg:       #f8fafc;
    --bg-warm:  #faf7f2;

    /* Shadows */
    --shadow-sm: 0 4px 20px -8px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
    --shadow-lg: 0 20px 40px -20px rgba(15, 23, 42, 0.25);

    /* Easing */
    --ease-smooth: cubic-bezier(.2, .8, .2, 1);

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

img, svg, video, canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* ==========================================================================
   3. TYPOGRAPHY HELPERS
   ========================================================================== */
.font-serif-id {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-sans-id {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

.tabular-nums {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}


/* ==========================================================================
   4. UTILITY CLASSES
   ========================================================================== */
.line-clamp-1,
.line-clamp-2,
.line-clamp-3,
.line-clamp-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.line-clamp-4 { -webkit-line-clamp: 4; }

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video  { aspect-ratio: 16 / 9; }
.aspect-photo  { aspect-ratio: 4 / 3; }

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

.touch-target {
    min-width: 44px;
    min-height: 44px;
}


/* ==========================================================================
   5. ANIMATIONS (SHARED KEYFRAMES)
   ========================================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes float-x {
    0%, 100% { transform: translateY(0) translateX(0); }
    50%      { transform: translateY(-20px) translateX(10px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-30px) scale(1.05); }
}

@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes fade-up {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes pulse-ring {
    0%   { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.4); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes wa-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

.float-animation       { animation: float 3s ease-in-out infinite; }
.float-animation-slow  { animation: float-slow 8s ease-in-out infinite; }
.fade-up-animation     { animation: fade-up 0.6s ease-out forwards; }
.fade-in-animation     { animation: fade-in 0.5s ease-out forwards; }
.spin-animation        { animation: spin 1s linear infinite; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   6. HEADER / NAVBAR
   ========================================================================== */
.header-container { /* helper */ }

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.header-logo:hover { opacity: 0.85; }

.header-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.header-logo-text .brand {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, #d97706, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', Georgia, serif;
}

.header-logo-text .sub {
    font-size: 0.55rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* ==========================================================================
   7. HAMBURGER BUTTON
   ========================================================================== */
.hamburger-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: opacity 0.3s ease;
}
.hamburger-btn:hover { opacity: 0.7; }

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: #1e293b;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-smooth), opacity 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ==========================================================================
   8. MOBILE MENU (DRAWER)
   ========================================================================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100%;
    background: #ffffff;
    padding: 2rem 1.5rem;
    transition: right 0.35s var(--ease-smooth);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -10px 0 30px -10px rgba(0, 0, 0, 0.15);
}

.mobile-menu.open .mobile-menu-content {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.mobile-menu-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.mobile-menu-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-decoration: none;
}
.mobile-menu-logo img {
    max-width: 160px;
    height: auto;
    margin-bottom: 0.5rem;
    object-fit: contain;
}
.mobile-menu-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(to right, #d97706, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', Georgia, serif;
    text-align: center;
}
.mobile-menu-logo-sub {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 0.1rem;
    text-transform: uppercase;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    color: #d97706;
    padding-left: 0.5rem;
}
.mobile-nav-link i {
    width: 24px;
    flex-shrink: 0;
    color: #d97706;
    text-align: center;
}

.mobile-menu-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}


/* ==========================================================================
   9. WHATSAPP FLOATING BUTTON
   ========================================================================== */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.wa-float > * { pointer-events: auto; }

.wa-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.6);
    transition: transform 0.3s var(--ease-smooth);
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
    animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-float-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}
.wa-float-btn:hover  { transform: scale(1.08); }
.wa-float-btn:active { transform: scale(0.98); }

.wa-float-text {
    background: #ffffff;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.25);
    white-space: nowrap;
    user-select: none;
    opacity: 1;
    transform: none;
}


/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer,
footer.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2rem 1rem;
    border-top: 1px solid #1e293b;
    margin-top: auto;
    text-align: center;
    font-size: 0.85rem;
}
.site-footer a {
    color: #cbd5e1;
    transition: color 0.3s ease;
}
.site-footer a:hover { color: var(--brand-amber); }


/* ==========================================================================
   11. SCROLL REVEAL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s var(--ease-smooth);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s var(--ease-smooth);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s var(--ease-smooth);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-smooth);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }


/* ==========================================================================
   12. LEGACY CLASSES — kompatibilitas halaman lama
   ========================================================================== */

/* ---------- Hero gradient (lama) ---------- */
.hero-gradient {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 30%, #f59e0b 70%, #dc2626 100%);
}

/* ---------- Card hover ---------- */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ---------- News card ---------- */
.news-card {
    transition: all 0.3s ease;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.news-tag {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* ---------- Gallery grid ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* ---------- Info detail card ---------- */
.info-detail-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.info-detail-card h4 {
    color: #92400e;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.info-detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-detail-card ul li {
    padding: 0.4rem 0;
    color: #78350f;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.info-detail-card ul li i {
    color: #d97706;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* ---------- Slideshow (legacy) ---------- */
.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
    border-radius: 1.5rem;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.slide.active { opacity: 1; }

.slide-content { max-width: 380px; }

.slide-icon {
    font-size: 4rem;
    margin-bottom: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.slide-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.slide-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: white;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.slide-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.slide-dot.active {
    background: white;
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}
.slide-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.slide-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}
.slide-nav.prev { left: 0.5rem; }
.slide-nav.next { right: 0.5rem; }


/* ==========================================================================
   13. CUSTOM SCROLLBAR (desktop only)
   ========================================================================== */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
    ::-webkit-scrollbar-track {
        background: #f1f5f9;
    }
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #f59e0b, #dc2626);
        border-radius: 999px;
        border: 2px solid #f1f5f9;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #d97706, #b91c1c);
    }
}


/* ==========================================================================
   14. SELECTION & FOCUS
   ========================================================================== */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #1c1917;
}

:focus-visible {
    outline: 2px solid var(--brand-amber);
    outline-offset: 3px;
    border-radius: 4px;
}


/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

/* ---- Tablet & bawahnya (≤ 768px) ---- */
@media (max-width: 768px) {
    /* Header */
    .hamburger-btn { display: flex; }
    .desktop-nav   { display: none !important; }
    .desktop-btn   { display: none !important; }
    .mobile-menu   { display: block; }

    .header-logo img          { height: 32px; }
    .header-logo-text .brand  { font-size: 1rem; }
    .header-logo-text .sub    { font-size: 0.45rem; letter-spacing: 1px; }

    /* WA float */
    .wa-float-text { display: none; }
    .wa-float-btn  { width: 48px; height: 48px; font-size: 1.4rem; }
    .wa-float      { right: 16px; bottom: 16px; }

    /* Slideshow legacy */
    .slide-container {
        min-height: 300px;
        border-radius: 1rem;
    }
    .slide-title    { font-size: 1.25rem; }
    .slide-icon     { font-size: 3rem; }
    .slide-subtitle { font-size: 0.8rem; }
    .slide-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.8rem;
    }
    .slide-nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .slide-dot     { width: 8px; height: 8px; }
    .slide-content { max-width: 300px; }
}

/* ---- Mobile kecil (≤ 480px) ---- */
@media (max-width: 480px) {
    .header-logo              { gap: 0.5rem; }
    .header-logo img          { height: 28px; }
    .header-logo-text .brand  { font-size: 0.85rem; }
    .header-logo-text .sub    { font-size: 0.4rem; letter-spacing: 0.5px; }

    .wa-float-btn { width: 44px; height: 44px; font-size: 1.25rem; }
    .wa-float     { right: 12px; bottom: 12px; }

    /* Slideshow legacy */
    .slide-container {
        min-height: 260px;
        border-radius: 0.75rem;
    }
    .slide-title    { font-size: 1rem; }
    .slide-icon     { font-size: 2.5rem; }
    .slide-subtitle { font-size: 0.7rem; }
    .slide-btn {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
    .slide-nav {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    .slide-content { max-width: 250px; }
}

/* ---- Landscape kecil ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-menu-content  { padding: 1.25rem 1.25rem; }
    .mobile-menu-logo     { margin-bottom: 1rem; }
    .mobile-menu-logo img { max-width: 100px; }
    .mobile-nav-link      { padding: 0.5rem 0; }
}


/* ==========================================================================
   END OF FILE
   ========================================================================== */