/* ==========================================================================
   Sunlight Mirage — Hero
   File: usersc/templates/<active_theme>/css/hero.css
   Depends on :root tokens from nav.css
   ========================================================================== */

/* ---------- Hero Layout ------------------------------------------------- */

.hero-neon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding-top: calc(var(--nav-h) + 24px);
}

/* ---------- Brand Badge (hero corner) ---------------------------------- */

.hero-neon .brand-badge {
  position: absolute;
  left: clamp(8px, 2vw, 24px);
  top: calc(var(--nav-h) + 8px);
  width: 92px;
  height: auto;
  opacity: .55;
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(0 0 18px rgba(0,231,255,.35))
    drop-shadow(0 0 28px rgba(255,0,200,.20));
  transition:
    opacity .22s ease,
    transform .22s ease,
    filter .22s ease;
  z-index: 3;
}

@media (max-width: 575.98px) {
  .hero-neon .brand-badge {
    width: 72px;
    top: calc(var(--nav-h) + 4px);
  }
}

/* Context tweak: hero buttons inside hero-neon */
.hero-neon .btn {
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}

/* =========================
   Sunlight Mirage – WHMCS Hero
   Cleaned: only what the current homepage uses
   ========================= */

/* Make the WHMCS hero band sit on the Mirage canvas */
section#home-banner,
#home-banner,
.home-banner {
    background: transparent !important;
    color: #fff;
}

/* Hero headings on WHMCS band */
.mirage-hero h1,
.mirage-hero h2,
#home-banner h2,
.home-banner h2 {
    color: #9fd7ff !important;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Tighten spacing between heading and divider */
#home-banner h2,
.home-banner h2 {
    margin-top: 0;         /* no extra space above */
    margin-bottom: 16px;   /* small gap before the divider */
}

/* Remove teal background from the shortcuts band under the hero */
#home-shortcuts,
.home-shortcuts {
    background: transparent !important;
}

/* Panel heading (e.g. "News") – match Mirage text */
.panel-home .panel-heading {
    background: transparent !important;
    color: var(--mirage-text) !important;
}

/* Shortcut tiles (BUY A DOMAIN / ORDER HOSTING / MAKE PAYMENT / GET SUPPORT) */
.home-shortcuts .item {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    color: var(--mirage-text) !important;
}
.home-shortcuts .item a {
    color: var(--mirage-text) !important;
}

/* Domain search inputs within hero band */
#home-banner .form-control,
.home-banner .form-control {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #eaf0ff !important;
}
#home-banner ::placeholder,
.home-banner ::placeholder {
    color: #cfd8ff;
    opacity: .85;
}

/* Primary Search / Transfer buttons */
#home-banner .btn.search,
#home-banner .btn.transfer,
.home-banner .btn.search,
.home-banner .btn.transfer {
    background: linear-gradient(
        120deg,
        rgba(0, 231, 255, 0.18),
        rgba(255, 0, 200, 0.24)
    ) !important;
    color: #a7e8ff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .58rem 1.45rem !important;
    text-transform: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
    transition:
        background .15s ease,
        box-shadow .15s ease,
        color .15s ease;
}

/* Keep WHMCS shape: Search and Transfer fused on the right */
#home-banner .btn.search,
.home-banner .btn.search {
    border-radius: 0 !important;
    border-right: 0 !important;
}
#home-banner .btn.transfer,
.home-banner .btn.transfer {
    border-radius: 0 8px 8px 0 !important;
    margin-left: 0;
}

/* Hover state for search/transfer buttons */
#home-banner .btn.search:hover,
#home-banner .btn.transfer:hover,
.home-banner .btn.search:hover,
.home-banner .btn.transfer:hover {
    background: linear-gradient(
        115deg,
        rgba(0, 231, 255, 0.32),
        rgba(255, 0, 200, 0.38)
    ) !important;
    color: #dff9ff !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.48);
}

/* Glass frame around the input group in the hero */
section#home-banner .input-group.input-group-lg,
#home-banner .input-group.input-group-lg,
.home-banner .input-group.input-group-lg {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: .9rem !important;
    padding: .35rem !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

/* Ensure the INPUT matches the rounded glass frame, but
   do NOT override the custom radius on the Search/Transfer buttons */
section#home-banner .input-group.input-group-lg .form-control,
#home-banner .input-group.input-group-lg .form-control,
.home-banner .input-group.input-group-lg .form-control {
    border-radius: .6rem !important;
}

/* Hero dividers under the domain search heading */

#home-banner .intro-divider,
.home-banner .intro-divider {
    display: block;
    width: 525px;
    height: 2px;
    margin: 28px auto 32px;   /* spacing above search bar */
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0, 231, 255, 0.40),
        rgba(255, 0, 200, 0.40)
    );
    box-shadow: 0 0 18px rgba(0, 231, 255, 0.25);
}

#home-banner .divider-secondary,
.home-banner .divider-secondary {
    display: block;
    width: 525px;
    height: 2px;
    margin: 32px auto 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0, 231, 255, 0.35),
        rgba(255, 0, 200, 0.35)
    );
    box-shadow: 0 0 18px rgba(0, 231, 255, 0.18);
}

/* Hero band padding (top & bottom) */
#home-banner,
.home-banner {
    padding-top: 8px !important;   /* fine-tune vertical position */
    padding-bottom: 24px;
}

/* ------------------------------------------------------------------
   Marketing hero headline + subtitle above domain search
   ------------------------------------------------------------------ */

#home-banner .mirage-hero-title,
.home-banner .mirage-hero-title {
    font-size: clamp(2.25rem, 4vw, 3.4rem);
    font-weight: 700;
    margin: 0 0 12px;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* Gradient accent on "Fast, Secure" */
#home-banner .mirage-hero-title .hero-accent,
.home-banner .mirage-hero-title .hero-accent {
    background-image: linear-gradient(90deg, var(--mirage-cyan), var(--mirage-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}

/* Subtitle under the main hero heading */
#home-banner .mirage-hero-subtitle,
.home-banner .mirage-hero-subtitle {
    max-width: 720px;
    margin: 0 auto 24px;
    color: var(--mirage-muted);
    font-size: 1.08rem;
    text-align: center;
}

/* Mobile-responsive hero heading refinement */
@media (max-width: 767px) {
    #home-banner h2,
    .home-banner h2 {
        font-size: 1.65rem !important;
        line-height: 1.2;
        margin-bottom: 14px !important;
    }

    #home-banner .intro-divider,
    .home-banner .intro-divider {
        width: 70% !important;   /* prevents divider looking too wide on small screens */
    }

    #home-banner .divider-secondary,
    .home-banner .divider-secondary {
        width: 70% !important;
    }
}

/* ==========================================================
   Knight Rider–style sweeping light for hero dividers
   (apply class "mirage-sweep" in the markup)
   ========================================================== */

.mirage-sweep {
    position: relative;
    overflow: hidden;
}

.mirage-sweep::after {
    content: "";
    position: absolute;
    top: -4px;           /* extend above the 2px line */
    left: -30%;
    width: 24%;          /* width of the sweeping bar */
    height: 200%;        /* taller so the glow is obvious */
    background: linear-gradient(
        90deg,
        rgba(0, 231, 255, 0) 0%,
        rgb(0, 229, 255) 50%,
        rgba(255, 0, 200, 0) 100%
    );
    animation: mirageSweep 2.8s linear infinite;
    filter: blur(2px);
    pointer-events: none;
}

@keyframes mirageSweep {
    0%   { left: -30%; }
    50%  { left: 105%; }
    100% { left: -30%; }
}
