/* ============================================
   KASHMIR CRAVINGS - CUSTOM STYLES
   Traditional Kashmiri Bread Delivery App
   ============================================ */

/* CSS Variables for theming */
:root {
    --color-saffron: #f97316;
    --color-saffron-light: #fed7aa;
    --color-kashmir-red: #8B1538;
    --color-kashmir-brown: #4A3728;
    --color-kashmir-cream: #F5E6D3;
    --color-kashmir-gold: #D4AF37;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes floatDelayed {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(249, 115, 22, 0.6);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.animate-float-delayed {
    animation: floatDelayed 8s ease-in-out infinite;
    animation-delay: 1s;
}

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

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

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

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

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: var(--color-saffron);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-kashmir-red);
}

/* Selection Color */
::selection {
    background: var(--color-saffron);
    color: white;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--color-saffron);
    outline-offset: 2px;
}

/* Bread Card Hover Effects */
.bread-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bread-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.bread-card .card-image {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bread-card:hover .card-image {
    transform: scale(1.05);
}

/* Quantity Selector */
.quantity-btn {
    transition: all 0.2s ease;
}

.quantity-btn:active {
    transform: scale(0.9);
}

/* Payment Option Selected State */
.payment-option input:checked + div {
    border-color: var(--color-kashmir-red);
    background-color: rgba(139, 21, 56, 0.05);
}

.dark .payment-option input:checked + div {
    background-color: rgba(139, 21, 56, 0.2);
}

/* Filter Button Active State */
.filter-btn.active {
    background-color: var(--color-kashmir-red);
    color: white;
}

/* Sticky Navbar Shadow */
.navbar-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Cart Item Animation */
.cart-item {
    animation: slideInRight 0.3s ease-out forwards;
}

.cart-item.removing {
    animation: fadeInUp 0.3s ease-out reverse forwards;
}

/* Toast Animation */
.toast-show {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(249, 115, 22, 0.3);
    border-top-color: var(--color-saffron);
    border-radius: 50%;
    animation: spin-slow 1s linear infinite;
}

/* Hero Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-kashmir-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Dark Mode Transitions */
.dark-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Form Input Focus Ring */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}