/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Outfit:wght@300;400;600;700&display=swap');

/* ===== 整體區塊：背景圖 + 半透明覆蓋（保留 base.html 的背景區段） ===== */
.menu-section {
    position: relative;
    background-image: url('../../images/menu_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10px 0;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    color: #ffffff;
    margin-top: 20px;
}

.menu-section > .container {
    padding-top: 0;
    padding-bottom: 0;
}

.menu-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(110, 110, 80, 0.35);
    pointer-events: none;
    z-index: 1;
}

.menu-section .container {
    z-index: 2;
    position: relative;
}

/* ===== Gemini Glassmorphism Card ===== */
.menu-card {
    background-color: rgba(115, 115, 95, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px 50px 20px 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);

    width: 100%;
    max-width: 620px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- Typography --- */
.card-header-wrapper {
    margin-bottom: 10px;
}

.card-title {
    font-family: 'Outfit', 'Noto Sans TC', 'Microsoft JhengHei', serif;
    font-size: 2.3rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}


/* ===== Menu list & item layout ===== */
.menu-list {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-right: 5px;
    cursor: pointer;
}

.home-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: url('../../images/divider_line.png');    
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
}

/* --- Item interactive styling --- */
.item-wrapper {
    border-radius: 6px;
}

.item-wrapper:hover .item-text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

/* 滑鼠移到 item-content 時，同時觸發 item-text 與 read-more-link 的動畫 */
.item-content:hover .item-text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

.item-content:hover .read-more-link {
    opacity: 1;
}

.item-content:hover .read-more-link span.arrow {
    transform: translateX(6px);
}

.item-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #e1f4fd;
    margin: 0;
    transition: all 0.3s ease;
}

/* --- "Read More" link --- */
.read-more-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.read-more-link span.arrow {
    display: inline-block;
    margin-left: 6px;
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.read-more-link:hover {
    opacity: 1;
}

.read-more-link:hover span.arrow {
    transform: translateX(6px);
}

/* ===== RWD：平板 ===== */
@media (max-width: 991.98px) {
    .menu-section {
        min-height: auto;
        padding: 0px 0;
        height: auto;
    }

    .menu-section > .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .menu-card {
        height: auto;
        overflow-y: hidden;
        padding: 35px 40px;
        margin-bottom: 30px;
        max-width: 580px;
    }
}

/* ===== RWD：手機 ===== */
@media (max-width: 575.98px) {
    .menu-section {
        padding: 0px 0;
    }

    .menu-card {
        height: auto;
        overflow-y: hidden;
        padding: 25px 30px;
        margin-bottom: 20px;
        border-radius: 14px;
    }

    .card-title {
        font-size: 1.9rem;
    }

    .item-text {
        font-size: 1.15rem !important;
    }

    .read-more-link {
        font-size: 0.85rem !important;
    }
}
