

/* Custom Styles for FashionNova */

/* Blob Animation */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Category Card Hover Effect */
.category-card img {
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

/* Product Card Hover Effects */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-card:hover .product-icons {
    opacity: 1;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ec4899;
    border-radius: 5px;
}

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

/* Search Bar Animation */
#searchBar {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Icon Hover Effects */
nav button:hover i,
nav a:hover i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Cart badge animation control */
#cartCount {
    animation: none;
}

#cartBtn:hover #cartCount {
    animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth transitions for all interactive elements */
button, a, input, select, textarea {
    transition: all 0.3s ease;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #ec4899, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Offers Banner Animation */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-slide {
    animation: slide 35s linear infinite;
    display: flex;
    will-change: transform;
}

.offers-slider {
    overflow: hidden;
    position: relative;
}

/* Pause animation on hover */
.offers-slider:hover .animate-slide {
    animation-play-state: paused;
}

/* Smooth fade on edges */
.offers-slider::before,
.offers-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.offers-slider::before {
    left: 0;
    background: linear-gradient(to right, rgba(236, 72, 153, 1), transparent);
}

.offers-slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(236, 72, 153, 1), transparent);
}

/* Hero Slider Styles */
.hero-slide {
    transition: opacity 1s ease-in-out;
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-dot:hover {
    opacity: 0.8 !important;
    transform: scale(1.2);
}

/* Hero section improvements */
section[class*="min-h-"] .container {
    position: relative;
    z-index: 10;
}

/* Better gradient backgrounds */
.bg-gradient-to-br {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   RESPONSIVE & MOBILE STYLES
   ============================================ */

/* Mobile First - Base styles for mobile */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Navbar adjustments */
    nav .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Hero section mobile */
    section[class*="hero"] {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        min-height: auto !important;
    }
    
    /* Grid adjustments */
    .grid {
        gap: 1rem !important;
    }
    
    /* Stats and feature boxes */
    .grid.grid-cols-2,
    .grid.grid-cols-3,
    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Stats section mobile */
    .flex.items-center.space-x-8 {
        justify-content: center !important;
        gap: 1.5rem !important;
    }
    
    /* Product cards */
    .product-card {
        margin-bottom: 1rem;
    }
    
    /* Category cards */
    .category-card img {
        height: 250px !important;
        object-fit: cover;
    }
    
    /* Buttons */
    button,
    .btn,
    a[class*="btn"] {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Forms */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Modal adjustments */
    .modal,
    [id*="Modal"] > div {
        margin: 1rem !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    /* Tables - make scrollable */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    /* Footer adjustments */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Hide desktop-only elements */
    .hidden-mobile {
        display: none !important;
    }
    
    /* Sidebar for admin/vendor */
    aside#sidebar {
        transform: translateX(-100%);
    }
    
    aside#sidebar.active {
        transform: translateX(0);
    }
    
    .ml-64 {
        margin-left: 0 !important;
    }
    
    /* Spacing adjustments */
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-16 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .py-12 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Text size adjustments */
    .text-5xl,
    .text-6xl {
        font-size: 2rem !important;
    }
    
    .text-4xl {
        font-size: 1.75rem !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    /* Image containers */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Flex adjustments */
    .flex-wrap {
        flex-wrap: wrap !important;
    }
    
    /* Space adjustments */
    .space-x-8 {
        gap: 1rem !important;
    }
    
    .space-y-8 {
        gap: 1rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Force single column layouts */
    .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    /* Smaller text */
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    /* Smaller buttons */
    button,
    .btn {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Tighter spacing */
    .py-20 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-16 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Stats boxes */
    .grid.grid-cols-2 > div {
        padding: 1rem !important;
    }
    
    .grid.grid-cols-2 > div p:first-child {
        font-size: 1.5rem !important;
    }
    
    /* Hero section adjustments */
    section[class*="min-h"] {
        min-height: auto !important;
    }
    
    /* Better spacing for stats */
    .flex.flex-wrap.gap-6 {
        gap: 1rem !important;
        justify-content: space-around !important;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    section[class*="hero"] {
        min-height: auto !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    button,
    a,
    input[type="button"],
    input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .hover\:scale-105:hover,
    .hover\:scale-110:hover {
        transform: none !important;
    }
    
    /* Simplify animations on mobile */
    * {
        animation-duration: 0.3s !important;
    }
}
