/* styles-footer.css - Footer styles */

/* Desktop Layout */
.site-footer {
    display: block;
    position: relative;
    z-index: 999;
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    background: var(--bg-primary);
    width: 100%;
    margin: 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
}

/* Footer Columns */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-left {
    align-items: flex-start;
    gap: 12px;
}

.footer-col-center {
    align-items: center;
    justify-content: center;
}

.footer-col-right {
    align-items: flex-end;
    justify-content: center;
}

/* Store Buttons - Icon Only (like social icons) */
.footer-stores {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.btn-footer-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color .15s ease, transform .12s ease, background .15s ease, box-shadow .15s ease;
    border-radius: 6px;
    border: none;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-footer-store::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 6px;
}

.btn-footer-store:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.btn-footer-store:hover::before {
    opacity: 1;
}

.btn-footer-store:active {
    transform: translateY(-1px) scale(0.95);
}

.footer-store-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.btn-footer-store:hover .footer-store-icon {
    transform: scale(1.1);
}

/* Legal Links */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

.footer-link {
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    display: inline-block;
    position: relative;
}

.footer-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(169, 199, 255, 0.15), rgba(100, 150, 255, 0.08));
    border: 1px solid rgba(169, 199, 255, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.footer-link:hover {
    color: var(--accent-light);
}

.footer-link:hover::before {
    opacity: 1;
}

.footer-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    background: rgba(169, 199, 255, 0.08);
}

.footer-link:active {
    background: linear-gradient(135deg, rgba(169, 199, 255, 0.2), rgba(100, 150, 255, 0.12));
    transform: scale(0.96);
}

/* Social Media Icons */
.footer-socials {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color .15s ease, transform .12s ease, background .15s ease, box-shadow .15s ease;
    border-radius: 6px;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.social-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.social-link:active {
    transform: translateY(-1px) scale(0.95);
}

/* Copyright - Centered below all columns */
.footer-copy {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 16px 0 0 0;
}

/* Holiday Message - Also centered below */
.footer-holiday {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #E30A17;
    margin-top: 8px;
    letter-spacing: 0.5px;
    animation: footerHolidayPulse 2s ease-in-out infinite;
}

/* Holiday Message */
.footer-holiday {
    font-size: 13px;
    font-weight: 700;
    color: #E30A17;
    margin-top: 8px;
    letter-spacing: 0.5px;
    animation: footerHolidayPulse 2s ease-in-out infinite;
}

@keyframes footerHolidayPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Cookie Preferences Link */
.cookie-preferences-link {
    display: inline-flex;
    align-items: center;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .site-footer {
        padding: 24px 16px;
    }

    .footer-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .footer-col {
        width: 100%;
        align-items: center;
        gap: 0;
    }

    .footer-col-left {
        order: 1;
        gap: 12px;
    }

    .footer-col-center {
        order: 2;
    }

    .footer-col-right {
        order: 3;
    }

    /* Store buttons - side by side, centered */
    .footer-stores {
        justify-content: center;
        gap: 12px;
    }

    .footer-store-icon {
        width: 20px;
        height: 20px;
    }

    /* Legal links - stacked vertically */
    .footer-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .footer-links .footer-link {
        display: block;
        padding: 8px 0;
        width: 100%;
        text-align: center;
    }

    .footer-separator {
        display: none;
    }

    /* Social media icons - side by side, centered */
    .footer-socials {
        justify-content: center;
        gap: 16px;
        margin: 0;
    }

    /* Copyright - at bottom */
    .footer-copy {
        order: 4;
        font-size: 0.85rem;
        opacity: 0.7;
        margin: 0;
    }

    .footer-holiday {
        order: 5;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .site-footer {
        padding: 24px 16px;
    }

    .footer-stores {
        gap: 10px;
    }

    .footer-store-icon {
        width: 18px;
        height: 18px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-copy {
        font-size: 12px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .footer-link,
    .footer-link::before,
    .social-link {
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .footer-holiday {
        animation: none;
    }
}

/* Tablet/Desktop overrides */
@media (min-width: 769px) {
    /* Footer is now always visible in free scroll mode */
}

@media (min-width: 1025px) {
    .hero-content {
        align-items: flex-start;
        padding-top: 68px;
    }

    .features-section,
    .problems-section,
    .faq-section {
        padding-top: 68px;
        scroll-margin-top: 68px;
    }

    .faq-section {
        padding-bottom: 180px;
    }
}
