﻿/* Tập tin: WebCafebookApi/wwwroot/css/TrangChuView.css */

/* --- 1. BANNER & HERO SECTION --- */
.home-hero-section {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 1.5rem;
    text-align: center;
}

.home-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.home-hero-subtitle {
    font-size: 1.15rem;
    max-width: 800px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --- 2. TIÊU ĐỀ CÁC MỤC --- */
.home-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cf-dark-brown);
    font-weight: 700;
    font-size: 1.75rem;
    border-bottom: 2px solid var(--cf-orange) !important;
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

    .home-section-header .material-symbols-outlined {
        font-size: 2rem;
        margin-right: 10px;
        color: var(--cf-orange);
    }

.section-header-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cf-dark-brown);
    font-weight: 700;
    opacity: 0.8;
    border-bottom: 1px solid rgba(111, 78, 55, 0.2);
}

    .section-header-alt .material-symbols-outlined {
        font-size: 2.2rem;
        margin: 0 0.5rem;
        color: var(--cf-orange);
        font-variation-settings: 'FILL' 1;
    }

/* --- 3. KHUYẾN MÃI --- */
.promotion-container {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(111, 78, 55, 0.1);
}

.promotion-item {
    border-bottom: 1px dashed var(--cf-gray);
    padding: 1.25rem 0;
}

    .promotion-item:last-child {
        border-bottom: none;
    }

.promo-title {
    color: var(--cf-orange);
    font-weight: 700;
    font-size: 1.25rem;
}

.promo-description {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--cf-text);
}

.promo-condition {
    font-size: 0.9rem;
    color: var(--cf-text);
    opacity: 0.7;
    margin-bottom: 0;
}

/* --- 4. THẺ CARD (MÓN ĂN & SÁCH) --- */
.home-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

    .home-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.home-card-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.home-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-card:hover .home-card-img {
    transform: scale(1.1);
}

/* --- 5. TÌM KHÔNG GIAN --- */
.home-info-box {
    background-color: var(--cf-white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px var(--cf-shadow);
}

@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid var(--bs-border-color) !important;
    }
}

/* ==================================================
   RESPONSIVE (MOBILE & TABLET)
================================================== */
@media (max-width: 767.98px) {
    .home-hero-section {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .home-hero-title {
        font-size: 2rem;
    }

    .home-hero-subtitle {
        font-size: 1rem;
    }

    /* Ép 2 nút trên banner full chiều ngang trên mobile */
    .home-hero-btns {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

        .home-hero-btns .btn {
            width: 100%;
            margin: 0 !important;
        }

    .home-section-header {
        font-size: 1.4rem;
    }

    .home-card-img-wrapper {
        aspect-ratio: 1/1;
    }
    /* Ảnh vuông trên điện thoại */
    .promotion-container {
        padding: 1rem;
    }

    .home-info-box {
        padding: 1.5rem;
    }

    .border-start-md {
        border-left: none !important;
        border-top: 1px dashed var(--cf-gray);
        margin-top: 2rem;
        padding-top: 2rem;
    }
}
