/* ================================
    Footer - Full Responsive & Modern
================================= */

/* رنگ‌ها */
:root {
    --primary-green: #0f5132;
    --secondary-gold: #FFD700; /* استفاده شده در دکمه شناور */
    --white: #ffffff;
}

/* =================================
    Reset box-sizing
================================= */
.main-footer, .main-footer * {
    box-sizing: border-box;
}

/* Main Footer */
.main-footer {
    position: relative;
    padding-top: 60px;
    padding-bottom: 0;
    color: var(--white);
    background: linear-gradient(135deg, #0f5132 0%, #144d39 50%, #0f5132 100%);
}

/* پس‌زمینه مدرن */
.main-footer::before {
    content: "";
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.05) 0px,
            rgba(255,255,255,0.05) 2px,
            transparent 2px,
            transparent 20px
        ),
        radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 25px 25px, 20px 20px;
    pointer-events: none;
    z-index:0;
}

/* ستون‌ها و wrapper */
.footer-widgets, .footer-bottom {
    position: relative;
    z-index:1;
}

.footer-widgets {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}

/* ستون‌ها */
.footer-col {
    flex: 1;
    min-width: 220px;
    transition: transform 0.3s ease;
}

.footer-col:hover {
    transform: translateY(-5px);
}

/* عنوان ستون‌ها */
.footer-title {
    color: var(--secondary-gold);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content:"";
    display:block;
    width:40px;
    height:2px;
    margin-top:8px;
    background-color: var(--secondary-gold);
}

/* لینک‌ها و تماس */
.footer-menu, .contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li, .contact-item {
    margin-bottom: 10px;
}

.footer-menu a,
.contact-item span,
.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover,
.contact-item a:hover {
    color: var(--secondary-gold);
}

/* تماس */
.contact-item {
    display: flex;
    align-items: center;
}

.contact-item i {
    margin-left: 8px; /* اصلاح شده برای RTL */
}

/* اینماد */
.footer-enamad {
    display: flex;
    align-items: center;
}

.footer-enamad .enamad-logo {
    max-height: 150px;
    transition: transform 0.3s ease;
}

.footer-enamad .enamad-logo:hover {
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0,0,0,0.3);
    padding: 15px 0;
    margin-top: 40px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--white);
}

.developer a {
    color: var(--secondary-gold);
    text-decoration: none;
}

.developer a:hover {
    text-decoration: underline;
}

/* =====================================
    Responsive - موبایل
===================================== */
@media (max-width: 900px) {
    .footer-widgets {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        width: 100%;
        overflow: hidden; 
    }

    .footer-about {
        grid-column: span 2;
    }

    .footer-links,
    .footer-contact,
    .footer-col {
        width: 100%;
        min-width: 0; 
    }
 
    .footer-enamad {
        grid-column: span 2;
        justify-content: center;
        margin-top: 15px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        width: 100%;
    }
}

/* متن جستیفای شده در فوتر */
.footer-widgets p,
.footer-bottom-inner p,
.footer-widgets li {
    text-align: justify;
}


/* ===========================================
    Floating Register Button - دکمه شناور ثبت نام
=========================================== */

/* تعریف انیمیشن تپش و تشعشع نور */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px 0px rgba(255, 195, 18, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px 10px rgba(255, 195, 18, 0.4);
    }
}

#floating-register-btn {
    position: fixed;
    bottom: 25px;
    left: 25px; /* مناسب برای سایت‌های فارسی */
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(45deg, #FFC312, #FFD700); /* استفاده از رنگ طلایی سایت */
    color: #0A3D62; /* استفاده از رنگ آبی اصلی سایت */
    font-family: var(--font-vazir);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(255, 195, 18, 0.5);
    transition: transform 0.3s ease;
    
    /* اعمال انیمیشن */
    animation: pulse-glow 2.5s infinite ease-in-out;
}

#floating-register-btn:hover {
    transform: scale(1.1); /* بزرگنمایی بیشتر در هاور */
    animation-play-state: paused; /* توقف انیمیشن در زمان هاور */
}

.floating-btn-icon {
    font-size: 20px;
    line-height: 1;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    #floating-register-btn {
        width: 60px;
        height: 60px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        bottom: 20px;
        left: 20px;
    }
    
    /* مخفی کردن متن و نمایش فقط آیکون در موبایل */
    .floating-btn-text {
        display: none;
    }

    .floating-btn-icon {
        font-size: 24px;
    }
}