/* =========================================================
   EdNet® Homez™ — Enhancement Layer
   Builds ON TOP of streamit.min.css. Does not replace it.
   ========================================================= */

/* ── Kanit font weights (consolidated) ── */
.kanit-thin          { font-family:"Kanit",sans-serif; font-weight:100; }
.kanit-extralight    { font-family:"Kanit",sans-serif; font-weight:200; }
.kanit-light         { font-family:"Kanit",sans-serif; font-weight:300; }
.kanit-regular       { font-family:"Kanit",sans-serif; font-weight:400; }
.kanit-medium        { font-family:"Kanit",sans-serif; font-weight:500; }
.kanit-semibold      { font-family:"Kanit",sans-serif; font-weight:600; }
.kanit-bold          { font-family:"Kanit",sans-serif; font-weight:700; }
.kanit-extrabold     { font-family:"Kanit",sans-serif; font-weight:800; }
.kanit-black         { font-family:"Kanit",sans-serif; font-weight:900; }

/* ── Overflow fix ── */
body, html { overflow-x: hidden; width: 100%; }
img { max-width: 100%; height: auto; }

/* ─────────────────────────────────────────────────────────
   INDEX.PHP — Below-hero enhancements
   ───────────────────────────────────────────────────────── */

/* Pitch section */
.eh-pitch {
    padding: 80px 4% 60px;
    text-align: center;
}
.eh-pitch .sub-title {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #e50914;
    margin-bottom: 18px;
    position: relative;
}
.eh-pitch .sub-title::before,
.eh-pitch .sub-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(229,9,20,0.5);
}
.eh-pitch .sub-title::before { right: calc(100% + 10px); }
.eh-pitch .sub-title::after  { left:  calc(100% + 10px); }
.eh-pitch h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 20px;
}
.eh-pitch p.desc {
    color: #b3b3b3;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 700px;
    margin: 0 auto 10px;
}
.eh-pitch p.desc.highlight {
    color: #6aacff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Features heading */
.eh-features-heading {
    padding: 60px 4% 20px;
    text-align: center;
}
.eh-features-heading .fs-130 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.88;
    letter-spacing: -3px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.15);
    background: linear-gradient(135deg, #ffffff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
}
.eh-features-heading .sub-title {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #b3b3b3;
    margin-top: 12px;
}

/* Feature cards grid */
.eh-features-grid {
    padding: 24px 4% 64px;
}
.eh-features-grid .row { row-gap: 1.5rem; }

.eh-feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 28px 20px 24px;
    text-align: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.eh-feature-card:hover {
    background: rgba(229,9,20,0.06);
    border-color: rgba(229,9,20,0.25);
    transform: translateY(-4px);
}
.eh-feature-card .image-size-iconX {
    height: 72px;
    width: 72px;
    object-fit: contain;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.eh-feature-card:hover .image-size-iconX { transform: scale(1.08); }
.eh-feature-card h6.heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.eh-feature-card p {
    font-size: 0.8rem;
    color: #808080;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

/* Billboard "THE THING IS" */
.eh-billboard {
    padding: 60px 4%;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.eh-billboard .col-lg-6:first-child img {
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.eh-billboard .col-lg-6:first-child img:hover {
    border-color: rgba(229,9,20,0.4);
    box-shadow: 0 0 40px rgba(229,9,20,0.15);
}
.eh-billboard .sub-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e50914;
    margin-bottom: 14px;
}
.eh-billboard h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.4px;
    color: #ffffff;
    margin-bottom: 18px;
}
.eh-billboard p.desc {
    color: #b3b3b3;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Footer CTA section */
.eh-footer-cta {
    border-top: 1px solid rgba(255,255,255,0.06);
}
.eh-footer-cta .footer-top {
    background: radial-gradient(ellipse at center bottom, rgba(229,9,20,0.07) 0%, transparent 65%),
                url(images/noise.webp) no-repeat center center/cover;
}
.eh-footer-cta .sub-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e50914;
    margin-bottom: 16px;
}
.eh-footer-cta .footer-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 20px;
}
.eh-footer-cta p.desc {
    color: #b3b3b3;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 32px;
}
.eh-footer-cta .btn-primary {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 5px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.eh-footer-cta .btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 32px rgba(229,9,20,0.4);
}

/* Features image banner */
.eh-features-banner img {
    border-radius: 0;
    margin: 0;
    display: block;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .eh-pitch { padding: 50px 5% 40px; }
    .eh-features-heading .fs-130 { font-size: 3.5rem; }
    .eh-features-grid { padding: 16px 5% 48px; }
    .eh-feature-card { padding: 22px 16px 18px; }
    .eh-billboard { padding: 40px 5%; }
}

/* ─────────────────────────────────────────────────────────
   SELECTUSER.PHP — Profile page enhancements
   (Adds to existing card CSS, does not override card shapes
    or borders — those stay exactly as originally built)
   ───────────────────────────────────────────────────────── */

/* Scrollable ticker — marquee animation */
.rating-line {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    margin-top: 12px;
    padding: 0 8px;
    width: 100%;
    line-height: 1.5;
    overflow: hidden;
    position: relative;
    max-height: 52px;
}
.rating-line .ticker-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: ticker-scroll 12s linear infinite;
}
.rating-line .ticker-inner:hover { animation-play-state: paused; }
.rating-line .ticker-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.rating-line i { font-size: 0.65rem; flex-shrink: 0; }

