/* متغیرهای رنگی برای هماهنگی کامل */
:root {
    --primary-purple: #14012e;
    --accent-gold: #ffb302;
    --light-purple: #bf9dda;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* =========================
   Global Responsive Reset
========================= */

html {
    font-size: 16px;
    /* سایز پایه */
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* مقیاس فونت ریسپانسیو */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14.5px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13.5px;
    }
}


/* اعمال تنظیمات عمومی روی همه عناصر */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* استایل‌های هدر (Navbar) */
.navbar-custom {
    background: rgba(20, 1, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 2px solid var(--accent-gold);
}

.navbar-custom .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition);
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--accent-gold) !important;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
    transform: translateX(50%);
}

.navbar-custom .nav-link:hover::after {
    width: 100%;
}

/* استایل‌های فوتر */
.main-footer {
    background: var(--primary-purple);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.footer-heading {
    color: var(--accent-gold);
    font-weight: 900;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links list-unstyled li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-right: 10px;
}

.social-icons a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-align: center;
    border-radius: 50%;
    margin-left: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-gold);
    color: var(--primary-purple);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
}

.status-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* یا left: 20px بسته به سلیقه شما */
    background: rgba(255, 179, 2, 0.9);
    /* رنگ طلایی با کمی شفافیت */
    backdrop-filter: blur(5px);
    color: #14012e;
    padding: 10px 18px;
    border-radius: 15px;
    border: 1px solid rgba(20, 1, 46, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.8rem;
    line-height: 1.4;
    transition: transform 0.3s ease;
    cursor: default;
}

.status-badge:hover {
    transform: scale(1.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #d63031;
    /* قرمز برای نشان دادن وضعیت در حال تغییر */
    border-radius: 50%;
    position: absolute;
    top: 12px;
    left: 12px;
    animation: pulse-red 2s infinite;
}

.status-badge span {
    font-weight: 900;
    margin-right: 15px;
    /* فضا برای نقطه */
}

.status-badge small {
    opacity: 0.8;
    font-weight: 400;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(214, 48, 49, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(214, 48, 49, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(214, 48, 49, 0);
    }
}

/* در موبایل کمی کوچک‌تر شود */
@media (max-width: 768px) {
    .status-badge {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
    }
}

                /* --- Footer --- */
                footer {
                    background-color: var(--primary-color);
                    color: #fff;
                    padding: 60px 0 20px;
                }
        
                footer a {
                    color: var(--secondary-color);
                    text-decoration: none;
                    transition: color 0.3s;
                }
        
                footer a:hover {
                    color: var(--accent-color);
                }
        
                .social-links a {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 40px;
                    height: 40px;
                    background: rgba(255, 255, 255, 0.1);
                    border-radius: 50%;
                    margin-inline-end: 10px;
                    font-size: 1.2rem;
                }
        
                .social-links a:hover {
                    background: var(--accent-color);
                    color: var(--primary-color);
                }