/* Menu Page Specific Styles */

/* Menu Hero */
.menu-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.menu-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.menu-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.menu-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
}

/* Live Status */
.live-status {
    padding: 40px 0;
    background: #f8f9fa;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.status-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-card i {
    font-size: 2rem;
    color: #667eea;
}

.status-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #2c3e50;
}

.status-value {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.status-value.open {
    color: #27ca3f;
}

.status-value.available {
    color: #667eea;
}

.status-value.delivery {
    color: #ff6b35;
}

.status-value.customers {
    color: #764ba2;
}

.status-card small {
    color: #666;
    font-size: 0.85rem;
}

/* Menu Section */
.menu-section {
    padding: 60px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.menu-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.menu-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
    filter: brightness(1.1) contrast(1.1);
}

.menu-item:hover .menu-image img {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
}

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.stock-status {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stock-status.available {
    background: #27ca3f;
    color: white;
}

.stock-status.limited {
    background: #ff9500;
    color: white;
}

.stock-status.out-of-stock {
    background: #ff4757;
    color: white;
}

.menu-content {
    padding: 2rem;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.menu-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.rating {
    text-align: right;
    font-size: 0.9rem;
}

.stars {
    color: #ffd700;
    display: block;
    margin-bottom: 0.25rem;
}

.rating-text {
    color: #666;
    font-size: 0.8rem;
}

.menu-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.menu-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #667eea;
}

.detail-item i {
    font-size: 0.8rem;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #667eea;
}

.order-btn {
    padding: 12px 24px;
    font-size: 1rem;
    min-width: 150px;
}

.order-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Table Availability */
.table-availability {
    padding: 60px 0;
    background: #f8f9fa;
}

.table-availability h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.table-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid transparent;
}

.table-card.available {
    border-left-color: #27ca3f;
}

.table-card.occupied {
    border-left-color: #ff4757;
    opacity: 0.8;
}

.table-card.reserved {
    border-left-color: #ff9500;
    opacity: 0.8;
}

.table-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.table-info {
    flex: 1;
}

.table-info h4 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
}

.table-info p {
    margin: 0 0 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.table-status {
    font-size: 0.8rem;
    font-weight: 600;
}

.table-card.available .table-status {
    color: #27ca3f;
}

.table-card.occupied .table-status {
    color: #ff4757;
}

.table-card.reserved .table-status {
    color: #ff9500;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.available {
    background: #27ca3f;
}

.legend-dot.occupied {
    background: #ff4757;
}

.legend-dot.reserved {
    background: #ff9500;
}

/* Cart Floating */
.cart-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
}

.cart-header {
    padding: 1rem;
    background: #667eea;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h4 {
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.cart-items {
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
    flex: 1;
}

.item-quantity {
    margin: 0 1rem;
    color: #666;
}

.item-price {
    font-weight: 600;
    color: #667eea;
}

.cart-total {
    padding: 1rem;
    border-top: 2px solid #eee;
    text-align: center;
    font-size: 1.1rem;
}

.checkout-btn {
    width: 100%;
    margin: 0 1rem 1rem 1rem;
    width: calc(100% - 2rem);
}

/* Active Navigation */
.nav-link.active {
    color: #667eea;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-hero h1 {
        font-size: 2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .menu-image {
        height: 250px;
    }
    
    .menu-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .status-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .table-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-floating {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    .legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .menu-hero {
        padding: 100px 0 40px;
    }
    
    .menu-item {
        margin: 0;
        border-radius: 12px;
    }
    
    .menu-image {
        height: 220px;
    }
    
    .menu-content {
        padding: 1.5rem;
    }
    
    .menu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .menu-header h3 {
        font-size: 1.3rem;
    }
    
    .rating {
        text-align: left;
    }
    
    .menu-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .menu-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .order-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Menu Category Filter Animation */
.menu-item.hidden {
    display: none;
}

.menu-item.show {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}