/**
 * Footer Styles
 * ArzPaya01 Theme
 */

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #17212B 0%, #213364 100%);
    color: #FFFFFF;
    padding: 60px 0 20px 0;
    margin-top: 80px;
    position: relative;
}

.footer-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
    justify-content: space-between;
}

/* Desktop: All columns in one line */
@media (min-width: 1025px) {
    .footer-columns {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        justify-content: space-between;
        max-width: 100%;
        overflow: hidden;
    }
    
    .footer-column {
        flex: 0 0 auto;
        min-width: 0;
    }
    
    /* Logo column - larger */
    .footer-column:first-child.footer-column-large {
        flex: 0 0 250px;
        min-width: 210px;
        max-width: 250px;
    }
    
    /* Regular menu columns */
    .footer-column:not(.footer-column-large) {
        flex: 1 1 100px;
        min-width: 80px;
        max-width: 130px;
    }
    
    /* App download column - larger */
    .footer-column:last-child.footer-column-large {
        flex: 0 0 180px;
        min-width: 160px;
        max-width: 180px;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Footer Logo Column Styles */
.logo-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo svg {
    width: 60px;
    height: 85px;
    flex-shrink: 0;
}

.footer-logo-info label {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFFFF;
    display: block;
    margin-bottom: 5px;
}

.footer-logo-info span {
    font-size: 0.9em;
    color: #E0E0E0;
}

.footer-logo-info strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-social img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-column h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: var(--accent-primary);
    font-weight: 600;
}

.footer-column h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-weight: 500;
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #E0E0E0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-primary);
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: var(--accent-secondary);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #E0E0E0;
    font-size: 0.9em;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-columns {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 25px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .footer-column-large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .footer-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .footer-column-large {
        grid-column: span 2;
    }

    .social-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-column-large {
        grid-column: span 1;
    }

    .site-footer {
        padding: 40px 0 20px 0;
    }
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3D72FE 0%, #2bba43 100%);
}

.site-footer p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.site-footer a {
    color: #3D72FE;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #2bba43;
    text-decoration: underline;
}

/* Remove container padding from footer and apply header-like padding */
.site-footer .container {
    padding: 0;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

/* Apply header-like padding to footer columns container */
.site-footer .footer-columns {
    padding: 0 40px;
}

/* Mobile padding similar to mobile header */
@media (max-width: 768px) {
    .site-footer .footer-columns {
        padding: 0 20px;
    }
}

.logo-column p{
    text-align: right;
}

/* Footer Menu List Styles */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 8px;
}

.footer-menu-list li a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

.footer-menu-list li a:hover {
    color: var(--accent-primary);
}

/* Fallback ul styles (when no menu is assigned) */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

.footer-column ul li a:hover {
    color: var(--accent-primary);
    text-decoration: none;
}

/* Footer Accordion Styles for Mobile */
.footer-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.accordion-toggle {
    color: var(--accent-primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none; /* Hidden by default on desktop */
    flex-shrink: 0;
}

.footer-accordion-content {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop - Normal behavior */
@media (min-width: 769px) {
    .footer-accordion-header {
        cursor: default;
    }
    
    .accordion-toggle {
        display: none !important;
    }
    
    .footer-accordion-content {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
    }
}

/* Mobile - Accordion behavior */
@media (max-width: 768px) {
    .accordion-toggle {
        display: block;
    }
    
    .footer-accordion-header:hover {
        color: var(--accent-primary);
    }
    
    .footer-accordion-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        transform: translateY(-5px);
    }
    
    .footer-accordion-content.active {
        max-height: 400px;
        opacity: 1;
        padding-top: 15px;
        padding-bottom: 5px;
        margin-top: 10px;
        transform: translateY(0);
    }
    
    /* Rotate arrow when accordion is active */
    .footer-accordion-content.active + .footer-accordion-header .accordion-toggle,
    .footer-accordion-header:has(+ .footer-accordion-content.active) .accordion-toggle {
        transform: rotate(180deg);
    }
    
    .footer-menu-list li a,
    .footer-column ul li a {
        font-size: 0.85em;
    }
    
    /* Mobile Footer Social Styling */
    .site-footer .footer-social {
        margin-top: 15px !important; /* کاهش فاصله از بالا */
        margin-bottom: 30px !important; /* افزایش فاصله تا پایین */
        padding-bottom: 25px !important; /* فاصله اضافی برای جدا کردن از آکاردئون ها */
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important; /* حذف gap برای استفاده کامل از فضا */
    }
    
    /* Mobile App Download Section - Regular Mobile */
    .footer-column-large h3,
    .footer-column-large .app-download p,
    .footer-column-large .qrcode-wrapper {
        display: none !important; /* مخفی کردن عنوان، QR و متن در موبایل */
    }
    
    .footer-column-large .app-download-btn {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 25px 0 !important;
        padding: 18px 24px !important;
        font-size: 17px !important;
        border-radius: 14px !important;
        justify-content: center !important;
        gap: 14px !important;
    }
    
    .footer-column-large .app-download-btn .app-download-text {
        font-size: 17px !important;
        font-weight: 600 !important;
    }
    
    .footer-column-large .app-download-btn svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .footer-column-large .app-store-buttons {
        justify-content: center !important;
        gap: 25px !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {

    .footer-menu-list li,
    .footer-column ul li {
        margin-bottom: 6px;
    }

    .footer-menu-list li a,
    .footer-column ul li a {
        font-size: 0.8em;
    }
    
    /* Mobile Footer Social - Extra Small Screens */
    .site-footer .footer-social {
        margin-top: 12px !important;
        margin-bottom: 25px !important;
        padding-bottom: 20px !important;
    }
    
    /* Mobile App Download Section */
    .footer-column-large h3,
    .footer-column-large .app-download p,
    .footer-column-large .qrcode-wrapper {
        display: none !important; /* مخفی کردن عنوان، QR و متن در موبایل */
    }
    
    .footer-column-large .app-download-btn {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 20px 0 !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    
    .footer-column-large .app-download-btn .app-download-text {
        font-size: 16px !important;
        font-weight: 600 !important;
    }
    
    .footer-column-large .app-download-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .footer-column-large .app-store-buttons {
        justify-content: center !important;
        gap: 20px !important;
        margin-top: 0 !important;
    }
}

/* App Download Section - Center Aligned */
.footer-column-large {
    text-align: center;
}

.footer-column-large h3 {
    text-align: center;
    margin-bottom: 15px;
}

.footer-column-large .app-download {
    text-align: center;
}

.footer-column-large .app-download p {
    text-align: center;
    margin-bottom: 15px;
}

.footer-column-large .qrcode-wrapper {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-column-large .qrcode-wrapper img {
    display: block;
    margin: 0 auto;
}

/* App Download Button */
.footer-column-large .app-download-btn {
    width: 140px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 15px auto 0;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
}

.footer-column-large .app-download-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 114, 254, 0.3);
}

.footer-column-large .app-download-btn svg {
    color: white;
    flex-shrink: 0;
    margin-right: 8px;
}

.footer-column-large .app-download-btn .app-download-text {
    color: white;
    white-space: nowrap;
    flex: 1;
    text-align: right;
}

/* Responsive App Download Button */
@media (max-width: 768px) {
    .footer-column-large .app-download-btn {
        width: 140px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .footer-column-large .app-download-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .footer-column-large .app-download-btn {
        width: 140px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .footer-column-large .app-download-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Unified Icon Button Styles - All Social and App Store Icons */
.site-footer .footer-social a,
.footer-column-large .app-store-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

/* Unified Icon Sizes */
.site-footer .footer-social img,
.footer-column-large .app-store-btn svg,
.footer-column-large .app-store-btn img {
    width: 20px !important;
    height: 20px !important;
    transition: all 0.3s ease !important;
}

.site-footer .footer-social img {
    filter: brightness(0) invert(1) !important;
}

/*.footer-column-large .app-store-btn svg {*/
/*    color: white !important;*/
/*}*/

.footer-column-large .app-store-btn img {
    filter: brightness(0) invert(1) !important;
}

/* Unified Hover Effect - Same for All Icons */
.site-footer .footer-social a:hover,
.footer-column-large .app-store-btn:hover {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(61, 114, 254, 0.3) !important;
}

.site-footer .footer-social a:hover img,
.footer-column-large .app-store-btn:hover svg,
.footer-column-large .app-store-btn:hover img {
    transform: scale(1.1) !important;
}

/* App Store Buttons Container */
.footer-column-large .app-store-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

/* Responsive Icon Buttons - Unified for All */
@media (max-width: 768px) {
    .site-footer .footer-social a,
    .footer-column-large .app-store-btn {
        width: 45px !important;
        height: 45px !important;
    }
    
    .site-footer .footer-social img,
    .footer-column-large .app-store-btn svg,
    .footer-column-large .app-store-btn img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .footer-column-large .app-store-buttons {
        gap: 10px;
        margin-top: 12px;
    }
    
    .site-footer .footer-social {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .site-footer .footer-social a,
    .footer-column-large .app-store-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .site-footer .footer-social img,
    .footer-column-large .app-store-btn svg,
    .footer-column-large .app-store-btn img {
        width: 16px !important;
        height: 16px !important;
    }
    
    .footer-column-large .app-store-buttons {
        gap: 8px;
        margin-top: 10px;
    }
    
    .site-footer .footer-social {
        gap: 10px;
    }
}

/* Support Chatbox Styles */
.btn-goftino {
    position: fixed;
    bottom: 45px;
    right: 35px;
    display: none;
    transition: opacity .7s;
    z-index: 99999;
}

.btn-goftino button {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.btn-goftino button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-goftino img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

/* Responsive Chatbox */
@media (max-width: 768px) {
    .btn-goftino {
        bottom: 15px;
        left: 15px;
    }

    .btn-goftino button {
        padding: 10px 16px;
        font-size: 16px;
    }

    .btn-goftino img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .btn-goftino {
        bottom: 10px;
        left: 10px;
    }

    .btn-goftino button {
        padding: 8px 12px;
        font-size: 14px;
    }
    .btn-goftino img {
        width: 30px;
        height: 30px;
    }
    .btn-goftino span {
        display: none;
    }

}