﻿:root {
    --zereshki-color: #b54a57;
    --Black-color: #000000;
    --White-color: #ffffff;
}

body {
    font-family: Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--Black-color);
    color: #f5f1f2;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

header {
    background: linear-gradient(135deg, #14090c, #7E2931);
    color: var(--White-color);
    padding: 25px 100px 25px 20px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(126, 41, 49, 0.45);
    position: relative;
    min-height: 100px;
}

.header-logo {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-left: auto;
}

header h1 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 2.2rem;
    width: auto;
    text-align: center;
}



.category-tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 35px;
    margin: 20px 0 5px;
    padding: 0 20px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

.category-tab {
    flex: 0 0 auto;
    min-width: 75px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
}

    .category-tab img {
        width: 42px;
        height: 42px;
        object-fit: contain;
        display: block;
        transition: transform 0.3s ease;
    }

    .category-tab span {
        color: #ffffff !important;
        font-size: 0.95rem;
        white-space: nowrap;
        transition: color 0.3s ease;
    }

    .category-tab:hover span {
        color: #7E2931 !important;
    }

    .category-tab.active span {
        color: #7E2931 !important;
        font-weight: bold;
    }


main {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

.menu-category {
    background: var(--Black-color);
    margin-bottom: 40px;
    padding: 0;
    border-radius: 16px;
    box-shadow: none;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
    display: none;
    justify-content: flex-start; /* یا space-between */
    border: none;
}

    .menu-category.active {
        display: flex;
    }

    .menu-category h2 {
        color: var(--zereshki-color);
        border-bottom: 2px solid #7E2931;
        padding-bottom: 10px;
        margin-bottom: 18px;
        margin-top: 0px;
        font-size: 1.7rem;
        width: 100%;
    }

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    padding: 20px;
    border-radius: 15px;
    background: var(--Black-color);
    border: 1px solid #7E2931;
    transition: transform 0.3s ease;
    width: calc((100% - 60px) / 3);
    box-sizing: border-box;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    overflow: hidden;
}

.item-details {
    flex-grow: 1; /* تمام فضای خالی باقی‌مانده را پر می‌کند */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-item:hover {
    background: var(--Black-color);
    box-shadow: none;
}

.menu-item:last-child {
    margin-bottom: 0;
}

.item-image-placeholder {
    width: 100%;
    height: 200px;
    background: #1b1114;
    border: 1px solid #7E2931;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}


    .item-image-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.item-details {
    flex-grow: 1;
    width: 100%;
    text-align: center;
}

    .item-details h3 {
        margin: 0 0 6px 0;
        color: var(--White-color);
        font-size: 1.15rem;
    }

    .item-details p {
        margin: 0;
        color: #d6c9cc;
        font-size: 0.95rem;
    }

footer {
    text-align: center;
    padding: 18px;
    background: linear-gradient(135deg, #14090c, #7E2931);
    color: #fff;
    margin-top: 30px;
    border-top: 1px solid rgba(126, 41, 49, 0.45);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header,
footer {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}



@media (max-width: 768px) {
    header {
        position: relative;
        text-align: center;
        padding: 20px 70px;
    }

        header h1 {
            margin: 0;
            text-align: center;
            font-size: 1.6rem;
        }

    .header-logo {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        object-fit: contain;
    }

    .menu-category {
        padding: 16px;
        padding-top: 0px;
        border-radius: 14px;
        display: none;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px 0;
    }

        .menu-category.active {
            display: flex;
        }



        .menu-category h2 {
            font-size: 1.4rem;
            width: 100%;
        }

    .menu-item {
        width: 48%;
        min-height: 280px;
        margin-bottom: 12px;
        padding: 12px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .item-image-placeholder {
        width: 100%;
        height: 130px;
        margin: 0 0 12px 0;
    }




    .item-details h3 {
        font-size: 1.05rem;
    }

    .item-details p {
        font-size: 0.9rem;
    }


    .item-details {
        width: 100%;
        flex-grow: 1;
    }

        .item-details h3,
        .item-details p {
            text-align: center;
        }

    .category-tabs {
        justify-content: flex-start;
        gap: 20px;
        padding: 0 12px;
        margin-top: 15px;
    }

    .category-tab {
        min-width: 65px;
    }

        .category-tab img {
            width: 38px;
            height: 38px;
        }

        .category-tab span {
            font-size: 0.85rem;
        }
}

    .footer-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .footer-column {
        width: 100%;
        min-width: 0;
        text-align: center;
    }


    .footer-social-links {
        align-items: center;
    }

    .footer-btn {
        width: 100%;
        max-width: 280px;
    }

    .map-column {
        flex: none;
        width: 100%;
        text-align: center;
        padding-left: 20px;
    }

    .footer-map-img {
        width: 120px;
        display: block;
        margin: 0 auto;
    }
}


.welcome-wrapper {
    height: 80vh; /* ارتفاع صفحه */
    display: flex;
    align-items: center;
    justify-content: center;
    /* اگر دوست داشتید یک عکس پس‌زمینه کافه هم بگذارید: */
    /* background: url('/App_Themes/cafe-bg.jpg') no-repeat center center; */
    /* background-size: cover; */
}

.content-box {
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* یک لایه تیره شفاف پشت متن */
    padding: 50px;
    border-radius: 15px;
}

#cafe-bordeaux-btn {
    display: inline-block !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 22px !important;
    font-weight: bold !important;
    padding: 15px 35px !important;
    border: 3px solid white !important;
    transition: 0.4s all ease !important;
    border-radius: 50px !important; /* دکمه کپسولی شکل */
}

    #cafe-bordeaux-btn:hover {
        color: #800020 !important; /* متن زرشکی */
        background-color: white !important; /* پس‌زمینه سفید */
        border-color: white !important;
        transform: scale(1.1); /* کمی بزرگ شدن موقع هوور */
    }

.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 20px 20px 20px;
    font-family: Tahoma, 'Segoe UI', Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    border-top: 3px solid #800020;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

    .footer-column h3 {
        font-size: 18px;
        margin-bottom: 20px;
        font-weight: bold;
        border-bottom: 1px solid #333;
        padding-bottom: 10px;
        color: var(--White-color);
    }

    .footer-column p {
        font-size: 14px;
        line-height: 1.8;
        color: #ccc;
    }

.footer-contact-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-contact-link:hover {
        color: #800020;
    }

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-btn {
    display: inline-block;
    padding: 8px 15px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #ffffff;
}

.map-btn {
    background-color: #4285F4;
}

    .map-btn:hover {
        background-color: #357ae8;
    }

.neshan-btn {
    background-color: #00bcd4;
}

    .neshan-btn:hover {
        background-color: #00acc1;
    }

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

    .instagram-btn:hover {
        opacity: 0.9;
    }

.map-column {
    flex: 0 0 auto;
    text-align: right;
}



.footer-map-img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: inline-block;
}

    .footer-map-img:hover {
        transform: scale(1.05);
        border-color: #800020;
    }

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #777;
}



