/* Delivery & Takeout Styles */

/* Hero Section */
.delivery-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.delivery-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.delivery-hero .container {
    position: relative;
    z-index: 2;
}

/* Order Type Cards */
.order-type-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.order-type-card .card-body {
    padding: 2rem;
}

.order-type-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Menu Items */
.menu-item-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.menu-item-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #007bff;
}

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

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

.cart-quantity-input {
    width: 70px;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.order-summary .total {
    font-size: 1.25rem;
    font-weight: bold;
    color: #007bff;
}

/* Checkout Form */
.checkout-form .form-label {
    font-weight: 600;
    color: #495057;
}

.checkout-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.checkout-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Order Type Selection */
.order-type-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.order-type-option {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.order-type-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.order-type-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.order-type-option input[type="radio"] {
    display: none;
}

/* Confirmation Page */
.confirmation-hero {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.confirmation-hero i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

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

.order-details-card .card-header {
    background: #007bff;
    color: white;
    border: none;
}

/* Status Badges */
.status-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-preparing {
    background-color: #d4edda;
    color: #155724;
}

.status-ready {
    background-color: #cce5ff;
    color: #004085;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .delivery-hero {
        min-height: 50vh;
        text-align: center;
    }
    
    .delivery-hero h1 {
        font-size: 2rem;
    }
    
    .order-type-selection {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item .d-flex {
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animations */
.success-animation {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Feature Icons */
.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #007bff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
}
