/**
 * استایل Footer Builder
 * 
 * @package Plus_Modiresabz
 * @since 1.0.0
 */

/* متغیرهای رنگی */
:root {
    --plus-footer-bg: #0c1f38;
    --plus-footer-text: #fff;
    --plus-footer-yellow: #ffc31d;
}

/* تنظیمات پایه */
.plus-footer-builder {
    background: var(--plus-footer-bg);
    color: var(--plus-footer-text);
    font-family: inherit;
}

.plus-footer-builder * {
    box-sizing: border-box;
}

.plus-footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ردیف اول: 4 ستونه ===== */
.plus-footer-row-1 {
    padding: 60px 0 50px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.plus-footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.plus-footer-column {
    display: flex;
    flex-direction: column;
}

.plus-footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--plus-footer-text);
    margin: 0 0 20px 0;
    position: relative;
}

.plus-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plus-footer-links a {
    color: var(--plus-footer-text);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}


.plus-footer-links a:hover {
    color: var(--plus-footer-yellow);
}
/* ستون 4: شبکه‌های اجتماعی و خبرنامه */
.plus-footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.plus-footer-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #30336b;
    color: var(--plus-footer-bg);
    transition: all 0.3s ease;
    text-decoration: none;
}

.plus-footer-social-link svg,
.plus-footer-social-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.plus-footer-social-link:hover {
    background: #ffc31d;
    color: #fff;
    transform: translateY(-3px);
}

.plus-footer-newsletter h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--plus-footer-text);
}

.plus-footer-newsletter-form {
    display: flex;
    gap: 8px;
}

.plus-footer-newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(17, 17, 17, 0.15);
    font-size: 14px;
    background: #fff;
    color: var(--plus-footer-text);
    transition: all 0.3s ease;
}

.plus-footer-newsletter-form input:focus {
    outline: none;
    border-color: var(--plus-footer-yellow);
}

.plus-footer-newsletter-form button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--plus-footer-yellow);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.plus-footer-newsletter-form button svg {
    width: 20px;
    height: 20px;
}

.plus-footer-newsletter-form button:hover {
    background: var(--plus-footer-text);
    color: var(--plus-footer-bg);
    transform: scale(1.05);
}

/* ===== ردیف دوم: درباره ما و مجوزها ===== */
.plus-footer-row-2 {
    padding: 50px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.plus-footer-about-section {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
}

.plus-footer-about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--plus-footer-text);
    margin: 0;
}

.plus-footer-about-short {
    display: none;
}

.plus-footer-about-more {
    display: none;
}

.plus-footer-licenses-grid {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.plus-footer-licenses-grid img {
    max-width: 120px !important;
    height: auto !important;
}

/* ===== ردیف سوم: کپی‌رایت ===== */
.plus-footer-row-3 {
    padding: 25px 0;
}

.plus-footer-copyright {
    text-align: center;
}

.plus-footer-copyright p {
    font-size: 14px;
    color: var(--plus-footer-text);
    margin: 0;
    opacity: 0.8;
}

/* ===== آیکون آکاردئون (مخفی در دسکتاپ) ===== */
.plus-footer-accordion-icon {
    display: none;
}

/* ===== مودال (برای موبایل) ===== */
.plus-footer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.plus-footer-modal.active {
    display: flex;
}

.plus-footer-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.plus-footer-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-height: 80vh;
    padding: 24px;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.plus-footer-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.plus-footer-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.plus-footer-modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--plus-footer-text);
}

.plus-footer-modal-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--plus-footer-text);
}

