/* ==========================================================
   GHW Final Glow + Footer Tighten v15
   - medium red/yellow glow behind header logo
   - remove unused social icons after Facebook
   - tighten footer vertical height
   - keep live dot blinking
   ========================================================== */

/* Header logo glow: stronger than v14, lower and contained */
.ghw5-brand,
.ghw5-logo,
.ghw5-logoWrap,
.ghw-logo,
.ghw-logo-wrap,
.site-logo,
.site-brand,
header a:has(img[src*="logo"]),
header a:has(img[alt*="Hot Wheels"]),
header a:has(img[alt*="Got Hot Wheels"]),
header img[src*="logo"]:not(.ghwNoDirectGlow) {
    position: relative !important;
    isolation: isolate !important;
}

.ghw-v15-logo-glow,
.ghw5-logoWrap,
.ghw5-brand,
.ghw-logo,
.site-logo {
    position: relative !important;
    isolation: isolate !important;
}

.ghw-v15-logo-glow::before,
.ghw5-logoWrap::before,
.ghw5-brand::before,
.ghw-logo::before,
.site-logo::before {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    left: 50% !important;
    top: 56% !important;
    width: 118% !important;
    height: 82% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 999px !important;
    pointer-events: none !important;
    background:
        radial-gradient(ellipse at center,
            rgba(255, 216, 35, .40) 0%,
            rgba(255, 151, 0, .32) 30%,
            rgba(237, 17, 28, .28) 56%,
            rgba(237, 17, 28, .12) 72%,
            rgba(237, 17, 28, 0) 88%) !important;
    filter: blur(18px) !important;
    opacity: .92 !important;
}

.ghw-v15-logo-glow img,
.ghw5-logoWrap img,
.ghw5-brand img,
.ghw-logo img,
.site-logo img {
    position: relative !important;
    z-index: 2 !important;
    filter:
        drop-shadow(0 0 5px rgba(255, 210, 0, .52))
        drop-shadow(0 0 12px rgba(237, 17, 28, .42)) !important;
}

/* Do not let glow cover top security strip */
.ghw5-topbar,
.ghw-topbar,
.topbar,
.site-topbar {
    position: relative !important;
    z-index: 50 !important;
}

.ghw5-header,
.ghw-header,
.site-header,
header {
    overflow: visible !important;
}

/* Keep nav text above glow */
.ghw5-mainNav,
.ghw5-actions,
.ghw-nav,
.ghw-header-actions {
    position: relative !important;
    z-index: 5 !important;
}

/* Blink the LIVE dot and live badges robustly */
@keyframes ghwV15LiveBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 7px rgba(255, 0, 0, .85), 0 0 18px rgba(237, 17, 28, .45);
        filter: drop-shadow(0 0 6px rgba(255, 0, 0, .95));
    }
    50% {
        opacity: .36;
        transform: scale(.86);
        box-shadow: 0 0 3px rgba(255, 0, 0, .45), 0 0 8px rgba(237, 17, 28, .25);
        filter: drop-shadow(0 0 2px rgba(255, 0, 0, .45));
    }
}

.ghw-v15-live-dot,
.ghw-live-dot,
.ghw-section-live-dot,
.live-dot,
.ghw-live,
.ghw-card-live,
.ghw-live-badge,
.ghw5-live,
.badge-live,
.live-badge,
span[class*="live"],
span[class*="Live"] {
    animation: ghwV15LiveBlink .95s infinite ease-in-out !important;
}

/* If section dot is a plain red circle pseudo/element, force it */
.ghw-featured-section h2::before,
.ghw-auctions-section h2::before,
.ghw-auction-section h2::before,
section h2:has(+ .ghw-auction-grid)::before,
section h2:has(+ .ghw-listing-grid)::before {
    animation: ghwV15LiveBlink .95s infinite ease-in-out !important;
}

/* Topbar: remove unused social icons after Facebook */
.ghw5-topbar a[href*="instagram"],
.ghw5-topbar a[href*="youtube"],
.ghw5-topbar a[href*="tiktok"],
.ghw5-topbar a[href*="music"],
.ghw5-topbar a:not([href*="facebook"]):has(svg),
.ghw5-topbar a:not([href*="facebook"]):has(i),
.ghw-topbar a[href*="instagram"],
.ghw-topbar a[href*="youtube"],
.ghw-topbar a[href*="tiktok"],
.site-topbar a[href*="instagram"],
.site-topbar a[href*="youtube"],
.site-topbar a[href*="tiktok"] {
    display: none !important;
}

/* JS applies this to any social link after the first Facebook/icon link */
.ghw-v15-hide-social {
    display: none !important;
}

/* Footer social: keep Facebook only */
.ghw-footer-social a:nth-child(n+2),
.ghw5-footer-social a:nth-child(n+2),
.footer-social a:nth-child(n+2),
.site-footer .social a:nth-child(n+2),
.site-footer a[href*="instagram"],
.site-footer a[href*="youtube"],
.site-footer a[href*="tiktok"],
.site-footer a[href*="music"] {
    display: none !important;
}

