/* ================================================================
   Viral Engine — Enhanced Footer
   Mobile-first responsive design
   ================================================================ */

/* ── Base Footer ─────────────────────────────────────────────── */
.ve-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.ve-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(230, 57, 38, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(230, 57, 38, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ── Gradient Accent Line ────────────────────────────────────── */
.ve-footer-accent {
    height: 3px;
    background: linear-gradient(90deg, #e63926, #f59e0b, #e63926, #cc3222, #e63926);
    background-size: 200% 100%;
    animation: ve-accent-shimmer 4s linear infinite;
}

@keyframes ve-accent-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Main Content Area ───────────────────────────────────────── */
.ve-footer-main {
    padding: 3rem 1.25rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .ve-footer-main {
        padding: 4rem 2rem;
    }
}

/* ── Top Row: Brand + Newsletter ─────────────────────────────── */
.ve-footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .ve-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }
}

/* ── Brand ────────────────────────────────────────────────────── */
.ve-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ve-footer-logo,
.ve-footer-logo a {
    font-size: 1.75rem !important;
    font-weight: 900 !important;
    font-style: italic;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #fff !important;
    text-decoration: none !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ve-footer-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0;
    max-width: 360px;
}

/* ── Social Icons ────────────────────────────────────────────── */
.ve-footer-socials {
    display: flex !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    margin: 0.5rem 0 0 !important;
    list-style: none !important;
    flex-wrap: wrap !important;
}

.ve-footer-socials li {
    margin: 0 !important;
}

.ve-footer-socials li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

.ve-footer-socials li a:hover {
    transform: translateY(-4px) !important;
    color: #fff !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Platform specific hover colors */
.ve-social-facebook:hover {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.45) !important;
}

.ve-social-twitter:hover {
    background: #000000 !important;
    border-color: #333 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

.ve-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.45) !important;
}

.ve-social-youtube:hover {
    background: #FF0000 !important;
    border-color: #FF0000 !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.45) !important;
}

.ve-social-tiktok:hover {
    background: #010101 !important;
    border-color: #25F4EE !important;
    box-shadow: 0 0 20px rgba(37, 244, 238, 0.25) !important;
}

.ve-footer-socials li a svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
    display: block !important;
}

/* ── Newsletter ──────────────────────────────────────────────── */
.ve-footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ve-footer-newsletter-desc {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
}

.ve-footer-newsletter-form {
    display: flex;
    gap: 0;
    margin-top: 0.5rem;
}

.ve-footer-newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.ve-footer-newsletter-form input::placeholder {
    color: #94a3b8;
}

.ve-footer-newsletter-form input:focus {
    border-color: #e63926;
    background: rgba(230, 57, 38, 0.05);
}

.ve-footer-newsletter-form button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #e63926, #cc3222);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ve-footer-newsletter-form button:hover {
    background: linear-gradient(135deg, #cc3222, #b62d1e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 38, 0.3);
}

/* Mobile: stack form vertically */
@media (max-width: 480px) {
    .ve-footer-newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ve-footer-newsletter-form input {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .ve-footer-newsletter-form button {
        border-radius: 8px;
        padding: 1rem;
    }
}

/* ── Divider ─────────────────────────────────────────────────── */
.ve-footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    margin: 2.5rem 0;
}

/* ── Link Headings ───────────────────────────────────────────── */
.ve-footer-heading {
    font-size: 0.7rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: #f1f5f9 !important;
    margin: 0 0 1rem !important;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(230, 57, 38, 0.3);
    display: inline-block;
}

/* ── Links Grid ──────────────────────────────────────────────── */
.ve-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ve-footer-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

/* ── Footer Nav Links ────────────────────────────────────────── */
.ve-footer-nav,
.ve-footer-nav ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.ve-footer-nav li {
    margin: 0 !important;
    padding: 0 !important;
}

.ve-footer-nav a,
.ve-footer-nav .wp-block-navigation-item__content {
    font-size: 0.875rem !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    padding: 0.35rem 0 !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    border-bottom: 1px solid transparent !important;
}

.ve-footer-nav a:hover,
.ve-footer-nav .wp-block-navigation-item__content:hover {
    color: #fff !important;
    border-bottom-color: rgba(230, 57, 38, 0.5) !important;
    padding-left: 4px !important;
}

/* Navigation block overrides */
.ve-footer-nav .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.ve-footer-nav .wp-block-navigation-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Bottom Bar ──────────────────────────────────────────────── */
.ve-footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
}

.ve-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .ve-footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.25rem 2rem;
    }
}

.ve-footer-copyright {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

.ve-footer-credit {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

.ve-footer-credit strong {
    color: #e63926;
    font-weight: 800;
}

/* ── Mobile Polish ───────────────────────────────────────────── */
@media (max-width: 767px) {
    .ve-footer-main {
        padding: 2.5rem 1.25rem;
    }

    .ve-footer-brand {
        text-align: center;
        align-items: center;
    }

    .ve-footer-tagline {
        text-align: center;
    }

    .ve-footer-socials {
        justify-content: center !important;
    }

    .ve-footer-newsletter {
        text-align: center;
        align-items: center;
    }

    .ve-footer-newsletter-desc {
        text-align: center;
    }

    .ve-footer-heading {
        display: block !important;
        text-align: center;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .ve-footer-links>.wp-block-group {
        text-align: center;
    }

    .ve-footer-nav {
        align-items: center !important;
    }

    .ve-footer-nav a:hover,
    .ve-footer-nav .wp-block-navigation-item__content:hover {
        padding-left: 0 !important;
    }
}

/* ── Touch targets ───────────────────────────────────────────── */
@media (pointer: coarse) {

    .ve-footer-nav a,
    .ve-footer-nav .wp-block-navigation-item__content {
        padding: 0.5rem 0 !important;
        min-height: 44px;
        display: flex !important;
        align-items: center !important;
    }

    .ve-footer-socials li a {
        width: 44px !important;
        height: 44px !important;
    }
}