/* ===== SuperBox E-Commerce Styles ===== */
/* Custom template styles extracted from original HTML */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Speaker Grill Pattern */
.speaker-grill {
    background-image: radial-gradient(#333 15%, transparent 16%), radial-gradient(#333 15%, transparent 16%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Custom Slider for Demo Interface */
.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    border: 2px solid #000;
}

/* ===== Additional E-Commerce Styles ===== */

/* Loading spinner for checkout button */
.spinner {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled state for buttons */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error message styles */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 16px;
}

/* Success message styles */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 16px;
}

/* ===== Aurora Background Animation ===== */

/* Aurora background container */
.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Aurora gradient blobs */
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    will-change: transform, opacity;
}

/* Purple blob */
.aurora-blob-1 {
    top: 20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.8) 0%, rgba(168, 85, 247, 0) 70%);
    animation: aurora-move-1 25s ease-in-out infinite;
}

/* Pink blob */
.aurora-blob-2 {
    top: 40%;
    right: 20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.7) 0%, rgba(236, 72, 153, 0) 70%);
    animation: aurora-move-2 30s ease-in-out infinite;
    animation-delay: -5s;
}

/* Cyan/Blue blob */
.aurora-blob-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.6) 0%, rgba(6, 182, 212, 0) 70%);
    animation: aurora-move-3 35s ease-in-out infinite;
    animation-delay: -10s;
}

/* Aurora animation keyframes */
@keyframes aurora-move-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(-50px, -30px) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, 40px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, -20px) scale(1.05);
        opacity: 0.55;
    }
}

@keyframes aurora-move-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(60px, 50px) scale(1.15);
        opacity: 0.65;
    }
    66% {
        transform: translate(-40px, -40px) scale(0.95);
        opacity: 0.45;
    }
}

@keyframes aurora-move-3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    20% {
        transform: translate(-45%, -55%) scale(1.1);
        opacity: 0.6;
    }
    40% {
        transform: translate(-55%, -48%) scale(0.9);
        opacity: 0.4;
    }
    60% {
        transform: translate(-48%, -52%) scale(1.05);
        opacity: 0.55;
    }
    80% {
        transform: translate(-52%, -50%) scale(0.95);
        opacity: 0.5;
    }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .aurora-blob {
        animation: none;
        opacity: 0.3;
    }
}
