/* ==========================================================================
   XROS STUDIO LUXURY DESIGN SYSTEM & EXHIBITION UX
   Clean White, Deep Slate & Vibrant Orange Tone
   Micro-animations, 0% Icon Rule, Outfit & Plus Jakarta Sans
   ========================================================================== */

:root {
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --card-bg: #FFFFFF;
    --card-border: #E2E8F0;
    --card-border-warm: #FED7AA;

    --orange-primary: #EA580C;
    --orange-hover: #C2410C;
    --orange-light: #F97316;
    --orange-subtle: #FFF7ED;
    --orange-border: #FED7AA;

    --emerald-dark: #064E3B;
    --emerald: #059669;
    --emerald-subtle: #ECFDF5;
    --emerald-light: #10B981;

    --navy-dark: #1E3A8A;
    --navy-light: #0284C7;
    --navy-subtle: #EFF6FF;

    --text-main: #0F172A;
    --text-body: #334155;
    --text-sub: #64748B;
    --text-muted: #94A3B8;

    --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 16px 32px -4px rgba(234, 88, 12, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .title {
    font-family: 'Outfit', sans-serif !important;
    color: var(--text-main) !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
}

/* 0% Icon Rule Typography Pills */
.pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.3;
}
.pill-orange { background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; }
.pill-emerald { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.pill-gold { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.pill-blue, .pill-navy { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.pill-red { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.pill-secondary { background: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }

/* Buttons High Contrast with Micro-Elevation Animation */
.btn, .button.is-primary-gradient {
    display: inline-block;
    background: var(--orange-primary) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--orange-hover) !important;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.2);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn:hover, .button.is-primary-gradient:hover {
    background: var(--orange-hover) !important;
    border-color: #9A3412 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-secondary, .button.is-light {
    background: #FFFFFF !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-main) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.btn-secondary:hover, .button.is-light:hover {
    background: var(--orange-subtle) !important;
    border-color: var(--orange-primary) !important;
    color: var(--orange-hover) !important;
    transform: translateY(-1px);
}

/* Glassmorphic Navbar with Scroll Transition */
.navbar.is-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.25s ease;
}

.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border-bottom-color: var(--card-border-warm);
}

/* Navbar Animated Links */
.nav-animated-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-body) !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.nav-animated-link:hover {
    color: var(--orange-primary) !important;
    background: var(--orange-subtle) !important;
    transform: translateY(-1px);
}

.nav-animated-link.is-active-link {
    color: var(--orange-primary) !important;
    font-weight: 800 !important;
    background: var(--orange-subtle) !important;
}

/* Animated Hamburger to X */
.animated-burger span {
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.animated-burger.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.animated-burger.is-active span:nth-child(2) {
    opacity: 0;
}
.animated-burger.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Exhibition Card Entrance Animation */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exhibition-card {
    background: #FFFFFF !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInCard 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.exhibition-card:hover {
    border-color: var(--orange-border) !important;
    transform: translateY(-6px);
    box-shadow: 0 18px 36px -6px rgba(234, 88, 12, 0.14) !important;
}

.exhibition-card .card-image {
    position: relative;
    padding-top: 95%; /* 1:1 Aspect Ratio */
    background: #F8FAFC;
    overflow: hidden;
}

.exhibition-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.exhibition-card:hover .card-image img {
    transform: scale(1.06);
}

.exhibition-title a {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--text-main) !important;
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.exhibition-title a:hover {
    color: var(--orange-primary) !important;
}

.exhibition-price {
    font-family: 'Outfit', sans-serif !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    color: var(--orange-primary) !important;
}

/* Skeleton Shimmer Pulse Animation */
@keyframes skeletonPulse {
    0% { background-color: #F1F5F9; }
    50% { background-color: #E2E8F0; }
    100% { background-color: #F1F5F9; }
}

.skeleton-card {
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px;
    height: 100%;
}

.skeleton-box {
    border-radius: 6px;
    animation: skeletonPulse 1.4s ease-in-out infinite;
}

/* Category Filter Pills (Interactive Sliding Animation) */
.exhibition-filter-pill {
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    outline: none;
}

.exhibition-filter-pill:hover {
    border-color: var(--orange-border);
    background: var(--orange-subtle);
    color: var(--orange-primary);
    transform: translateY(-1px);
}

.exhibition-filter-pill.is-active {
    background: var(--orange-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--orange-hover) !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

/* Admin Specific Rules Preservation */
.is-small-form .label {
    font-size: 0.8rem !important;
    font-weight: 700;
    margin-bottom: 0.25rem !important;
    color: #334155;
}
.is-small-form .input, .is-small-form .select select, .is-small-form .textarea {
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    padding: 0.4em 0.7em !important;
    height: auto !important;
}
.photo-slot-box {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}
.photo-slot-box:hover { border-color: var(--orange-primary); background: #fff7ed; }
.photo-slot-box.has-image { border-style: solid; border-color: #10b981; }
.photo-slot-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.photo-preview-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; text-align: center; }
.photo-preview-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ==========================================================================
   IN-CONTEXT FRICTIONLESS AUTH MODAL STYLES (MASUK & DAFTAR)
   ========================================================================== */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    animation: authOverlayFadeIn 0.2s ease-out;
}

@keyframes authOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-modal-card {
    background: #FFFFFF;
    border: 1px solid var(--card-border-warm);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    animation: authCardPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes authCardPop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
}

.auth-modal-close {
    background: #F1F5F9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-modal-close:hover {
    background: #E2E8F0;
    color: var(--text-dark);
}

/* Segmented Pill Tab Bar */
.auth-tab-bar {
    display: flex;
    background: #F1F5F9;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 18px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.is-active {
    background: #FFFFFF;
    color: var(--orange-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Auth Input Fields */
.auth-input {
    width: 100%;
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    background: #FFFFFF;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}