/* ============================================================
   Footer — Premium dark footer with gradient accents
   ============================================================ */

.wishly-footer {
    background: linear-gradient(180deg, #0d0b1a 0%, #090712 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 0 0 2rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

/* Subtle background glow */
.wishly-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Gradient separator ───────────────────────────────────── */

.wishly-footer__separator {
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1, #3b82f6, #ec4899);
    background-size: 200% 100%;
    animation: wishly-footer-gradient 6s ease infinite;
    margin-bottom: 3rem;
    border-radius: 2px;
}

@keyframes wishly-footer-gradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ── Grid layout ──────────────────────────────────────────── */

.wishly-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

/* ── Brand column ─────────────────────────────────────────── */

.wishly-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wishly-footer__logo {
    margin-bottom: 0.25rem;
}

.wishly-footer__tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    max-width: 320px;
}

/* ── Social icons ─────────────────────────────────────────── */

.wishly-footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.wishly-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.wishly-footer__social-link:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

/* ── Column headings ──────────────────────────────────────── */

.wishly-footer__heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.25rem;
}

/* ── Links ────────────────────────────────────────────────── */

.wishly-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wishly-footer__links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease;
    position: relative;
    display: inline-block;
}

.wishly-footer__links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    transition: width 0.3s ease;
}

.wishly-footer__links a:hover {
    color: #fff;
}

.wishly-footer__links a:hover::after {
    width: 100%;
}

/* ── Newsletter ───────────────────────────────────────────── */

.wishly-footer__newsletter-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.wishly-footer__newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.wishly-footer__newsletter-form .wishly-input--sm {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wishly-footer__newsletter-form .wishly-input--sm::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.wishly-footer__newsletter-form .wishly-input--sm:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.wishly-footer__newsletter-form .wishly-btn--sm {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ── Bottom bar ───────────────────────────────────────────── */

.wishly-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wishly-footer__copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* ── Trust badges (glass effect) ──────────────────────────── */

.wishly-footer__badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wishly-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.wishly-footer__badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {
    .wishly-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .wishly-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .wishly-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .wishly-footer__brand {
        grid-column: auto;
    }

    .wishly-footer__separator {
        margin-bottom: 2rem;
    }

    .wishly-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .wishly-footer__newsletter-form {
        flex-direction: column;
    }

    .wishly-footer__badges {
        flex-direction: column;
    }
}
