/* SceneShot AI - Shared Styles */

/* Material Symbols baseline */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

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

/* Soft shadow */
.soft-shadow {
    box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.04);
}

/* FAQ card shadow */
.faq-card {
    box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.04);
}

/* Safe area padding for mobile bottom bars */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Before/After Slider */
.comparison-slider {
    position: relative;
    overflow: hidden;
    cursor: col-resize;
}
.comparison-slider .before-img,
.comparison-slider .after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comparison-slider .before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    width: 50%;
}
.comparison-slider .slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 10;
    cursor: col-resize;
    transform: translateX(-50%);
}
.comparison-slider .slider-handle .handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0041de;
}

/* Toggle switch */
.toggle-switch {
    width: 48px;
    height: 24px;
    background: #c4c5d9;
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}
.toggle-switch.active {
    background: #0041de;
}
.toggle-switch .toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 9999px;
    transition: transform 0.3s ease;
}
.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

/* Aspect ratio button group */
.ratio-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #c4c5d9;
    color: #434656;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}
.ratio-btn.active {
    border-color: #0041de;
    color: #0041de;
    background: rgba(0, 65, 222, 0.05);
}
.ratio-btn:hover:not(.active) {
    border-color: rgba(0, 65, 222, 0.5);
}

/* Scene filter chip */
.filter-chip {
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: #edeeef;
    color: #434656;
}
.filter-chip.active {
    background: #0041de;
    color: white;
}
.filter-chip:hover:not(.active) {
    background: #e1e3e4;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mobile-menu-panel.open {
    transform: translateX(0);
}

/* Nav link active state */
.nav-link {
    color: #434656;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.nav-link:hover {
    color: #0041de;
}
.nav-link.active {
    color: #0041de;
    font-weight: 700;
    border-bottom-color: #0041de;
}

/* Progress bar animation */
@keyframes progress-fill {
    from { width: 0%; }
    to { width: 100%; }
}
.progress-bar-animated {
    animation: progress-fill 3s ease-in-out forwards;
}

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

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Sidebar nav for dashboard/admin pages */
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #434656;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.sidebar-nav-item:hover {
    background: #edeeef;
    color: #0041de;
}
.sidebar-nav-item.active {
    background: rgba(0, 65, 222, 0.1);
    color: #0041de;
    font-weight: 600;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.95); }

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delays for grid children */
.reveal-stagger-1 { transition-delay: 0.05s; }
.reveal-stagger-2 { transition-delay: 0.12s; }
.reveal-stagger-3 { transition-delay: 0.19s; }
.reveal-stagger-4 { transition-delay: 0.26s; }
.reveal-stagger-5 { transition-delay: 0.33s; }
.reveal-stagger-6 { transition-delay: 0.40s; }

/* ============================================
   NAVBAR SCROLL STATE
   ============================================ */
nav.nav-scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

/* ============================================
   CARD HOVER ENHANCEMENT
   ============================================ */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 65, 222, 0.15);
}

/* ============================================
   BUTTON PRESS EFFECT
   ============================================ */
.btn-press:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* ============================================
   ANIMATED GRADIENT
   ============================================ */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* ============================================
   COMPARISON SLIDER ENHANCEMENT
   ============================================ */
@keyframes handle-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 0 rgba(0, 65, 222, 0.3); }
    50% { box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 8px rgba(0, 65, 222, 0); }
}
.comparison-slider .slider-handle .handle-circle {
    animation: handle-pulse 2.5s ease-in-out infinite;
}
.comparison-slider:hover .slider-handle .handle-circle {
    animation: none;
    transform: translate(-50%, -50%) scale(1.15);
    transition: transform 0.2s ease;
}
.comparison-slider .slider-handle .handle-circle {
    transition: transform 0.2s ease;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #c4c5d9;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #747687;
}

/* ============================================
   TEXT GRADIENT UTILITY
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, #0041de, #841cd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SMOOTH PAGE LOAD
   ============================================ */
body {
    animation: page-fade-in 0.4s ease;
}
@keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
