/* ================================================================
   Custom CSS - Wisata Dasan Geria
   ================================================================ */

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #16a34a, #15803d);
}

/* ---- Navbar States ---- */
.navbar-text-color { color: white; }
.navbar-subtext-color { color: rgba(255,255,255,0.7); }

.navbar-scrolled .navbar-text-color { color: #1f2937; }
.navbar-scrolled .navbar-subtext-color { color: #6b7280; }
.navbar-scrolled .nav-link { color: #374151; }

/* ---- Hero Parallax ---- */
.hero-parallax {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

@media (max-width: 768px) {
    .hero-parallax {
        background-attachment: scroll;
    }
}

/* ---- Fade In Up Animation ---- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Fade In Scale ---- */
.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---- Slide In Left ---- */
.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Slide In Right ---- */
.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Stagger Delay ---- */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ---- Card Hover Effects ---- */
.card-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(22, 163, 74, 0.15);
}

/* ---- Glass Effect ---- */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #22c55e, #facc15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Shimmer Loading ---- */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* ---- Pulse Dot ---- */
.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

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

/* ---- Float Animation ---- */
.float {
    animation: float 6s ease-in-out infinite;
}

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

/* ---- Lightbox ---- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

/* ---- Star Rating Interactive ---- */
.star-rating input { display: none; }
.star-rating label {
    cursor: pointer;
    font-size: 2rem;
    color: #d1d5db;
    transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #facc15;
    transform: scale(1.1);
}
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

/* ---- Counter Animation ---- */
.counter {
    font-variant-numeric: tabular-nums;
}

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

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ---- Admin Sidebar ---- */
.admin-sidebar {
    transition: transform 0.3s ease, width 0.3s ease;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 40;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
}

/* ---- Form Focus Effect ---- */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* ---- Tooltip ---- */
.tooltip {
    position: relative;
}
.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #1f2937;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* ---- Print Styles ---- */
@media print {
    nav, footer, .no-print { display: none !important; }
}
