/**
 * Footer Widget Styles
 * RTL (Right-to-Left) layout for Persian/Farsi websites
 */

.footer-widget-container {
    margin-top: 11rem;
    position: relative;
    direction: rtl;
    text-align: right;
}

/* Features Section for Desktop */
.footer-features-desktop {
    position: absolute;
    top: -150px;
    left: 0;
    right: 0;
    display: none;
}

.footer-features-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.5rem;
}

.footer-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-feature-icon {
    width: 3rem;
    height: 3rem;
}

.feature-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-feature-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    margin-bottom: 0.25rem;
}

.footer-feature-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

/* Features Section for Mobile and Tablet */
.footer-features-mobile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.footer-features-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1rem;
}

.footer-feature-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.footer-feature-icon-mobile {
    width: 2.5rem;
    height: 2.5rem;
}

.feature-icon-mobile {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-feature-title-mobile {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    margin-bottom: 0.25rem;
}

.footer-feature-description-mobile {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

/* About Section */
.footer-about-section {
    padding: 4rem 0;
    background: #f3f4f6;
}

.footer-about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-about-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-about-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: #1f2937;
}

.footer-about-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.75;
    margin: 0;
}

.footer-about-button {
    background: #9ca3af;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-block;
    margin-right: 0.5rem;
}

.footer-about-logos {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-logo-item {
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.footer-logo {
    width: 3.5rem;
    height: auto;
    object-fit: contain;
}

/* Social Media Section - Desktop */
.footer-social-desktop {
    position: absolute;
    top: 320px;
    left: 0;
    right: 0;
    display: none;
}

.footer-social-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top:-150px;
}

.footer-app-section,
.footer-social-section {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.footer-app-content,
.footer-social-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-app-title,
.footer-social-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: #1f2937;
}

.footer-app-subtitle,
.footer-social-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.footer-app-images {
    display: flex;
    gap: 1rem;
}

.footer-app-image {
    width: 13rem;
    height: auto;
    object-fit: contain;
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
}

.footer-social-icon {
    padding: 0.5rem;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: #d1d5db;
    transform: scale(1.1);
}

/* Social Media Section - Mobile and Tablet */
.footer-social-mobile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.footer-social-container-mobile {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-app-section-mobile,
.footer-social-section-mobile {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-app-content-mobile,
.footer-social-content-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-app-title-mobile,
.footer-social-title-mobile {
    font-size: 1.125rem;
    font-weight: bold;
    margin: 0;
    color: #1f2937;
}

.footer-app-subtitle-mobile,
.footer-social-subtitle-mobile {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.footer-app-images-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.footer-app-image-mobile {
    width: 8rem;
    height: auto;
    object-fit: contain;
}

.footer-social-icons-mobile {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.footer-social-icon-mobile {
    padding: 0.5rem;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social-icon-mobile:hover {
    background: #d1d5db;
    transform: scale(1.1);
}

/* Main Footer */
.footer-main {
    padding: 3rem 0;
    color: white;
}

.footer-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 3rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-title {
    font-size: 0.875rem;
    font-weight: bold;
    margin: 0;
    margin-bottom: 1rem;
    color: white;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    font-size: 0.75rem;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-contact-item {
    font-size: 0.75rem;
    color: #d1d5db;
    margin: 0;
}

.footer-logo-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-company-logo {
    width: 4rem;
    height: auto;
    object-fit: contain;
}

/* Bottom Footer */
.footer-bottom {
    padding: 1rem 0;
    color: white;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

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

/* Responsive Design */
@media (min-width: 640px) {
    .footer-features-grid-mobile {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }
    
    .footer-feature-icon-mobile {
        width: 3rem;
        height: 3rem;
    }
    
    .footer-app-images-mobile {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .footer-app-image-mobile {
        width: 9rem;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-logo-column {
        grid-column: span 2;
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .footer-features-desktop {
        display: block;
    }
    
    .footer-features-mobile {
        display: none;
    }
    
    .footer-social-desktop {
        display: block;
    }
    
    .footer-social-mobile {
        display: none;
    }
    
    .footer-about-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }
    
    .footer-about-content {
        width: 100%;
    }
    
    .footer-about-logos {
        width: auto;
        margin-top: 0;
    }
    
    .footer-logo {
        width: 6rem;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
    
    .footer-logo-column {
        grid-column: span 1;
        justify-content: flex-start;
    }
    
    .footer-company-logo {
        width: auto;
    }
}

@media (min-width: 1280px) {
    .footer-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-app-image {
        width: 13rem;
    }
}

/* RTL Specific Adjustments */
.footer-widget-container {
    direction: rtl;
}

.footer-features-grid,
.footer-features-grid-mobile {
    direction: rtl;
}

.footer-about-container {
    direction: rtl;
}

.footer-social-container,
.footer-social-container-mobile {
    direction: rtl;
}

.footer-links-grid {
    direction: rtl;
}

/* Animation for features */
@keyframes featureSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-feature-item,
.footer-feature-item-mobile {
    animation: featureSlideIn 0.6s ease-out;
}

/* Hover effects */
.footer-feature-item:hover,
.footer-feature-item-mobile:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Focus states for accessibility */
.footer-link:focus,
.footer-social-icon:focus,
.footer-social-icon-mobile:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .footer-widget-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .footer-features-desktop,
    .footer-features-mobile,
    .footer-social-desktop,
    .footer-social-mobile {
        display: none !important;
    }
} 