/* ========================================
   MODERN PROFESSIONAL FOOTER STYLES
========================================== */

.modern-footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #0f172a 100%);
    color: #f8fafc;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

html[data-theme="light"] .modern-footer {
    background: linear-gradient(135deg, #e8e4ff 0%, #f0ebff 50%, #e5deff 100%);
    color: #1a1a2e;
}

html[data-theme="light"] .modern-footer a {
    color: #667eea;
}

html[data-theme="light"] .modern-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrid)"/></svg>');
    opacity: 0.3;
}

html[data-theme="light"] .modern-footer::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(102,126,234,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrid)"/></svg>');
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* ========================================
   MAIN FOOTER CONTENT
========================================== */

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 1.5rem;
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Compact variant */
.modern-footer.compact .footer-content {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 1rem;
    padding: 0.875rem 0 0.75rem;
}
.modern-footer.compact .brand-description {
    display: none;
}
.modern-footer.compact .section-title {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.modern-footer.compact .footer-links a {
    font-size: 0.8rem;
    padding: 0.1rem 0;
}
.modern-footer.compact .footer-bottom .footer-bottom-content {
    padding-top: 0.5rem;
}

/* ========================================
   BRAND SECTION
========================================== */

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

.brand-logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.brand-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.125rem 0;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

.brand-description {
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.security-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.375rem 0.625rem;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #93c5fd;
    transition: all 0.3s ease;
}

.security-badge:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.security-badge i {
    font-size: 0.8rem;
}

/* ========================================
   FOOTER SECTIONS
========================================== */

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

.section-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.section-title i {
    color: #60a5fa;
}

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

.footer-links li {
    margin-bottom: 0.375rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0;
}

.footer-links a::before {
    content: '→';
    color: #60a5fa;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
    transform: translateX(6px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   CONTACT SECTION
========================================== */

.contact-info {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.8rem;
}

.contact-item i {
    color: #60a5fa;
    width: 14px;
    text-align: center;
}

/* ========================================
   SOCIAL MEDIA
========================================== */

.social-section {
    margin-top: 0.75rem;
}

.social-title {
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

/* Light mode readability */
html[data-theme="light"] .modern-footer .section-title {
    color: #1f2937;
    border-bottom: 1px solid rgba(102, 126, 234, 0.25);
}

html[data-theme="light"] .modern-footer .footer-links a {
    color: #374151;
}

html[data-theme="light"] .modern-footer .footer-links a::before {
    color: #667eea;
}

html[data-theme="light"] .modern-footer .footer-links a:hover {
    color: #667eea;
}

html[data-theme="light"] .modern-footer .contact-item {
    color: #4b5563;
}

html[data-theme="light"] .modern-footer .social-title {
    color: #4b5563;
}

html[data-theme="light"] .modern-footer .footer-bottom,
html[data-theme="light"] .modern-footer .footer-bottom a {
    color: #4b5563;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.2);
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.social-link.twitter {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
    border-color: rgba(29, 161, 242, 0.2);
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 161, 242, 0.4);
}

.social-link.linkedin {
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
    border-color: rgba(10, 102, 194, 0.2);
}

.social-link.linkedin:hover {
    background: #0a66c2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 102, 194, 0.4);
}

.social-link.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.2);
}

.social-link.whatsapp:hover {
    background: #25d366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.social-link.telegram {
    background: rgba(42, 171, 238, 0.1);
    color: #2aabee;
    border-color: rgba(42, 171, 238, 0.2);
}

.social-link.telegram:hover {
    background: #2aabee;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 171, 238, 0.4);
}

/* ========================================
   NEWSLETTER SECTION
========================================== */

.newsletter-footer {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 1.5rem 0;
    padding: 1.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.newsletter-text h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.75rem 0;
}

.newsletter-text h4 i {
    color: #fbbf24;
    animation: pulse 2s infinite;
}

.newsletter-text p {
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
    font-size: 0.85rem;
}

.newsletter-form {
    max-width: 360px;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.input-group:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.1);
}

.input-group input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    background: none;
    color: white;
    font-size: 0.85rem;
    outline: none;
}

.input-group input::placeholder {
    color: #94a3b8;
}

.input-group button {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
}

.input-group button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateX(-2px);
}

.newsletter-note {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

.newsletter-note i {
    color: #10b981;
}

/* ========================================
   FOOTER BOTTOM
========================================== */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0 0.75rem;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.copyright p {
    margin: 0 0 0.25rem 0;
    color: #cbd5e1;
    font-size: 0.85rem;
}

.made-with {
    color: #94a3b8;
    font-size: 0.8rem;
    font-style: italic;
}

.footer-meta {
    text-align: right;
}

.stats-mini {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.stat i {
    color: #60a5fa;
}

.legal-links {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.legal-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #60a5fa;
}

/* ========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        padding: 1.25rem 0 0.875rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-mini {
        justify-content: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0 0.75rem;
    }
    
    .brand-logo-section {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .brand-info {
        text-align: center;
    }
    
    .security-badges {
        justify-content: center;
    }
    
    .newsletter-footer {
        padding: 1.25rem 1rem;
        margin: 1rem 0;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group button {
        border-radius: 0 0 10px 10px;
    }
    
    .stats-mini {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.375rem;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 0.75rem;
    }
    
    .footer-content {
        padding: 0.875rem 0 0.625rem;
    }
    
    .newsletter-footer {
        padding: 1rem 0.75rem;
        margin: 0.875rem 0;
    }
    
    .footer-bottom {
        padding: 0.875rem 0 0.625rem;
    }
}

/* ========================================
   ANIMATIONS & EFFECTS
========================================== */

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
    }
}

/* Hover effects */
.footer-section {
    transition: transform 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-1px);
}

/* Loading states */
.newsletter-form button.loading {
    pointer-events: none;
}

.newsletter-form button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3);
    z-index: 1000;
    display: none;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.scroll-to-top.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}