/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border-top: 1px solid var(--border);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-sections {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-newsletter {
    background: var(--background);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
    text-align: center;
}

.newsletter-content {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.newsletter-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-btn {
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.newsletter-message {
    font-size: 13px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-message.success {
    color: var(--success);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--primary);
}

.language-select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-sections {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 3;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-content {
        padding: 40px 0 24px;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-newsletter {
        padding: 24px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-bottom-links {
        order: 2;
    }
    
    .language-select {
        order: 3;
    }
    
    .back-to-top {
        bottom: 24px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    /* Hide footer on mobile when bottom navigation is present */
    .modern-footer {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .footer-sections {
        gap: 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .modern-footer {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(255,255,255,0.02) 100%);
}

[data-theme="dark"] .social-link {
    background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary);
}

[data-theme="dark"] .footer-newsletter {
    background: rgba(255,255,255,0.02);
}

/* Animation for language change message */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
