/* Food App Custom Styles - TailwindCSS Compatible */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
}

.card-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Spotlight Search Specific Styles */
.spotlight-result-item:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.spotlight-result-item.bg-blue-50 {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
}

/* Cart Animation Styles */
@keyframes cartBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-10px) scale(1.1);
    }
    60% {
        transform: translateY(-5px) scale(1.05);
    }
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cart-bounce {
    animation: cartBounce 0.6s ease-in-out;
}

.cart-pulse {
    animation: cartPulse 0.6s ease-in-out;
}

/* Toast notification enhancement */
.cart-added-toast {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Mobile toast positioning - ensure toast shows at top with proper spacing */
@media only screen and (max-width: 767px) {
    .toastify.toastify-top.on {
        top: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 auto !important;
        max-width: calc(100% - 40px) !important;
        width: auto !important;
    }
}

mark {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0 0.25rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Spotlight Add Button */
.spotlight-add-btn {
    flex-shrink: 0;
    min-width: 60px;
    transition: all 0.2s ease;
}

.spotlight-add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.interactive-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid #e5e7eb;
}

.interactive-card:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 20px rgba(16, 185, 129, 0.2);
    border-color: #065f46;
}

.info-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid #e5e7eb;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(16, 185, 129, 0.2);
    border-color: #065f46;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 50;
    transform: translateY(10px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-btn.active {
    color: #059669;
    background-color: #f0fdf4;
}

.nav-link.active {
    color: #d97706 !important;
    font-weight: 600;
}

.nav-link.active.text-amber-300 {
    color: #fcd34d !important;
}

.dashboard-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease-in-out;
}

.dashboard-menu-item:hover {
    background-color: #f3f4f6;
}

.dashboard-menu-item.active {
    background-color: #d1fae5;
    color: #047857;
    font-weight: 600;
}

.category-btn.active {
    background-color: #059669;
    color: white;
    border-color: #059669;
}

.payment-radio:checked+label {
    border-color: #059669;
    background-color: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.rating-stars span {
    cursor: pointer;
    font-size: 2.5rem;
    color: #d1d5db;
    transition: color 0.2s;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

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

main>section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
