/**
 * Footer Redesign - TeslaServer Theme
 * فوتر جدید مشابه سایت اصلی
 */

/* Main Footer Container */
#footer.footer {
    background: #1a1d23;
    padding: 1.5rem 0 0;
    color: #b3bbc6;
}

/* Top Section - Logo & Features */
.footer-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(179, 187, 198, 0.1);
}

/* Logo Box */
.footer-logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-box .logo-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-logo-box .logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0080FF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-logo-box .logo-title:hover {
    color: #0066CC;
    text-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
}

.footer-logo-box .logo-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: #b3bbc6;
    margin: 0;
}

/* Features Grid */
.footer-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.05) 0%, rgba(0, 102, 204, 0.05) 100%);
    padding: 1rem;
    border-radius: 8px;
}

.footer-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-feature-icon svg {
    width: 22px;
    height: 22px;
}

.footer-feature-content h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.15rem 0;
}

.footer-feature-content p {
    font-size: 0.75rem;
    color: #b3bbc6;
    margin: 0;
}

/* Description Section - Removed */
/*
.footer-description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}

.footer-description p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #b3bbc6;
    margin-bottom: 0.75rem;
}

.footer-description p strong {
    color: #ffffff;
    font-weight: 600;
}
*/

/* Links Section - 3 Columns */
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(179, 187, 198, 0.1);
}

.footer-links-column h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

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

.footer-links-column ul li {
    margin-bottom: 0.5rem;
    display: block !important;
}

.footer-links-column ul li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    color: #b3bbc6 !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    transition: all 0.3s ease !important;
    direction: rtl !important;
}

.footer-links-column ul li a:hover {
    color: #0080FF !important;
}

.footer-links-column ul li a .link-icon {
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0 !important;
    margin-left: 0.4rem !important;
}

/* Enamad Badge (Removed) */
/*
.footer-enamad {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-enamad img {
    width: 90px;
    height: auto;
    border-radius: 6px;
}
*/

/* Services & Copyright */
.footer-services {
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 0 1rem;
}

.footer-services p {
    font-size: 0.75rem;
    color: #b3bbc6;
    margin: 0;
}

.footer-services p a {
    color: #0080FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-services p a:hover {
    color: #0066CC;
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(179, 187, 198, 0.1);
}

.footer-copyright p {
    font-size: 0.75rem;
    color: #b3bbc6;
    margin: 0;
}

/* Contact Box - Fixed Bottom Right (Disabled) */
/*
.footer-contact-box {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, #0080FF 0%, #0066CC 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 128, 255, 0.3);
    z-index: 9999;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.footer-contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 128, 255, 0.4);
}

.footer-contact-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.footer-contact-phone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-contact-phone:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.footer-contact-number {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.footer-contact-number .main-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    direction: ltr;
}

.footer-contact-number .prefix {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact-extension {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.footer-contact-image {
    width: 120px;
    height: auto;
    margin-top: 0.5rem;
}
*/

/* Back to Top Button */
.footer-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #0080FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 128, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    border: none;
    padding: 0;
}

.footer-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.footer-back-to-top:hover {
    background: #0066CC;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 128, 255, 0.4);
}

.footer-back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    #footer.footer {
        padding: 1rem 0 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .footer-logo-box {
        justify-content: center;
    }

    .footer-features {
        grid-template-row: 3fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 1rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .footer-back-to-top {
        right: 1rem;
        bottom: 1rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    #footer.footer {
        padding: 0.75rem 0 0;
    }

    .footer-top {
        gap: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .footer-logo-box .logo-title {
        font-size: 1.25rem;
    }

    .footer-logo-box .logo-subtitle {
        font-size: 0.75rem;
    }

    .footer-features {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .footer-feature-item {
        gap: 0.4rem;
    }

    .footer-feature-icon {
        width: 24px;
        height: 24px;
    }

    .footer-feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .footer-feature-content h6 {
        font-size: 0.8rem;
    }

    .footer-feature-content p {
        font-size: 0.7rem;
    }

    .footer-links {
        grid-template-rows: 2fr;
        gap: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .footer-links>div:first-child {
        display: none;
    }

    .footer-links-column h5 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .footer-links-column ul li {
        margin-bottom: 0.4rem;
    }

    .footer-links-column ul li a {
        font-size: 0.75rem;
    }

    .footer-services {
        margin-bottom: 0.5rem;
    }

    .footer-services p {
        font-size: 0.7rem;
    }

    .footer-copyright {
        padding: 0.75rem 0;
    }

    .footer-copyright p {
        font-size: 0.7rem;
    }

    .footer-back-to-top {
        width: 40px;
        height: 40px;
        right: 1rem;
        bottom: 1rem;
    }

    .footer-back-to-top svg {
        width: 16px;
        height: 16px;
    }
}

/* RTL Support */
[dir="rtl"] .footer-logo-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-feature-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* RTL Support for links - Not needed anymore (centered) */

[dir="rtl"] .footer-back-to-top {
    right: auto;
    left: 2rem;
}

@media (max-width: 992px) {
    [dir="rtl"] .footer-back-to-top {
        left: 1rem;
        right: auto;
    }
}

@media (max-width: 576px) {
    [dir="rtl"] .footer-back-to-top {
        left: 1rem;
        right: auto;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-top,
.footer-description,
.footer-links,
.footer-services,
.footer-copyright {
    animation: fadeInUp 0.6s ease-out;
}

.footer-description {
    animation-delay: 0.1s;
}

.footer-links {
    animation-delay: 0.2s;
}

.footer-services {
    animation-delay: 0.3s;
}

.footer-copyright {
    animation-delay: 0.4s;
}