/* Footer logo glow, subtle only */
.ghw-v15-footer-logo-glow,
footer .ghw-logo,
footer .site-logo,
footer a:has(img[src*="logo"]),
footer a:has(img[alt*="Hot Wheels"]) {
    position: relative !important;
    isolation: isolate !important;
}

.ghw-v15-footer-logo-glow::before,
footer .ghw-logo::before,
footer .site-logo::before,
footer a:has(img[src*="logo"])::before,
footer a:has(img[alt*="Hot Wheels"])::before {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    left: 50% !important;
    top: 52% !important;
    width: 112% !important;
    height: 72% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 999px !important;
    background: radial-gradient(ellipse at center,
        rgba(255, 190, 0, .25),
        rgba(237, 17, 28, .18) 55%,
        transparent 82%) !important;
    filter: blur(14px) !important;
    opacity: .62 !important;
}

/* Footer tighter up/down */
.ghw5-footer,
.ghw-site-footer,
.ghw-footer,
.site-footer,
footer {
    padding-top: 24px !important;
    padding-bottom: 12px !important;
    min-height: 0 !important;
}

.ghw5-footer-inner,
.ghw-footer-inner,
.ghw-footer-main,
.footer-main,
.site-footer .footer-main,
footer .ghw-wrap,
footer .ghw-container {
    gap: 24px !important;
    row-gap: 16px !important;
    align-items: start !important;
}

.ghw5-footer-brand,
.ghw-footer-brand,
.footer-brand {
    margin: 0 !important;
    padding: 0 !important;
}

.ghw5-footer-brand img,
.ghw-footer-brand img,
.footer-brand img,
footer img[src*="logo"] {
    max-width: 172px !important;
    margin-bottom: 10px !important;
}

.ghw5-footer p,
.ghw-footer p,
.site-footer p,
footer p {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    line-height: 1.35 !important;
}

.ghw5-footer h3,
.ghw5-footer h4,
.ghw-footer h3,
.ghw-footer h4,
.site-footer h3,
.site-footer h4,
footer h3,
footer h4 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1 !important;
}

.ghw5-footer ul,
.ghw-footer ul,
.site-footer ul,
footer ul {
    margin: 0 !important;
    padding: 0 !important;
}

.ghw5-footer li,
.ghw-footer li,
.site-footer li,
footer li {
    margin-bottom: 6px !important;
    line-height: 1.1 !important;
}

.ghw5-footer a,
.ghw-footer a,
.site-footer a,
footer a {
    line-height: 1.15 !important;
}

.ghw5-newsletter,
.ghw-footer-newsletter,
.footer-newsletter,
.site-footer .newsletter,
footer [class*="newsletter"] {
    margin: 0 !important;
    padding: 0 !important;
}

.ghw5-newsletter input,
.ghw-footer-newsletter input,
.footer-newsletter input,
.site-footer input[type="email"],
footer input[type="email"] {
    height: 42px !important;
    margin-bottom: 10px !important;
}

.ghw5-newsletter button,
.ghw-footer-newsletter button,
.footer-newsletter button,
.site-footer button[type="submit"],
footer button[type="submit"] {
    height: 42px !important;
    min-height: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.ghw5-footer-bottom,
.ghw-footer-bottom,
.footer-bottom,
.site-footer .footer-bottom,
footer [class*="bottom"] {
    margin-top: 18px !important;
    padding-top: 12px !important;
    padding-bottom: 0 !important;
}

/* Remove excess decorative divider/squiggle space if old patches created it */
.ghw-footer-wave,
.ghw5-footer-wave,
.footer-wave,
.ghw-red-wave,
.ghw5-red-wave,
.ghw-v15-footer-wave {
    display: none !important;
}

/* Slightly tighten How It Works and Featured sections without flattening them */
.ghw-how-section,
.ghw-how,
section[class*="how"] {
    padding-top: 42px !important;
    padding-bottom: 38px !important;
}

.ghw-featured-section,
.ghw-auctions-section,
.ghw-auction-section,
section[class*="featured"] {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* Mobile footer tighter */
@media (max-width: 800px) {
    .ghw5-footer,
    .ghw-site-footer,
    .ghw-footer,
    .site-footer,
    footer {
        padding-top: 20px !important;
        padding-bottom: 10px !important;
    }

    .ghw5-footer-inner,
    .ghw-footer-inner,
    .footer-main,
    footer .ghw-wrap,
    footer .ghw-container {
        gap: 16px !important;
    }

    .ghw-v15-logo-glow::before,
    .ghw5-logoWrap::before,
    .ghw5-brand::before,
    .ghw-logo::before,
    .site-logo::before {
        width: 112% !important;
        height: 74% !important;
        filter: blur(15px) !important;
        opacity: .78 !important;
    }
}
