/*
 * Finland Footer Styles
 * Extracted from footer.blade.php component
 * Version: 1.0
 * Date: 2025-11-19
 */

/* ============================================
   FOOTER ACCORDION STYLES
   ============================================ */
footer.footer .accordion-item {
    background-color: #dbeafe !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0.75rem !important;
}

footer.footer .accordion-button {
    background-color: #e3ecff !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
}

footer.footer .accordion-button:not(.collapsed) {
    background-color: #c7d7ff !important;
    color: #1e293b !important;
    box-shadow: none !important;
}

footer.footer .accordion-body {
    background-color: #e3ecff !important;
    border: none !important;
    box-shadow: none !important;
}

/* ============================================
   MAIN FOOTER STYLES
   ============================================ */
.footer {
    background: #dbeafe;
    color: #1e293b;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-title {
    font-size: 1.1rem;
    letter-spacing: -0.025em;
    color: #1e3a8a;
}

.footer-link {
    color: #475569 !important;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: #2563eb !important;
}

.footer-bottom {
    border-top: 1px solid #94a3b8;
    margin-top: 3rem;
    padding-top: 1.5rem;
}

/* ============================================
   FOOTER LOGO
   ============================================ */
.footer-logo img {
    height: 27px;
    width: auto;
    transition: opacity 0.2s;
}

.footer-logo:hover img {
    opacity: 0.9;
}

/* ============================================
   NEWSLETTER FORM
   ============================================ */
.newsletter-form .newsletter-input {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0.75rem 1rem !important;
    width: 100% !important;
}

.newsletter-form .newsletter-button {
    display: inline-block !important;
    background-color: #0d6efd !important;
    color: white !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    width: 100% !important;
    max-width: 200px !important;
}

.newsletter-form .newsletter-button:hover {
    background-color: #0b5ed7 !important;
    transform: translateY(-1px) !important;
}

/* ============================================
   LANGUAGE SELECTOR IN FOOTER
   ============================================ */
.language-selector .dropdown-toggle {
    padding: 0.5rem;
    border: none;
    background: none;
}

.language-selector .dropdown-toggle::after {
    border-top-color: #1e3a8a;
}

.language-selector .bi-globe {
    font-size: 1.25rem;
    color: #1e3a8a;
}

.language-selector .dropdown-menu {
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.language-selector .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.language-selector .fi {
    width: 1.25em;
    height: 1em;
    vertical-align: middle;
}

/* ============================================
   FOOTER LINKS (Cookie, Network, Impressum)
   ============================================ */
footer.footer #cookie-footer-link .footer-cookie-link,
footer.footer #footer-cookie-settings,
footer.footer #footer-network-link,
footer.footer #footer-impressum-link {
    color: #475569 !important;
    font-size: 0.95rem !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

footer.footer #cookie-footer-link .footer-cookie-link:hover,
footer.footer #footer-cookie-settings:hover,
footer.footer #footer-network-link:hover,
footer.footer #footer-impressum-link:hover {
    color: #2563eb !important;
}

footer.footer #cookie-footer-link .settings-icon-small,
footer.footer #network-footer-link .settings-icon-small,
footer.footer #impressum-footer-link .settings-icon-small {
    stroke: currentColor !important;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.copyright-wrapper {
    position: relative;
}

.social-links-absolute {
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 1px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: transparent;
    color: #64748b !important;
    text-decoration: none !important;
    transition: transform 0.15s ease;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.social-link:active {
    transform: scale(0.92);
}

.social-link i {
    line-height: 1;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badges {
    opacity: 1;
}

.trust-badge {
    height: 62px;
    width: auto;
    object-fit: contain;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

/* ============================================
   GENERIC ACCORDION STYLES
   ============================================ */
.accordion-item {
    background-color: #dbeafe;
    border: none;
}

.accordion-button {
    background-color: #e3ecff;
    color: #1e293b;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: #c7d7ff;
    color: #1e293b;
}

.accordion-body {
    background-color: #e3ecff;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.back-to-top:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-link {
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form .newsletter-button {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Stack footer links vertically on mobile */
    .d-flex.gap-4 {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
    }

    .cookie-footer-link {
        text-align: center;
    }

    .social-links-absolute {
        position: static;
        justify-content: center;
        margin-top: 0.5rem;
        transform: none;
    }

    .social-link {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .trust-badge {
        height: 48px;
    }

    .trust-badges {
        gap: 0.5rem !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

@media (min-width: 769px) {
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .trust-badge {
        height: 66px;
    }
}
