/**
 * Halloweenradio.net Kids — standalone subdomain theme.
 * Optional hero art: uploads/kids-hero/hero-desktop.webp (+ .jpg) and hero-mobile.webp (+ .jpg)
 */

:root {
    --kids-player-h: 76px;
    --kids-purple: #5b4fb9;
    --kids-purple-deep: #352d6b;
    --kids-mint: #69db7c;
    --kids-sun: #ffe066;
    --kids-card: rgba(255, 255, 255, 0.07);
    --kids-card-border: rgba(255, 255, 255, 0.12);
}

.hr-kids-site {
    font-family: "Nunito", system-ui, sans-serif;
    min-height: 100vh;
    padding-bottom: 1.5rem;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 224, 102, 0.12), transparent 55%),
        radial-gradient(900px 500px at 100% 20%, rgba(105, 219, 124, 0.1), transparent 50%),
        linear-gradient(165deg, #1e1a4a 0%, #2d2466 35%, #1a1538 100%);
    color: #f3f0ff;
}

/* Full-viewport art (same uploads as former hero strip) — see kids-header.php */
.hr-kids-site--hero-bg {
    background: #14102a;
}

.hr-kids-site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hr-kids-site-bg__layer {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

@media (max-width: 767.98px) {
    .hr-kids-site-bg--dual .hr-kids-site-bg__layer--desktop {
        display: none;
    }
    .hr-kids-site-bg--dual .hr-kids-site-bg__layer--mobile {
        display: block;
    }
}

@media (min-width: 768px) {
    .hr-kids-site-bg--dual .hr-kids-site-bg__layer--mobile {
        display: none;
    }
    .hr-kids-site-bg--dual .hr-kids-site-bg__layer--desktop {
        display: block;
    }
}

.hr-kids-site-bg__tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(12, 10, 28, 0.35) 0%,
        rgba(26, 21, 56, 0.55) 40%,
        rgba(26, 21, 56, 0.78) 100%
    );
    pointer-events: none;
}

.hr-kids-site--has-player {
    padding-bottom: calc(var(--kids-player-h) + env(safe-area-inset-bottom, 0px));
}

.hr-kids-site h1,
.hr-kids-site h2,
.hr-kids-site .hr-kids-brand-text {
    font-family: "Fredoka", "Nunito", system-ui, sans-serif;
}

.hr-kids-wrap {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Same reading width as cards so hero + body line up (Bootstrap .container is wider). */
.hr-kids-site .hr-kids-rail {
    max-width: 720px;
}

.hr-kids-site .hr-kids-topbar .container {
    max-width: 720px;
}

/* —— Top bar —— */
.hr-kids-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(26, 21, 56, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--kids-card-border);
}

.hr-kids-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hr-kids-brand-pumpkin {
    font-size: 1.35rem;
    line-height: 1;
}

.hr-kids-brand-kids {
    color: var(--kids-sun);
    font-weight: 700;
}

.hr-kids-btn-parent {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.hr-kids-btn-parent:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* —— Hero (text band over global site bg; art lives in .hr-kids-site-bg) —— */
.hr-kids-hero {
    position: relative;
    min-height: clamp(260px, 52vw, 420px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hr-kids-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 21, 56, 0.88) 0%,
        rgba(26, 21, 56, 0.42) 50%,
        rgba(45, 36, 102, 0.2) 100%
    );
    pointer-events: none;
}

.hr-kids-site--hero-bg .hr-kids-hero-overlay {
    background: linear-gradient(
        to top,
        rgba(26, 21, 56, 0.82) 0%,
        rgba(26, 21, 56, 0.28) 55%,
        rgba(26, 21, 56, 0.05) 100%
    );
}

.hr-kids-hero-inner {
    z-index: 2;
    padding: 2rem 0 2.25rem;
}

/* Hero is display:flex; Bootstrap .container uses width:100% so this block stretched full viewport
   while <main class="container hr-kids-rail"> stayed centered — match the main column.
   !important wins if another stylesheet touches .container after kids-site.css. */
.hr-kids-site .hr-kids-hero .hr-kids-hero-inner {
    align-self: center !important;
    width: min(100%, 720px) !important;
    max-width: 720px !important;
    flex: 0 1 auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hr-kids-hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.75rem;
    background: rgba(105, 219, 124, 0.2);
    border: 1px solid rgba(105, 219, 124, 0.45);
    color: #c8ffd4;
}

