/* Custom CSS for JRJ Elite */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-delay {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-delay-2 {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-fade-in-delay {
    animation: fade-in-delay 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fade-in-delay-2 1s ease-out 0.6s both;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Button hover effects */
.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form validation styles */
.form-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.form-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #10b981;
}

.notification.error {
    background-color: #dc2626;
}

/* Mobile menu animation */
.mobile-menu-enter {
    transform: translateY(-100%);
    opacity: 0;
}

.mobile-menu-enter-active {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.mobile-menu-exit {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-exit-active {
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Cart sidebar animations */
.cart-sidebar-enter {
    transform: translateX(100%);
}

.cart-sidebar-enter-active {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.cart-sidebar-exit {
    transform: translateX(0);
}

.cart-sidebar-exit-active {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* Product card styles */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #374151;
    min-height: 400px;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #dc2626;
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.1);
}

/* Ensure consistent card heights */
.product-card .flex-grow {
    flex-grow: 1;
}

.product-card .mt-auto {
    margin-top: auto;
}

/* Filter button styles */
.filter-btn {
    transition: all 0.2s ease;
}

.filter-btn:hover {
    transform: translateY(-1px);
}

.filter-btn.active {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* Form input improvements */
input[type="text"], select {
    transition: all 0.2s ease;
}

input[type="text"]:focus, select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Star rating styles */
.star-rating {
    color: #fbbf24;
}

.star-rating.empty {
    color: #6b7280;
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Custom gradient backgrounds */
.gradient-bg-1 {
    background: linear-gradient(135deg, #1f2937 0%, #dc2626 50%, #1f2937 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Video background styles */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.loaded {
    opacity: 1;
}

/* Ensure video doesn't interfere with text */
.hero-section {
    position: relative;
    z-index: 2;
}

/* Mobile video optimization */
@media (max-width: 768px) {
    .hero-video {
        display: none; /* Hide video on mobile for better performance */
    }
    
    .hero-section {
        background: linear-gradient(135deg, #1f2937 0%, #dc2626 50%, #1f2937 100%);
    }
}

/* Dashboard spacing for fixed header - ensure content is below header */
body {
    padding-top: 0;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}
