﻿
.roma-logo-background {
    background-color: #fdfefd;
}

.live-update-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 15px;
    background-color: rgba(40, 167, 69, 0.05); /* یک هاله بسیار کمرنگ پشت کل متن */
    border-radius: 50px;
    direction: rtl;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* لایه نبض‌زن */
    .dot::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #28a745;
        border-radius: 50%;
        animation: pulse-animation 2s infinite ease-out;
    }

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3.5); /* بزرگتر شدن هاله */
        opacity: 0;
    }
}

.update-text {
    font-size: 12px;
    color: #444;
    font-weight: 400;
}

.page-loading {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff3d7;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    .page-loading.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.page-loading-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 18px;
    text-align: center;
    color: #5b2817;
}

.page-loading-logo {
    width: min(280px, 65vw);
    height: auto;
    object-fit: contain;
    animation: logo-fade-in 0.8s ease both;
}

.page-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(91, 40, 23, 0.2);
    border-top-color: #5b2817;
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

.page-loading-content span {
    font-size: 14px;
    font-family: inherit;
}

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes logo-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}



/* ========================================
       Mobile App Download Modal
    ======================================== */

.app-download-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: flex-end;
    justify-content: center;
    direction: rtl;
}

    .app-download-modal.show {
        display: flex;
    }

.app-download-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.app-download-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    padding: 28px 22px 24px;
    border-radius: 24px 24px 0 0;
    background: gray box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: appModalSlideUp 0.35s ease-out;
}

.app-download-close {
    position: absolute;
    top: 10px;
    left: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1e6d1;
    color: #5b2817;
    font-size: 28px;
    line-height: 30px;
    cursor: pointer;
}

.app-download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: #5b2817;
    color: #fff8e9;
    font-size: 34px;
    box-shadow: 0 8px 18px rgba(91, 40, 23, 0.25);
}

.app-download-content h3 {
    margin: 0 0 10px;
    color: #5b2817;
    font-size: 19px;
    font-weight: 700;
}

.app-download-content p {
    margin: 0 auto 20px;
    max-width: 330px;
    color: #715647;
    font-size: 14px;
    line-height: 2;
}

.app-download-actions {
    display: flex;
    gap: 10px;
}

.btn-download-app,
.btn-download-later {
    flex: 1;
    min-height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-download-app {
    border: 1px solid #5b2817;
    background: #5b2817;
    color: #fff;
}

    .btn-download-app:hover {
        background: #74351f;
        color: #fff;
    }

.btn-download-later {
    border: 1px solid #d9c1a1;
    background: transparent;
    color: #5b2817;
}

/* در دسکتاپ نمایش داده نشود */
@media (min-width: 768px) {
    .app-download-modal.show {
        display: none !important;
    }
}

@keyframes appModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.footer-app-download {
    margin: 18px 0;
    text-align: center;
}

    .footer-app-download a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 9px;
        color: black !important;
        text-decoration: none !important;
        transition: 0.25s ease;
    }

        .footer-app-download a:hover {
            background: #fff;
            color: #5b2817 !important;
        }




.mobile-menu-toggle {
    display: none; /* در دسکتاپ مخفی */
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
}

    .mobile-menu-toggle span {
        display: block;
        width: 26px;
        height: 3px;
        background: #333;
        border-radius: 3px;
        margin: 4px 0;
    }

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}




.nav-btn {
    display: none !important;
}






/* تنظیم چیدمان کلی هدر */
.header-main-wrapper {
    padding: 10px 15px;
}

.header-search-area {
    flex: 1;
    max-width: 600px;
    margin: 0 15px;
}

/* آیکون منوی موبایل */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
}

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background: #333;
        border-radius: 3px;
        margin: 3px 0;
    }

.mobile-profile-only {
    display: none;
}

.mobile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    padding: 2px;
    background: #fff;
}

/* --- تنظیمات مخصوص موبایل و تبلت --- */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .desktop-account-box {
        display: none !important; /* باکس متنی بزرگ مخفی می‌شود */
    }

    .mobile-profile-only {
        display: block !important; /* فقط آیکون کوچک نمایش می‌یابد */
    }
    /* جستجو به خط بعد می‌رود و تمام‌عرض می‌شود */
    .header-search-area {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
        margin: 10px 0 0 0;
    }

    .header-logo-area {
        order: 1;
    }

    .header-account-area {
        order: 2;
    }
}




/* استایل دراپ‌دان حساب کاربری برای دسکتاپ و موبایل */
.desktop-account-box .nav-account,
.mobile-profile-only .mobile-account-wrap {
    position: relative;
}

/* منو در حالت عادی مخفی است */
.desktop-account-box .dropdown-menu,
.mobile-account-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    margin: 0;
    z-index: 1050;
    list-style: none;
    text-align: right;
}

    /* وقتی کلاس show یا open گرفت نمایش داده شود */
    .desktop-account-box .dropdown-menu.show,
    .mobile-account-menu.show {
        display: block !important;
    }

    .desktop-account-box .dropdown-menu a,
    .mobile-account-menu a {
        display: block;
        padding: 9px 16px;
        color: #333;
        font-size: 14px;
        text-decoration: none;
        transition: background 0.15s;
        white-space: nowrap;
    }

        .desktop-account-box .dropdown-menu a:hover,
        .mobile-account-menu a:hover {
            background: #f5f5f5;
            color: #00a5a5;
        }


