/**
 * Footer Component Styles
 * Modern footer design following Swiss principles and KOPEDA brand identity
 */

/* Main Footer Container */
.main-footer {
    background: linear-gradient(135deg, #343A40 0%, #2C3237 100%);
    color: rgba(255, 255, 255, 0.9);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #800000 0%, #01016B 100%);
}

/* Footer Content Layout */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 4rem 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(128, 0, 0, 0.3);
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #800000;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
    transform: translateX(4px);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: #800000;
    font-weight: bold;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -1.25rem;
}

/* Contact Information */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.contact-icon {
    font-size: 1.25rem;
    color: #800000;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: white;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #800000;
    border-color: #800000;
    color: white;
    transform: translateY(-2px);
}

.social-icon {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain;
    filter: brightness(1) saturate(100%);
    transition: filter 0.3s ease;
}

.social-link:hover .social-icon {
    filter: brightness(1.2) saturate(120%);
}


/* Accreditation Badges */
.accreditation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.disclaimer {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-text strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.footer-bottom-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #800000 0%, #01016B 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1rem 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-bottom-meta {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-icon {
        width: 35px !important;
        height: 35px !important;
    }
    
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 2rem 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-icon {
        width: 30px !important;
        height: 30px !important;
    }
    
    .accreditation-badges {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .main-footer {
        background: white !important;
        color: black !important;
        break-inside: avoid;
    }
    
    .footer-content {
        display: block;
        columns: 2;
        column-gap: 2rem;
    }
    
    .social-links,
    .back-to-top {
        display: none;
    }
    
    .footer-section h3 {
        color: black !important;
        border-bottom-color: #ccc !important;
    }
    
    .footer-links a {
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .main-footer {
        background: #000 !important;
    }
    
    .footer-section h3,
    .footer-links a,
    .contact-value {
        color: #fff !important;
    }
    
    .social-link,
    .badge {
        border-color: #fff !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .footer-links a,
    .social-link,
    .back-to-top {
        transition: none;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .social-link:hover,
    .back-to-top:hover {
        transform: none;
    }
}