/* ===== ریسپانسیو: تبلت ===== */
@media (max-width: 1024px) {
    .plus-footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .plus-footer-about-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== ریسپانسیو: موبایل ===== */
@media (max-width: 768px) {
    /* ردیف اول: آکاردئونی */
    .plus-footer-row-1 {
        padding: 40px 0 30px;
    }
    
    .plus-footer-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .plus-footer-accordion-item {
        border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    }
    
    .plus-footer-accordion-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0;
        cursor: pointer;
        user-select: none;
        margin: 0;
    }
    
    .plus-footer-accordion-icon {
        display: block;
        font-size: 24px;
        font-weight: 400;
        transition: transform 0.3s ease;
        color: var(--plus-footer-yellow);
    }
    
    .plus-footer-accordion-item.active .plus-footer-accordion-icon {
        transform: rotate(45deg);
    }
    
    .plus-footer-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .plus-footer-accordion-item.active .plus-footer-accordion-content {
        max-height: 1000px;
        padding-bottom: 20px;
    }
    
    /* ردیف دوم: آکاردئونی */
    .plus-footer-row-2 {
        padding: 30px 0;
    }
    
    .plus-footer-about-section {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .plus-footer-about-full {
        display: none !important;
    }
    
    .plus-footer-about-short {
        display: block !important;
    }
    
    .plus-footer-about-more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 12px;
        padding: 8px 16px;
        background: var(--plus-footer-yellow);
        border: none;
        font-size: 14px;
        font-weight: 600;
        color: var(--plus-footer-text);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .plus-footer-about-more:hover {
        background: var(--plus-footer-text);
        color: var(--plus-footer-bg);
    }
    
    .plus-footer-about-more span {
        font-size: 18px;
        font-weight: 400;
    }
    
    .plus-footer-licenses-grid {
        justify-content: center;
    }
    
    .plus-footer-licenses-grid img {
        max-width: 80px;
    }
    
    /* کپی‌رایت */
    .plus-footer-row-3 {
        padding: 20px 0;
    }
    
    .plus-footer-copyright p {
        font-size: 13px;
    }
}

/* برای موبایل‌های کوچک */
@media (max-width: 480px) {
    .plus-footer-social {
        flex-wrap: wrap;
    }
    
    .plus-footer-social-link {
        width: 40px;
        height: 40px;
    }
    
    .plus-footer-social-link svg,
    .plus-footer-social-link img {
        width: 18px;
        height: 18px;
    }
}

/* ===== دکمه پشتیبانی شناور ===== */
.plus-support-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: inherit;
}

/* دکمه اصلی */
.plus-support-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffc31d;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    animation: plusSupportPulse 2s infinite;
}

.plus-support-button:hover {
    transform: scale(1.1);
    background: #ffc31d;
}

.plus-support-button:active {
    transform: scale(0.95);
}

.plus-support-icon {
    width: 28px;
    height: 28px;
    color: #fff;
}

/* انیمیشن جذب توجه */
@keyframes plusSupportPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 198, 43, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 110, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 110, 43, 0);
    }
}

/* باکس اطلاعات تماس */
.plus-support-box {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background: #F8F3F0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.plus-support-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* هدر باکس */
.plus-support-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #ffc31d;
    color: #fff;
}

.plus-support-box-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.plus-support-box-close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.plus-support-box-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.plus-support-box-close svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

/* بدنه باکس */
.plus-support-box-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* آیتم‌های تماس */
.plus-support-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    text-decoration: none;
    color: #111;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.plus-support-item:hover {
    border-color: #ffc31d;
    transform: translateX(-5px);
}

.plus-support-item-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F3F0;
    color: #111;
}

.plus-support-item-icon svg,
.plus-support-item-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.plus-support-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.plus-support-item-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plus-support-item-value {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .plus-support-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .plus-support-button {
        width: 55px;
        height: 55px;
    }
    
    .plus-support-icon {
        width: 26px;
        height: 26px;
    }
    
    .plus-support-box {
        width: calc(100vw - 40px);
        max-width: 320px;
        bottom: 70px;
    }
    
    .plus-support-item {
        padding: 12px;
    }
    
    .plus-support-item-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .plus-support-item-icon svg,
    .plus-support-item-icon img {
        width: 20px;
        height: 20px;
    }
}

