/* Neo Blue Shop Theme - CSS Variables */
:root {
    --primary-blue: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    --secondary-orange: #f97316;
    --secondary-red: #ef4444;
    --neutral-dark: #1f2937;
    --neutral-light: #f8fafc;
    --neutral-gray: #6b7280;
    --white: #ffffff;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
}

/* Dark Mode Variables */
.dark {
    --primary-blue: #3b82f6;
    --primary-blue-light: #60a5fa;
    --primary-blue-dark: #1e40af;
    --secondary-orange: #fb923c;
    --secondary-red: #f87171;
    --neutral-dark: #f8fafc;
    --neutral-light: #1f2937;
    --neutral-gray: #9ca3af;
    --white: #1f2937;
    --black: #ffffff;
}

/* Base Styles */
* {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: var(--neutral-light);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
    border: 2px solid var(--neutral-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-rotate {
    from {
        transform: scale(1) rotate(0deg);
    }
    to {
        transform: scale(1.05) rotate(2deg);
    }
}

@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }
}

@keyframes slide-right {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(5px);
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

.scale-rotate {
    animation: scale-rotate 0.3s ease-in-out;
}

.pulse-orange {
    animation: pulse-orange 2s infinite;
}

.slide-right:hover {
    animation: slide-right 0.3s ease-in-out;
}

/* Hero Slider Styles */
.hero-slider {
    padding: 0 !important;
    margin: 0 !important;
}

.hero-slider .swiper-slide {
    height: auto;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 50px;
    height: 50px;
}

.hero-slider:hover .swiper-button-next,
.hero-slider:hover .swiper-button-prev {
    opacity: 1;
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    font-size: 20px;
    color: white;
    font-weight: bold;
}

.hero-slider .swiper-pagination-bullet {
    background: var(--primary-blue-light);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--secondary-orange);
    opacity: 1;
    transform: scale(1.2);
}

/* Remove any default margins/padding from sections */
section.relative {
    margin: 0 !important;
    padding: 0 !important;
}

/* Header Styles */
.neo-header {
    background: var(--gradient-primary);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary-blue-light);
}

.neo-header .logo-container {
    position: relative;
    overflow: hidden;
}

.neo-header .logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.neo-header .logo-container:hover::before {
    opacity: 0.1;
}

.neo-header .logo {
    transition: transform 0.3s ease;
}

.neo-header .logo-container:hover .logo {
    transform: scale(1.1);
}

/* Search Box */
.neo-search-box {
    background: var(--white);
    border: 2px solid var(--primary-blue-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.neo-search-box:focus-within {
    border-color: var(--secondary-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.neo-search-btn {
    background: var(--gradient-secondary);
    color: var(--white);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.neo-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Navigation Menu */
.neo-nav-link {
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.neo-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
}

.neo-nav-link:hover::after {
    width: 100%;
}

/* Mega Menu */
.neo-mega-menu {
    background: var(--white);
    border: 2px solid var(--primary-blue-light);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
}

.neo-mega-menu .category-item {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.neo-mega-menu .category-item:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.2);
}

/* Product Cards */
.neo-product-card {
    background: var(--white);
    border: 2px solid var(--primary-blue-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.neo-product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
    border-color: var(--secondary-orange);
}

.neo-product-card .product-image {
    transition: transform 0.5s ease;
}

.neo-product-card:hover .product-image {
    transform: scale(1.1);
}

.neo-product-card .quick-actions {
    background: rgba(30, 58, 138, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neo-product-card:hover .quick-actions {
    opacity: 1;
}

.neo-product-card .action-btn {
    background: var(--gradient-secondary);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.neo-product-card .action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Buttons */
.neo-btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.neo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.neo-btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.neo-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

/* Slider Controls */
.neo-slider-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.neo-slider-btn:hover {
    background: var(--gradient-secondary);
    transform: scale(1.1);
}

.neo-slider-pagination .swiper-pagination-bullet {
    background: var(--primary-blue-light);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.neo-slider-pagination .swiper-pagination-bullet-active {
    background: var(--secondary-orange);
    opacity: 1;
    transform: scale(1.2);
}

/* Footer */
.neo-footer {
    background: var(--gradient-hero);
    color: var(--white);
}

.neo-footer .social-link {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.neo-footer .social-link:hover {
    background: var(--gradient-secondary);
    transform: scale(1.1);
}

.neo-footer .footer-link {
    color: var(--white);
    transition: all 0.3s ease;
}

.neo-footer .footer-link:hover {
    color: var(--secondary-orange);
    transform: translateX(5px);
}

/* Dark Mode Specific Styles */
.dark .neo-product-card {
    background: var(--neutral-dark);
    border-color: var(--primary-blue-light);
    color: var(--neutral-light);
}

.dark .neo-mega-menu {
    background: var(--neutral-dark);
    border-color: var(--primary-blue-light);
}

.dark .neo-search-box {
    background: var(--neutral-dark);
    border-color: var(--primary-blue-light);
    color: var(--neutral-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .neo-header .logo {
        height: 40px;
    }
    
    .neo-product-card {
        margin-bottom: 20px;
    }
    
    .neo-btn-primary,
    .neo-btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Loading Animation */
.neo-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary-orange);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.border-gradient-primary {
    border-image: var(--gradient-primary) 1;
}

.border-gradient-secondary {
    border-image: var(--gradient-secondary) 1;
}
