﻿/* =====================================================
   CARDS.CSS - Card Components
   ===================================================== */

/* ==================== BOOKING CARDS ==================== */
.booking-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
    border: 1px solid #f0e0df;
}

    .booking-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

.booking-card-header {
    background: linear-gradient(90deg, #fff0f0, #fff8f8);
    border-bottom: 1px solid #f5dada;
    padding: 22px 25px;
}

    .booking-card-header h2,
    .booking-card-header h3 {
        margin: 0;
        color: #c62828;
        font-weight: 700;
    }

.booking-card-content {
    padding: 28px;
    background: #fff;
    border-radius: 0 0 18px 18px;
}

/* ==================== DISH/MENU CARDS ==================== */
.dish-card,
.menu-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .dish-card:hover,
    .menu-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

.dish-image,
.menu-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .dish-image img,
    .menu-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }

.dish-card:hover .dish-image img,
.menu-card:hover .menu-card-image img {
    transform: scale(1.1);
}

.dish-content,
.menu-card-content {
    padding: 20px;
}

.dish-category,
.menu-category {
    display: inline-block;
    padding: 4px 12px;
    background: #fff3e0;
    color: #ff6b35;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.dish-content h3,
.menu-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.dish-description,
.menu-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.dish-rating,
.menu-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    color: #ffa000;
    font-size: 0.9rem;
}

.dish-footer,
.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-price,
.menu-price {
    color: #d32f2f;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Disabled State */
.menu-card-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ==================== PROMO CARDS ==================== */
.promo-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #ffcc80;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

    .promo-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(211, 47, 47, 0.2);
    }

    .promo-card h3 {
        color: #ff6b35;
        font-size: 1.35rem;
        margin-bottom: 12px;
        padding-right: 80px;
        line-height: 1.3;
    }

    .promo-card p {
        color: #666;
        margin-bottom: 10px;
        line-height: 1.6;
        font-size: 0.95rem;
    }

/* Horizontal Promo Cards */
.promo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: row;
}

    .promo-card:hover {
        transform: translateX(5px);
        box-shadow: 0 12px 30px rgba(211,47,47,0.2);
        border-color: #d32f2f;
    }

    .promo-card.expired {
        opacity: 0.65;
    }

        .promo-card.expired:hover {
            transform: none;
            box-shadow: 0 6px 20px rgba(0,0,0,0.08);
        }

.promo-card-header {
    flex-shrink: 0;
    min-width: 300px;
    background: linear-gradient(135deg, #fff4f4, #fffafa);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promo-card-body {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==================== FEATURE CARDS ==================== */
.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.feature-card h3 {
    color: #d32f2f;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== ACTION CARDS ==================== */
.action-card {
    display: block;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .action-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: #d32f2f;
    }

.action-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.action-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.action-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.logout-card:hover {
    border-color: #f44336;
}

/* ==================== STAT CARDS ==================== */
.stat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    }

    .stat-card h3 {
        font-size: 1rem;
        color: #555;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .stat-card .value {
        font-size: 1.6rem;
        font-weight: 700;
        color: #d32f2f;
    }

/* ==================== INFO CARDS ==================== */
.info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
}

    .info-card-header h2 {
        margin: 0;
        font-size: 1.4rem;
        color: #333;
    }

.info-card-body {
    padding: 30px;
}

/* ==================== MEMBERSHIP CARDS ==================== */
.membership-card {
    max-width: 500px;
    background: linear-gradient(135deg, #ffb300, #ff7043);
    border-radius: 16px;
    color: #fff;
    padding: 25px;
    margin: -50px auto 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

    .membership-card::before {
        content: "";
        position: absolute;
        top: -20px;
        right: -20px;
        width: 120px;
        height: 120px;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
    }

    .membership-card.rank-Dong {
        background: linear-gradient(135deg, #8d6e63, #5d4037);
    }

    .membership-card.rank-Bac {
        background: linear-gradient(135deg, #bdbdbd, #757575);
    }

    .membership-card.rank-Vang {
        background: linear-gradient(135deg, #ffd54f, #ffb300);
    }

    .membership-card.rank-BachKim {
        background: linear-gradient(135deg, #b0bec5, #78909c);
    }

    .membership-card.rank-KimCuong {
        background: linear-gradient(135deg, #4fc3f7, #0277bd);
    }

.membership-card-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    margin-bottom: 25px;
}

/* ==================== ORDER CARDS ==================== */
.order-card {
    background: white;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .order-card:hover {
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        transform: translateY(-3px);
    }

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5, #fff);
    border-bottom: 1px solid #f5f5f5;
}

.order-body {
    padding: 20px;
}

/* ==================== CONTACT CARDS ==================== */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ==================== BENEFITS CARD ==================== */
.benefits-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

    .benefits-card h3 {
        margin-top: 0;
        color: #d32f2f;
        font-size: 1.2rem;
    }

/* ==================== FAVORITE CARDS ==================== */
.favorite-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

    .favorite-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

.favorite-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

    .favorite-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.favorite-card-content {
    padding: 20px;
}

.favorite-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* ==================== REVIEW CARDS ==================== */
.review-card {
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s;
}

    .review-card:hover {
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* ==================== TABLE CARDS ==================== */
.table-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

    .table-card:hover {
        border-color: #ff9800;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .table-card.selected {
        border-color: #d32f2f;
        background: #fff5f5;
        box-shadow: 0 5px 20px rgba(211,47,47,0.2);
    }

/* ==================== CHECKOUT CARDS ==================== */
.checkout-cart {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.checkout-summary {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

/* ==================== CART SUMMARY PANEL ==================== */
.cart-summary-panel {
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

    .cart-summary-panel h3 {
        text-align: center;
        color: #d32f2f;
        font-weight: 700;
        margin-bottom: 15px;
    }

/* ==================== HISTORY CARDS ==================== */
.history-item {
    background: #fafafa;
    border-radius: 10px;
    padding: 15px 20px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

    .history-item:hover {
        transform: scale(1.02);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

/* ==================== RANK BENEFITS ==================== */
.rank-benefits {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

    .rank-benefits h3 {
        text-align: center;
        padding: 20px;
        font-size: 1.4rem;
        color: #d32f2f;
        border-bottom: 1px solid #eee;
        background: #fff7f5;
        margin: 0;
    }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .promo-card {
        flex-direction: column;
    }

    .promo-card-header {
        min-width: unset;
    }

    .promo-card h3 {
        font-size: 1.3rem;
        padding-right: 70px;
    }

    .membership-card {
        margin: -40px 20px 30px;
    }

    .order-header {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .promo-card {
        padding: 25px;
        min-height: 160px;
    }

        .promo-card h3 {
            font-size: 1.2rem;
            padding-right: 65px;
        }

    .membership-card {
        padding: 20px;
    }

        .membership-card h3 {
            font-size: 1.1rem;
        }
}
