/**
 * Footer Styles - Complete
 * استایل کامل فوتر با گرادیانت زیبا
 */

/* ==========================================
   FOOTER با گرادیانت محو
========================================== */
/* === Import Yekan Font === */
@font-face {
    font-family: 'Yekan';
    src: url('/wp-content/themes/flexmoviez-theme/assets/fonts/iranyekan/YekanBakh-Medium.woff2') format('woff2'),
         url('/wp-content/themes/flexmoviez-theme/assets/fonts/iranyekan/YekanBakh-Medium.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan';
    src: url('/wp-content/themes/flexmoviez-theme/assets/fonts/iranyekan/YekanBakh-Bold.woff2') format('woff2'),
         url('/wp-content/themes/flexmoviez-theme/assets/fonts/iranyekan/YekanBakh-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.site-footer {
    background: linear-gradient(180deg, 
        #101314 0%,      /* رنگ بدنه جدید */
        #0d0f10 25%,     /* کمی تیره‌تر */
        #090b0c 50%,     /* تیره‌تر */
        #050607 75%,     /* خیلی تیره */
        #000000 100%     /* مشکی */
    );
    color: #94a3b8;
    padding: 20px 0 30px;
    margin-top: 10px;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    position: relative;
}

/* خط نور کم‌رنگ بالای فوتر */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(251, 191, 36, 0.3) 50%, 
        transparent 100%
    );
}

.footer-content-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* ==========================================
   MENU HORIZONTAL
========================================== */

/* منوی فوتر با دات بین آیتم‌ها */
.footer-menu-horizontal {
    width: 100%;
}

.footer-nav-horizontal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav-horizontal li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* اضافه کردن دات بین آیتم‌ها (به جز آخرین آیتم) */
.footer-nav-horizontal li:not(:last-child)::after {
    content: "•";
    color: #fbbf24;
    font-size: 14px;
    margin-right: 20px;
    margin-left: 20px;
    opacity: 0.7;
}

/* تنظیم فاصله آیتم‌ها */
.footer-nav-horizontal a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Yekan', Tahoma, Arial, sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

/* خط زرد زیر لینک در هاور */
.footer-nav-horizontal a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.footer-nav-horizontal a:hover {
    color: #fbbf24;
}

.footer-nav-horizontal a:hover::after {
    width: 100%;
}

/* موبایل */
@media (max-width: 768px) {
    .footer-nav-horizontal li:not(:last-child)::after {
        margin-right: 12px;
        margin-left: 12px;
    }
    
    .footer-nav-horizontal {
        gap: 0;
    }
}


/* =============================================

/* باکس افقی */
.apps-download-box-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 19, 20, 0.7);  /* #101314 با 70% */
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 20px 35px;
    margin: 30px auto;
    border: 1px solid rgba(251, 191, 36, 0.15);
    font-family: 'Yekan', Tahoma, Arial, sans-serif;
    direction: rtl;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1600px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.apps-text-side {
    flex: 1;
}

.apps-header-with-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.apps-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
}

.apps-text-group {
    display: flex;
    flex-direction: column;
}

.apps-title {
    font-size: 20px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 5px;
    font-family: 'Yekan', Tahoma, Arial, sans-serif;
}

.apps-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    font-family: 'Yekan', Tahoma, Arial, sans-serif;
}

.apps-icons-side {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 75px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-icon-link i {
    font-size: 24px;
}

.app-icon-link span {
    font-size: 11px;
    color: #cbd5e1;
    font-weight: 500;
    font-family: 'Yekan', Tahoma, Arial, sans-serif;
}

.app-icon-link:hover {
    transform: translateY(-3px);
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
}

.app-icon-link:hover span {
    color: #fbbf24;
}

.app-icon-link.android i { color: #3ddc84; }
.app-icon-link.windows i { color: #0078d4; }
.app-icon-link.mac i { color: #999; }
.app-icon-link.linux i { color: #fcc624; }
.app-icon-link.ios i { color: #fff; }
.app-icon-link.tv i { color: #fbbf24; }

/* موبایل */
@media (max-width: 992px) {
    .apps-download-box-horizontal {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .apps-header-with-logo {
        justify-content: center;
        text-align: center;
    }
    
    .apps-text-group {
        align-items: center;
    }
    
    .apps-icons-side {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .apps-download-box-horizontal {
        width: calc(100% - 20px);
        padding: 15px;
    }
    
    .apps-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .apps-title {
        font-size: 16px;
    }
    
    .apps-desc {
        font-size: 11px;
    }
    
    .app-icon-link {
        padding: 6px 10px;
        min-width: 65px;
    }
    
    .app-icon-link i {
        font-size: 20px;
    }
    
    .app-icon-link span {
        font-size: 10px;
    }
}

/* ==========================================
   NOTICE BOX (باکس زرد)
========================================== */

.footer-notice-box {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    padding: 16px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.25);
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* افکت نور */
.footer-notice-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.footer-notice-box p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ==========================================
   SOCIAL ICONS (افقی)
========================================== */

/* شبکه‌های اجتماعی - افقی */
.footer-social-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-social-icon span {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    font-family: 'Yekan', Tahoma, Arial, sans-serif;
}

/* رنگ‌های هر شبکه */
.footer-social-icon.telegram:hover {
    background: rgba(0, 136, 204, 0.15);
    border-color: #0088cc;
}
.footer-social-icon.telegram:hover svg,
.footer-social-icon.telegram:hover span {
    color: #0088cc;
}

.footer-social-icon.instagram:hover {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(252, 175, 69, 0.15));
    border-color: #e1306c;
}
.footer-social-icon.instagram:hover svg,
.footer-social-icon.instagram:hover span {
    color: #e1306c;
}

.footer-social-icon.twitter:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: #ffffff;
}
.footer-social-icon.twitter:hover svg,
.footer-social-icon.twitter:hover span {
    color: #ffffff;
}

/* موبایل */
@media (max-width: 576px) {
    .footer-social-horizontal {
        gap: 12px;
    }
    
    .footer-social-icon {
        padding: 6px 14px;
    }
    
    .footer-social-icon span {
        font-size: 12px;
    }
}

/* ==========================================
   COPYRIGHT
========================================== */

.footer-copyright-simple {
    width: 100%;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright-simple p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-family: 'Yekan', Tahoma, Arial, sans-serif;
}

/* ==========================================
   دکمه بازگشت به بالا
========================================== */

.scroll-to-top {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.6);
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION
========================================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #fbbf24;
    transition: width 0.3s ease;
    border-radius: 0 0 3px 3px;
}

.mobile-nav-item.active,
.mobile-nav-item:active {
    color: #fbbf24;
}

.mobile-nav-item.active::before {
    width: 60%;
}

.mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-icon svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* نمایش در موبایل */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* فضای خالی برای Bottom Nav */
    body {
        padding-bottom: 70px;
    }
}

/* ==========================================
   RESPONSIVE - TABLET
========================================== */

@media (max-width: 1024px) {
    .site-footer {
        padding: 50px 0 25px;
        margin-top: 60px;
    }
    
    .footer-content-wrapper {
        padding: 0 30px;
    }
    
    .footer-nav-horizontal {
        gap: 30px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
========================================== */

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 50px;
    }
    
    .footer-content-wrapper {
        padding: 0 20px;
        gap: 25px;
    }
    
    .footer-copyright-simple p {
        font-size: 12px;
    }
    
    .scroll-to-top {
        bottom: 80px;
        left: 20px;
        width: 48px;
        height: 48px;
    }
}