.hr-kids-hero-title {
    font-size: clamp(1.65rem, 4.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.65rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hr-kids-hero-lead {
    font-size: 1.05rem;
    max-width: 36rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.hr-kids-btn-play {
    background: linear-gradient(135deg, #ff9f43, #ff6b6b);
    border: none;
    color: #1a0f14;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(255, 107, 107, 0.35);
}

.hr-kids-btn-play:hover {
    filter: brightness(1.06);
    color: #1a0f14;
}

.hr-kids-hero-warn {
    font-size: 0.95rem;
    color: #ffe066;
    max-width: 32rem;
}

/* —— Content cards —— */
.hr-kids-card {
    background: var(--kids-card);
    border: 1px solid var(--kids-card-border);
    border-radius: 1.25rem;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hr-kids-site--hero-bg .hr-kids-card:not(.hr-kids-card--parents) {
    background: rgba(22, 18, 48, 0.82);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hr-kids-card--parents {
    background: rgba(99, 195, 40, 0.08);
    border-color: rgba(105, 219, 124, 0.25);
}

.hr-kids-h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.hr-kids-h2--sm {
    font-size: 1.1rem;
}

.hr-kids-h2-ico {
    margin-right: 0.25rem;
}

.hr-kids-list {
    margin: 0;
    padding-left: 1.15rem;
}

.hr-kids-list li {
    margin-bottom: 0.45rem;
}

.hr-kids-inline-link {
    color: var(--kids-sun);
    font-weight: 600;
}

.hr-kids-mini-game-hint {
    font-size: 0.9rem;
    opacity: 0.88;
}

.hr-kids-pill-game {
    background: rgba(255, 159, 67, 0.25);
    color: #ffe8cc;
    font-weight: 700;
    margin-right: 0.35rem;
}

/* —— Creature tap game —— */
.hr-kids-game-zone {
    position: fixed;
    z-index: 1040;
    left: 0;
    right: 0;
    top: 3.25rem;
    bottom: 12px;
    pointer-events: none;
    overflow: hidden;
}

.hr-kids-site .hr-kids-creature {
    appearance: none;
    -webkit-appearance: none;
    color: inherit;
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.12s ease, opacity 0.2s ease;
    animation: hrKidsPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.hr-kids-site .hr-kids-creature:active {
    transform: translate(-50%, -50%) scale(0.92);
}

.hr-kids-site .hr-kids-creature--gone {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    pointer-events: none;
}

@keyframes hrKidsPop {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.hr-kids-site--has-player .hr-kids-game-zone {
    bottom: calc(var(--kids-player-h) + 8px);
}

.hr-kids-game-score {
    position: fixed;
    z-index: 1041;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 4.25rem;
    padding: 0.35rem 0.6rem 0.45rem;
    border-radius: 12px;
    background: rgba(26, 21, 56, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
    font-family: "Fredoka", sans-serif;
}

.hr-kids-game-score-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
}

.hr-kids-game-score-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--kids-sun);
    line-height: 1;
}

.hr-kids-site--has-player .hr-kids-game-score {
    bottom: calc(var(--kids-player-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

@media (prefers-reduced-motion: reduce) {
    .hr-kids-site .hr-kids-creature {
        animation: none;
    }
}

/* —— Player (compact bar; IDs match player.js) —— */
.hr-kids-site .hr-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
}

.hr-kids-site .hr-player-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.hr-kids-site .hr-player-track {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hr-kids-site .hr-player-info {
    min-width: 0;
    flex: 1;
}

.hr-kids-site .hr-player-stations {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hr-kids-site .hr-player-station {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #ccc;
    cursor: default;
}

.hr-kids-site .hr-player-station.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--station-color, #63c328);
    color: #fff;
}

.hr-kids-site .hr-player-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.hr-kids-site .hr-player-volume {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hr-kids-site .hr-player-btn {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hr-kids-site .hr-btn-play {
    background: linear-gradient(135deg, #ff9f43, #ff6b6b);
    color: #1a0f14;
}

.hr-kids-site .hr-volume-slider {
    width: 72px;
    accent-color: var(--kids-mint);
}

.hr-kids-site .hr-player-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
    opacity: 0.35;
    flex-shrink: 0;
}

.hr-kids-site .hr-eq-bar {
    width: 3px;
    border-radius: 2px;
    background: var(--kids-mint);
    transform-origin: bottom;
    animation: eqBounce 0.8s ease-in-out infinite;
}

.hr-kids-site .hr-eq-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.hr-kids-site .hr-eq-bar:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.hr-kids-site .hr-eq-bar:nth-child(3) { height: 6px; animation-delay: 0.3s; }
.hr-kids-site .hr-eq-bar:nth-child(4) { height: 18px; animation-delay: 0.45s; }

@keyframes eqBounce {
    0%, 100% { transform: scaleY(0.35); }
    50% { transform: scaleY(1); }
}

.hr-kids-player.hr-player {
    --hr-player-height: calc(var(--kids-player-h) + env(safe-area-inset-bottom, 0px));
    height: var(--hr-player-height);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    background: rgba(26, 21, 56, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1050;
}

.hr-kids-player .hr-player-inner {
    max-width: 900px;
    padding: 0 0.75rem;
    gap: 0.5rem;
}

.hr-kids-player .hr-player-track {
    flex: 1;
    min-width: 0;
}

.hr-kids-player-stations {
    flex-shrink: 0;
}

.hr-kids-only-station {
    border-radius: 999px !important;
    padding: 0.35rem 0.85rem !important;
    min-width: auto !important;
}

.hr-kids-only-station .hr-ps-abbr {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.hr-kids-player-now {
    font-size: 0.62rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 224, 102, 0.9) !important;
}

.hr-kids-player .hr-player-title,
.hr-kids-player .hr-player-artist {
    font-size: 0.82rem;
}

.hr-kids-site .hr-player-art {
    overflow: hidden;
    border-radius: 10px;
    flex-shrink: 0;
}

.hr-kids-site .hr-player-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: none;
}

.hr-kids-player .hr-player-art {
    width: 48px;
    height: 48px;
}
