/* Garden Indian Restaurant - Takeaway Menu Stylesheet
   Author: [Your Name]
   Student ID: [Your ID]
*/

/* Takeaway Page Specific Styles */

/* Hero Section */
.takeaway-hero {
    position: relative;
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),
                url('../images/TheGarden2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: var(--space-xxl);
    overflow: hidden;
}

.takeaway-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.4)
    );
    z-index: 1;
}

.takeaway-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--space-xl);
    animation: fadeInUp 1s ease-out;
}

.takeaway-hero h2 {
    font-size: 4rem;
    color: white;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.takeaway-hero .hero-subtitle {
    font-size: 1.8rem;
    color: var(--neutral-200);
    margin-bottom: var(--space-lg);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 300;
}

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

/* Mobile Menu Improvements */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        background-color: var(--neutral-100);
        border-radius: var(--radius-sm);
        padding: var(--space-xs);
    }

    .mobile-menu-toggle .bar {
        background-color: var(--primary);
        height: 2px;
        margin: 5px 0;
    }

    .mobile-menu-toggle:hover .bar {
        background-color: var(--primary-dark);
    }

    /* Adjust hero section for mobile */
    .takeaway-hero {
        height: 400px;
        background-attachment: scroll;
    }

    .takeaway-hero h2 {
        font-size: 2.8rem;
    }

    .takeaway-hero .hero-subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .takeaway-hero {
        height: 350px;
    }

    .takeaway-hero h2 {
        font-size: 2.2rem;
    }

    .takeaway-hero .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Takeaway Menu Section */
.takeaway-section {
    padding: var(--space-xl) 0;
}

.takeaway-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .takeaway-container {
        grid-template-columns: 1fr;
    }
}

/* Menu Filtering */
.menu-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.filter-btn {
    background-color: var(--neutral-200);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.filter-btn:hover {
    background-color: var(--primary-light);
    color: white;
}

.filter-btn.active {
    background-color: var(--primary);
    color: white;
}

/* Menu Categories */
.menu-category {
    margin-bottom: var(--space-xl);
}

.category-title {
    color: var(--primary);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

/* Menu Item */
.menu-item {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.menu-item-image {
    height: 200px;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.05);
}

.menu-item-details {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-item-details h4 {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.menu-item-details p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Diet Tags */
.diet-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    margin-left: var(--space-xs);
}

.vegetarian {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Spice Level */
.spice-level {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    margin-left: var(--space-xs);
}

.mild {
    background-color: #e3f2fd;
    color: #1976d2;
}

.medium {
    background-color: #fff8e1;
    color: #f57f17;
}

.hot {
    background-color: #ffebee;
    color: #c62828;
}

/* Quantity Controls */
.menu-item-controls {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--neutral-200);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--primary-light);
    color: white;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
}

.add-to-order-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-to-order-btn:hover {
    background-color: var(--primary-dark);
}

/* Order Summary */
.order-side {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.order-summary, 
.customer-details {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.order-summary h3, 
.customer-details h3 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--neutral-300);
}

#order-items-container {
    margin-bottom: var(--space-lg);
    max-height: 300px;
    overflow-y: auto;
    padding-right: var(--space-sm);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--neutral-200);
}

.order-item-name {
    flex: 1;
}

.order-item-price {
    font-weight: bold;
    margin: 0 var(--space-md);
}

.order-item-remove {
    background: none;
    border: none;
    color: var(--error);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.order-item-remove:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

.order-total {
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 2px solid var(--neutral-300);
}

.empty-order-message {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: var(--space-md) 0;
}

.order-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* Customer Details Form */
.customer-details {
    margin-top: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-row {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group.half {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(209, 60, 60, 0.1);
}

.error {
    border-color: var(--error) !important;
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
    display: block;
}

.form-message {
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
}

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

/* Focus Visible */
.focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-filters {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .menu-items {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .order-actions,
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .menu-item-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .menu-item-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .add-to-order-btn {
        flex-grow: 1;
        text-align: center;
    }
} 