.welcome-wrapper {
    /* ترکیب افکت تاریک‌کننده و تصویر پس‌زمینه برای خوانایی بهتر متن */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('HomeImage.jpg') no-repeat center center;
    background-size: cover; /* پوشش کامل بخش بدون دفرمه شدن عکس */
    min-height: 80vh; /* ۸۰ درصد از ارتفاع کل صفحه مرورگر */
    display: flex;
    align-items: center; /* وسط‌چین کردن عمودی محتوا */
    justify-content: center; /* وسط‌چین کردن افقی محتوا */
    border-radius: 15px; /* گرد کردن گوشه‌های دیو اصلی */
    box-shadow: 0 8px 24px rgba(0,0,0,0.3); /* ایجاد سایه ملایم دور دیو */
    margin: 20px 0;
}

/* باکس وسط صفحه */
.content-box {
    text-align: center;
    padding: 20px;
}

/* استایل دکمه در حالت عادی */
#cafe-bordeaux-btn {
    display: inline-block !important;
    color: white !important;
    text-decoration: none !important; /* حذف خط زیر لینک */
    font-size: 20px !important;
    font-weight: bold !important;
    padding: 12px 35px !important;
    border: 2px solid white !important;
    border-radius: 50px !important; /* دکمه کپسول شکل */
    background-color: transparent !important;
    transition: all 0.3s ease-in-out !important; /* انیمیشن نرم تغییر حالت */
}

    /* افکت هوور دکمه (نگه داشتن موس روی آن) */
    #cafe-bordeaux-btn:hover {
        color: #800020 !important; /* تغییر رنگ متن به زرشکی */
        background-color: white !important; /* پس‌زمینه سفید */
        border-color: white !important; /* سفید ماندن کادر */
        text-decoration: none !important; /* اطمینان از عدم وجود خط زیر نوشته */
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3); /* سایه درخشان سفید دور دکمه */
    }


.item-details h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: bold;
    color: #f5f5f5;
}

.menu-item-price {
    display: inline-block;
    align-self: center;
    margin-bottom: 8px;
    padding: 4px 10px;
    color: #444;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    width: fit-content;
}

.item-details p {
    margin: 0;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    color: #f5f5f5;
}
