/* ===========================================
   Footer Component Styles
   Modular footer with theme support
   =========================================== */

/* Footer Container */
.site-footer {
    position: relative;
    padding: 4rem 0 2rem 0;
    margin-top: 6rem;
    font-family: 'Outfit', sans-serif;
    overflow: visible;
}

/* Background Effect */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--theme-bg-tertiary);
    opacity: 0.5;
    z-index: -2;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--theme-border-primary) 20%,
        var(--theme-border-primary) 80%,
        transparent 100%
    );
}

/* Footer Inner Container */
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8%;
    display: flex;
    flex-direction: column;
    }

@media (min-width: 1400px) {
    .footer-inner {
        padding: 0 12%;
    }
}

@media (max-width: 991px) {
    .footer-inner {
        padding: 0 5%;
    }
}

/* Footer Grid - Desktop */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    grid-template-rows: auto auto;
    gap: 2rem 3rem;
    padding-bottom: 2rem;
    align-items: start;
}

/* Desktop positioning */
.footer-brand {
    grid-column: 1;
    grid-row: 1;
}

.footer-column:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
}

.footer-column:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
}

.footer-social-column {
    grid-column: 4;
    grid-row: 2;
    justify-self: end;
    align-self: end;
}

.footer-partner {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
}

/* Tablet */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    .footer-column:nth-of-type(1) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .footer-column:nth-of-type(2) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .footer-social-column {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: center;
    }
    
    .footer-partner {
        grid-column: 1 / -1;
        grid-row: 4;
        align-self: center;
        justify-self: center;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
    }
    
    .footer-column {
        align-items: center;
    }
    
    .footer-social-column {
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    .footer-partner {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

/* Footer Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    height: 72px;
    width: auto;
    filter: var(--theme-logo-filter);
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .footer-logo:hover {
        opacity: 0.8;
    }
}

.footer-tagline {
    color: var(--theme-text-tertiary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
    font-weight: 300;
}

@media (max-width: 576px) {
    .footer-tagline {
        text-align: center;
        max-width: 100%;
    }
}

/* Partner Badge */
.footer-partner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.partner-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--theme-text-muted);
    font-weight: 500;
}

.partner-logo {
    height: 26px;
    width: auto;
    opacity: 0.85;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .partner-logo:hover {
        opacity: 1;
        transform: translateY(-2px);
    }
}

[data-theme="light"] .partner-logo.ovh-logo {
    filter: none;
}

[data-theme="dark"] .partner-logo.ovh-logo {
    filter: brightness(0) invert(1);
}

/* Footer Navigation Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: transparent;
}

.footer-column-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--theme-text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0;
    margin: 0;
}

.footer-nav-link {
    color: var(--theme-text-tertiary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
    background: transparent !important;
    border: none !important;
    padding: 0;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--octigen-blue);
    transition: width 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--theme-text-primary);
}

.footer-nav-link:hover::after {
    width: 100%;
}

@media (max-width: 576px) {
    .footer-nav {
        align-items: center;
    }
}

/* Social Column */
.footer-social-column {
    display: flex;
    align-items: flex-end;
}

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

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--theme-glass-bg);
    border: 1px solid var(--theme-glass-border);
    color: var(--theme-text-tertiary);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.footer-social-link:hover {
    background: var(--octigen-blue);
    border-color: var(--octigen-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 79, 226, 0.3);
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    border-top: 1px solid var(--theme-border-secondary);
    padding: 1.5rem 0;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright {
    color: var(--theme-text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal-divider {
    color: var(--theme-text-muted);
    font-size: 0.9rem;
}

.footer-legal-link {
    color: var(--theme-text-tertiary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: var(--theme-text-primary);
}

.footer-company-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-company-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.footer-address {
    color: var(--theme-text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

.footer-made-in {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-text-tertiary);
    font-size: 0.85rem;
    font-weight: 400;
}

.swiss-flag {
    font-size: 1.1em;
    line-height: 1;
}

/* Decorative Glow */
.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse at bottom, rgba(30, 79, 226, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .footer-glow {
        width: 400px;
        height: 150px;
    }
}
