/* public/assets/css/style.css */

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #fef2f2;
    /* Light red/rose tint track */
}

::-webkit-scrollbar-thumb {
    background: #991b1b;
    /* Brand Dark Red thumb */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7f1d1d;
    /* Hover darker red */
}

/* Base styling overrides */
body {
    font-family: 'Cairo', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #fafafa;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Hero and card hover effects */
.hover-card-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card-effect:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(153, 27, 27, 0.15);
}

/* Smooth custom slide-over drawer */
.cart-drawer-open {
    transform: translateX(0);
}

.cart-drawer-closed {
    transform: translateX(100%);
}

/* RTL Specific transitions */
[dir="rtl"] .cart-drawer-closed {
    transform: translateX(-100%);
}

[dir="rtl"] .cart-drawer-open {
    transform: translateX(0);
}

/* Mixed content direction auto-alignment (English LTR / Arabic RTL) */
.HTML-rendered-content,
.HTML-rendered-content p,
.HTML-rendered-content div,
.HTML-rendered-content h1,
.HTML-rendered-content h2,
.HTML-rendered-content h3,
.HTML-rendered-content h4,
.HTML-rendered-content h5,
.HTML-rendered-content h6,
.HTML-rendered-content ul,
.HTML-rendered-content ol,
.HTML-rendered-content li {
    unicode-bidi: plaintext;
    text-align: start;
}

/* Music Preloader Animations */
@keyframes bar-grow {
    0%, 100% {
        transform: scaleY(0.12);
    }
    50% {
        transform: scaleY(1);
    }
}

.animate-bar-1 { animation: bar-grow 1.0s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; transform-origin: bottom; }
.animate-bar-2 { animation: bar-grow 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.15s; transform-origin: bottom; }
.animate-bar-3 { animation: bar-grow 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.3s; transform-origin: bottom; }
.animate-bar-4 { animation: bar-grow 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.45s; transform-origin: bottom; }
.animate-bar-5 { animation: bar-grow 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.2s; transform-origin: bottom; }
.animate-bar-6 { animation: bar-grow 1.3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.35s; transform-origin: bottom; }
.animate-bar-7 { animation: bar-grow 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.5s; transform-origin: bottom; }

@keyframes float-note-1 {
    0% {
        transform: translate(0, 0) scale(0.6) rotate(0deg);
        opacity: 0;
    }
    30% {
        opacity: 0.8;
    }
    100% {
        transform: translate(-30px, -60px) scale(1.1) rotate(-35deg);
        opacity: 0;
    }
}
@keyframes float-note-2 {
    0% {
        transform: translate(0, 0) scale(0.6) rotate(0deg);
        opacity: 0;
    }
    30% {
        opacity: 0.8;
    }
    100% {
        transform: translate(30px, -50px) scale(1) rotate(45deg);
        opacity: 0;
    }
}

.animate-float-note-1 {
    animation: float-note-1 2s infinite ease-out;
}
.animate-float-note-2 {
    animation: float-note-2 2.5s infinite ease-out 0.7s;
}