/* Custom styles for Delicious Bites Digital Menu */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

/* Special Offer Cards */
.offer-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
}

.offer-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.offer-card h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.offer-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.offer-card small {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Menu Cards */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.menu-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.menu-card .card-body {
    padding: 1.5rem;
}

.menu-card .card-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.menu-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.menu-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
}

/* Category Tabs */
.nav-pills .nav-link {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: #007bff;
    color: white;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef;
}

/* Cart Styles */
.cart-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item .item-name {
    font-weight: 600;
    color: #2c3e50;
}

.cart-item .item-price {
    color: #28a745;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .offer-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .offer-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .offer-card h5 {
        font-size: 1rem;
    }
    
    .offer-card p {
        font-size: 0.85rem;
    }
    
    .nav-pills {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-pills .nav-link {
        margin: 0.125rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .menu-card .card-img-top {
        height: 150px;
    }
    
    .menu-card .card-body {
        padding: 1rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
}

/* Animation for menu items */
.menu-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Animation for offer cards */
.offer-card {
    animation: fadeInUp 0.6s ease-out;
}

.offer-card:nth-child(1) { animation-delay: 0.1s; }
.offer-card:nth-child(2) { animation-delay: 0.2s; }
.offer-card:nth-child(3) { animation-delay: 0.3s; }
.offer-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Loading spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner-border {
    color: #007bff;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Cart badge animation */
#cartCount {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

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

/* Item Detail Modal Styles */
.item-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.price-large {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
}

.quantity-controls-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.quantity-btn-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.quantity-btn-large:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: scale(1.05);
}

.quantity-display-large {
    min-width: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2c3e50;
}

.add-to-cart-section {
    margin-top: 2rem;
}

/* Modal animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Responsive adjustments for item detail modal */
@media (max-width: 768px) {
    .item-detail-image {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .price-large {
        font-size: 1.5rem;
    }
    
    .quantity-controls-large {
        gap: 0.5rem;
    }
    
    .quantity-btn-large {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .quantity-display-large {
        min-width: 50px;
        font-size: 1.25rem;
    }
} 