@keyframes ticker-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Swiper nav button polish */
.swiper-button-next,
.swiper-button-prev {
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    box-shadow: 0 0 24px rgba(229,9,20,0.4) !important;
}

/* ─────────────────────────────────────────────────────────
   VALIDATE.PHP — Passcode input enhancements
   ───────────────────────────────────────────────────────── */
.access-code-input {
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
    caret-color: #e50914;
}
.access-code-input:focus {
    background: rgba(255,255,255,0.1) !important;
}
.access-code-input.has-value {
    border-color: rgba(229,9,20,0.5) !important;
    background: rgba(229,9,20,0.06) !important;
}
.access-code-input.error-flash {
    animation: error-flash 0.35s ease;
    border-color: #e50914 !important;
}
@keyframes error-flash {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    60%       { transform: translateX(6px); }
}

/* Passcode position label */
.passcode-position-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e50914;
    background: rgba(229,9,20,0.08);
    border: 1px solid rgba(229,9,20,0.2);
    border-radius: 100px;
    padding: 3px 12px;
    margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════
   BRAND IDENTITY — Canonical double-image logo
   Applied uniformly across ALL pages
   ═══════════════════════════════════════════════════════ */

/* The brand anchor — never styled with text-primary colour */
.brand-anchor {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    line-height: 1;
}

/* EdNet logo — the left mark */
.brand-ednet {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
    /* Fade in first, then continuous shimmer glow */
    animation:
        brand-fade-in  0.7s 0.1s cubic-bezier(0.22,1,0.36,1) both,
        brand-shimmer  3.5s 1.2s ease-in-out infinite;
}

/* Homez wordmark — the right mark, slightly smaller, tight left margin */
.brand-homez {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
    margin-left: -4px;
    /* Fade in slightly after EdNet, then continuous shimmer glow */
    animation:
        brand-fade-in  0.7s 0.35s cubic-bezier(0.22,1,0.36,1) both,
        brand-shimmer  3.5s 1.55s ease-in-out infinite;
}

/* Brand name text — fades in then fades out, stays hidden, collapses width */
.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.48rem;
    font-weight: 600;
    color: #ffffff;
    margin-left: 8px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
    /* Appears briefly then disappears — never comes back */
    animation:
        brand-name-flash   2.8s 0.6s ease forwards,
        brand-name-collapse 0.4s 3.5s ease forwards;
    /* Start invisible */
    opacity: 0;
    overflow: hidden;
}

/* After opacity reaches 0, collapse the width so logos stay left-aligned */
@keyframes brand-name-collapse {
    from { max-width: 300px; margin-left: 8px; }
    to   { max-width: 0px;   margin-left: 0px; }
}

/* ── Logo keyframes ──────────────────────────────────────── */

/* Each image fades up individually */
@keyframes brand-fade-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Continuous gentle shimmer — brightness pulse */
@keyframes brand-shimmer {
    0%,  100% { filter: brightness(1)    drop-shadow(0 0 0px rgba(212,175,55,0)); }
    50%        { filter: brightness(1.18) drop-shadow(0 0 8px rgba(212,175,55,0.35)); }
}

/* Brand name: fades in, holds briefly, then fades out permanently */
@keyframes brand-name-flash {
    0%   { opacity: 0;   transform: translateX(-4px); }
    15%  { opacity: 1;   transform: translateX(0); }
    65%  { opacity: 1;   transform: translateX(0); }
    100% { opacity: 0;   transform: translateX(-4px); }
}

/* Reduced motion — skip all logo animations */
@media (prefers-reduced-motion: reduce) {
    .brand-ednet,
    .brand-homez { animation: none; opacity: 1; }
    .brand-name  { animation: none; opacity: 0; }
}

/* Mobile/tablet — the nav is already tight with family name / logout /
   trial badge etc. crowded in beside the logo. Flashing the full
   "EdNet Homez" wordmark at full width for ~3 seconds on page load
   would overflow into that other content, so skip the flash entirely
   here and start straight from its permanent, collapsed (icon-only)
   state. Purely decorative, so nothing functional is lost. */
@media (max-width: 900px) {
    .brand-name { animation: none; opacity: 0; max-width: 0; margin-left: 0; }
}

/* Uniform top-bar across all pages */
.eh-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 64px;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.eh-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.eh-topbar .btn-signin {
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.eh-topbar .btn-signin:hover { border-color: #fff; color: #fff; }
.eh-topbar .btn-signup {
    padding: 8px 18px;
    border: none;
    border-radius: 5px;
    background: #e50914;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.eh-topbar .btn-signup:hover { background: #b20710; color: #fff; }
