/* ===== FOOTER STYLES ===== */

/* Main Footer Container */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    padding: 3rem 0 0;
    margin-top: 4rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f39c12);
}

/* Footer Content Wrapper */
.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
}

/* Footer Sections */
.footer-section {
    padding: 1rem;
}

/* Headings */
.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #3498db;
}

/* Navigation Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.footer-links li:hover {
    padding-left: 0.5rem;
}

.footer-links li::before {
    content: '→';
    position: absolute;
    left: -1rem;
    opacity: 0;
    color: #3498db;
    transition: all 0.3s ease;
}

.footer-links li:hover::before {
    left: 0;
    opacity: 1;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.footer-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 0.5rem;
}

/* Contact Section */
.footer-contacts {
    font-style: normal;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-link:hover {
    color: #ffffff;
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

/* Icons */
.icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.contact-link .icon {
    width: 18px;
    height: 18px;
}

/* QR Code */
.qr-code {
    margin: 1.5rem 0 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-code img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.qr-caption {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link .icon {
    width: 20px;
    height: 20px;
}

.facebook:hover {
    background: rgba(59, 89, 152, 0.2);
    border-color: #3b5998;
}

.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: #e1306c;
}

.social-label {
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    margin: 0 auto 1.5rem;
    max-width: 1280px;
}

.copyright {
    text-align: center;
    padding: 0 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.copyright time {
    font-weight: 600;
}

.copyright-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.copyright-link:hover {
    color: #2980b9;
    background: rgba(52, 152, 219, 0.1);
    text-decoration: underline;
}

/* External Link Indicators */
.external {
    position: relative;
}

.external::after {
    content: "↗";
    margin-left: 0.25rem;
    font-size: 0.75em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.external:hover::after {
    opacity: 1;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Accessibility */
.footer-link:focus,
.contact-link:focus,
.social-link:focus,
.copyright-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    background: rgba(52, 152, 219, 0.2);
}

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

/* Tablet */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-section {
        padding: 0.5rem;
    }
    
    .site-footer {
        padding: 2rem 0 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-heading {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-link {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
    
    .qr-code {
        max-width: 140px;
        margin: 1.5rem auto 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer-content {
        padding: 0 0.75rem;
    }
    
    .contact-link {
        font-size: 0.9rem;
    }
    
    .social-link {
        min-width: 120px;
    }
    
    .copyright {
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .site-footer {
        background: none !important;
        color: #000 !important;
        border-top: 2px solid #000;
    }
    
    .footer-link,
    .contact-link,
    .social-link,
    .copyright-link {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .social-links,
    .qr-code {
        display: none;
    }
}