/* Namaste Radio - the kids look for every public page except the homepage.

   The homepage (templates/basic/home.blade.php) carries its own copy of the
   palette inline; this sheet is the same design for
   layouts/frontend.blade.php and the error pages. Bootstrap stays underneath
   for the grid and the few components the inner pages use (tables, modals,
   badges); everything visible is restyled here. */

:root {
    --red: #b3121d;
    --red-dark: #8a0d16;
    --navy: #17244f;
    --orange: #f28a1c;
    --yellow: #ffc93c;
    --green: #1f9a4a;
    --blue: #1f6fd1;
    --cream: #fff8ec;
    --card: #ffffffe0;
    --shadow: 0 10px 30px rgba(138, 13, 22, .18);
    --radius: 28px;
    --head: 'Baloo 2', cursive;
    --body: 'Fredoka', system-ui, sans-serif;
}

html {
    min-height: 100%;
    background: #ffad3d linear-gradient(180deg, #fff3c4 0%, #ffe08a 30%, #ffc35c 70%, #ffad3d 100%) fixed;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--body);
    color: var(--navy);
    background: transparent;
    overflow-x: hidden;
    position: relative;
}

/* The DJ tiger scene (public/background.png, URL set inline as --bg) fills
   the screen and stays still while the page scrolls. A fixed layer rather than
   background-attachment: fixed, which phones ignore. The cream wash on top
   keeps text and cards readable. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 248, 236, .45) 0%, rgba(255, 248, 236, .3) 40%, rgba(255, 248, 236, .55) 100%),
        var(--bg, none) center / cover no-repeat;
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--head); font-weight: 800; color: var(--navy) }
p { line-height: 1.65 }
a { color: var(--red) }
a:hover { color: var(--red-dark) }
img { max-width: 100% }

/* The station bar is not part of this design; it stays in the page only
   because the station player is wired to it. The header carries the controls. */
.radio-bar { display: none !important }

.notes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden }
.notes span { position: absolute; bottom: -60px; opacity: .6; animation: kid-rise linear infinite }

@keyframes kid-rise {
    0% { transform: translateY(0) rotate(0) }
    100% { transform: translateY(-115vh) rotate(25deg) }
}

.kid-wrap { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: 16px 16px 40px }

/* ---- header ---------------------------------------------------------- */

.kid-header {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--card); backdrop-filter: blur(6px);
    border: 4px solid #fff; border-radius: 999px; box-shadow: var(--shadow);
    padding: 8px 10px 8px 8px;
}

.kid-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--red); min-width: 0 }
.kid-brand:hover { color: var(--red-dark) }
.kid-brand img { width: 54px; height: 54px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 0 0 3px var(--yellow); flex-shrink: 0 }
.kid-brand span { font-family: var(--head); font-weight: 800; font-size: 1.35rem; line-height: 1.1; white-space: nowrap }

.kid-nav { display: flex; gap: 6px; margin: 0 auto 0 8px; padding: 0; list-style: none }
.kid-nav a {
    display: inline-block; padding: 6px 16px; border-radius: 999px; text-decoration: none;
    font-weight: 600; color: var(--navy); background: #fff; box-shadow: 0 3px 0 #f1d6a7;
    transition: transform .15s;
}
.kid-nav a:hover { transform: translateY(-2px); color: var(--red) }
.kid-nav a.active { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-dark) }

/* Mini station player */
.kid-radio { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 360px }
.kid-radio__btn {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; border: 4px solid #fff;
    background: var(--red); color: #fff; font-size: 1.5rem; display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 4px 0 var(--red-dark), 0 0 0 4px var(--orange); transition: transform .15s;
}
.kid-radio__btn:hover { transform: scale(1.07) }
.kid-radio__btn:active { transform: translateY(2px) }
.kid-radio__meta { min-width: 0; line-height: 1.2 }
.kid-radio__live {
    display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px; color: #fff; background: var(--red);
    border-radius: 999px; padding: 2px 10px;
}
.kid-radio__live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: kid-blink 1.2s infinite }
.kid-radio__title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px }
.kid-radio__hint { display: none; font-size: .78rem; color: var(--red-dark) }
.kid-radio.blocked .kid-radio__hint { display: block }

@keyframes kid-blink { 50% { opacity: .25 } }

.kid-eq { display: flex; gap: 3px; height: 22px; align-items: flex-end; flex-shrink: 0 }
.kid-eq b { width: 5px; height: 5px; border-radius: 3px; background: var(--orange) }
.kid-eq b:nth-child(2n) { background: var(--green) }
.kid-eq b:nth-child(3n) { background: var(--blue) }
body.ssr-playing .kid-eq b { animation: kid-eq .8s ease-in-out infinite alternate }
.kid-eq b:nth-child(2) { animation-delay: -.5s }
.kid-eq b:nth-child(3) { animation-delay: -.3s }
.kid-eq b:nth-child(4) { animation-delay: -.7s }

@keyframes kid-eq { to { height: 22px } }

/* ---- page title ------------------------------------------------------ */

.kid-title { text-align: center; margin: 30px 0 6px }
.kid-title h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--red); margin: 0;
    text-shadow: 2px 2px 0 #fff;
}
.kid-title p { margin: 4px 0 0; font-weight: 600 }

/* ---- page body ------------------------------------------------------- */

/* The inner views were written for the old dark theme: full-bleed sections
   with background photos and big paddings. Here they sit on the gradient. */
.kid-main section,
.kid-main .pt-100 { padding-top: 24px !important }
.kid-main section,
.kid-main .pb-100 { padding-bottom: 8px !important }
.kid-main .bg_img { background-image: none !important }
.kid-main [class*="overlay--"]::before,
.kid-main [class*="overlay--"]::after { display: none !important }
.kid-main .container { max-width: 1110px; padding-left: 0; padding-right: 0 }

/* One card look for everything that is a box. */
.kid-card,
.custom--card,
.contact-wrapper,
.profile-wrapper,
.event-card,
.resume-card,
.kid-main .table-responsive {
    background: var(--card); backdrop-filter: blur(6px);
    border: 4px solid #fff !important; border-radius: var(--radius) !important;
    box-shadow: var(--shadow); color: var(--navy);
}

.kid-card, .contact-wrapper, .profile-wrapper { padding: clamp(18px, 4vw, 36px) }
.custom--card .card-header { background: transparent; border-bottom: 3px dotted var(--yellow); padding: 16px 22px }
.custom--card .card-header h5, .custom--card .card-header .text-white { color: var(--navy) !important }
.custom--card .card-body { padding: 20px 22px }

/* Rich text written in the admin panel (policies, cookie policy). */
.kid-prose h1, .kid-prose h2, .kid-prose h3, .kid-prose h4 { color: var(--red); margin: 1.2em 0 .4em }
.kid-prose > :first-child { margin-top: 0 }
.kid-prose ul, .kid-prose ol { padding-left: 1.4em }
.kid-prose li { margin-bottom: .3em }

/* Contact */
.contact-item {
    display: flex; gap: 14px; align-items: center; height: 100%;
    background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 4px 0 #f1d6a7;
}
.contact-item .icon {
    width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
    font-size: 1.7rem; color: #fff; background: var(--red);
}
.col-lg-4:nth-child(2) .contact-item .icon { background: var(--green) }
.col-lg-4:nth-child(3) .contact-item .icon { background: var(--blue) }
.contact-item .caption { margin: 0 0 2px; font-size: 1.05rem }
.contact-item p { margin: 0; word-break: break-word }
.contact-item a { color: var(--navy); text-decoration: none }

/* Forms */
.kid-main label, .kid-main .form-label { font-weight: 600; margin-bottom: 6px }
.kid-main label.required::after { content: " *"; color: var(--red) }
.kid-main .form-group { margin-bottom: 18px }

.form--control,
.kid-main .form-control,
.kid-main .form-select {
    width: 100%; display: block; font: inherit; color: var(--navy);
    background: #fff; border: 3px solid #f6dfb4; border-radius: 18px; padding: 10px 16px;
    transition: border-color .15s, box-shadow .15s;
}
textarea.form--control { min-height: 150px; resize: vertical }
.form--control:focus,
.kid-main .form-control:focus,
.kid-main .form-select:focus {
    outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px #f28a1c33;
}
.form--control::placeholder { color: #17244f80 }

/* Buttons */
.btn--base,
.kid-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: var(--head); font-weight: 800; font-size: 1.1rem; letter-spacing: .3px;
    background: var(--red) !important; color: #fff !important; border: 4px solid #fff !important;
    border-radius: 999px !important; padding: 10px 26px; text-decoration: none; cursor: pointer;
    box-shadow: 0 5px 0 var(--red-dark), 0 0 0 4px var(--orange); transition: transform .15s, box-shadow .15s;
}
.btn--base:hover, .kid-btn:hover { transform: translateY(-2px); color: #fff !important }
.btn--base:active, .kid-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red-dark), 0 0 0 4px var(--orange) }
.btn--base.w-100 { width: 100% }
.btn--info { background: var(--blue); color: #fff; border-radius: 999px }
.btn--sm { padding: 4px 14px; font-size: .9rem }
.bg--danger { background: var(--red) !important; color: #fff !important }

/* Tables */
.kid-main .table-responsive { padding: 8px 14px }
.kid-main .table { margin: 0; color: var(--navy); --bs-table-bg: transparent; --bs-table-color: var(--navy) }
.kid-main .table thead th { font-family: var(--head); color: var(--red); border-bottom: 3px dotted var(--yellow) }
.kid-main .table td { border-color: #f6dfb4; vertical-align: middle }

/* Section headings used by inner views */
.section-header { margin-bottom: 18px }
.section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--red); text-transform: none !important; text-shadow: 2px 2px 0 #fff }

/* Event / daily show cards */
.event-card { display: flex; gap: 18px; align-items: center; padding: 16px; flex-wrap: wrap; height: 100% }
.event-card .thumb { width: 130px; flex-shrink: 0 }
.event-card .thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px !important }
.event-card .content { flex: 1 1 200px }
.event-card .content h4 { color: var(--red); margin: 0 }
.event-details-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px }
.event-details-list .caption { font-weight: 600; margin-right: 6px }
.event-details-list .caption::after { content: ":" }
.event-card .right { margin-left: auto }
.event_audio.style--two .event_container { background-color: var(--red) !important; border-radius: 999px !important; box-shadow: 0 4px 0 var(--red-dark) }
.daily-show-player h4 { color: var(--red) }
.daily-show-player .badge { border-radius: 999px; background: var(--red) !important }

/* Date filter on the archive page */
.date-select-form { position: relative }
.date-select-form .form--control { padding-right: 52px }
.date-select-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--red); color: #fff; font-size: 1.2rem;
}
.datepicker { background: #fff; color: var(--navy); border: 3px solid var(--yellow); border-radius: 18px; font-family: var(--body) }
.datepicker--cell.-selected-, .datepicker--cell.-selected-.-current- { background: var(--red) }
.datepicker--cell.-current- { color: var(--red) }

/* RJ cards and profile */
.rj-single .thumb {
    position: relative; background: #fff; border: 4px solid #fff; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform .2s;
}
.rj-single .thumb:hover { transform: translateY(-6px) rotate(-1deg) }
.rj-single .thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block }
.rj-single .overlay-content { padding: 12px 14px 4px; text-align: center }
.rj-single .overlay-content h4 { margin: 0; font-size: 1.25rem }
.rj-single .overlay-content a { color: var(--red); text-decoration: none }
.rj-single .designation { font-size: .9rem; opacity: .75 }
.social-links, .social-links-list { list-style: none; padding: 0 0 12px; margin: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap }
.social-links-list { justify-content: flex-start }
.social-links a, .social-links-list a {
    width: 36px; height: 36px; border-radius: 50% !important; display: grid; place-items: center;
    background: var(--yellow); color: var(--navy); text-decoration: none;
}
.profile-wrapper .thumb img { border-radius: var(--radius); border: 4px solid #fff; box-shadow: var(--shadow) }
.profile-wrapper .rj-name { color: var(--red) }
.resume-card { display: flex; gap: 14px; padding: 18px; height: 100% }
.resume-card .icon {
    width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
    background: var(--green); color: #fff; font-size: 1.5rem;
}
.resume-duration { font-size: .85rem; font-weight: 600; color: var(--orange) }
.schedule-card__thumb { position: relative; border-radius: var(--radius); overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow) }
.schedule-card__thumb img { width: 100%; display: block }
.view-details-btn {
    position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; background: var(--red); color: #fff; text-decoration: none; font-size: 1.3rem;
}

/* Empty state */
.ssr-card-empty { text-align: center; padding: 28px 16px }
.ssr-card-empty .empty-thumb img { width: 120px; margin-bottom: 10px }
.ssr-card-empty p { font-weight: 600; margin: 0 }

/* Pagination */
.pagination { gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 24px }
.pagination .page-link {
    border: none; border-radius: 50% !important; width: 42px; height: 42px; display: grid; place-items: center;
    background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 3px 0 #f1d6a7;
}
.pagination .active .page-link { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-dark) }
.pagination .disabled .page-link { opacity: .5 }

/* Ticket thread */
.kid-main .border-primary { border-color: var(--blue) !important; border-radius: 20px; background: #fff }
.kid-main .border-warning { border-color: var(--orange) !important; border-radius: 20px }
.kid-main .reply-bg { background: #fff3c4 !important }

/* ---- footer ---------------------------------------------------------- */

.kid-footer {
    text-align: center; margin: 50px auto 0; font-size: .95rem; color: var(--red-dark);
    width: fit-content; max-width: 100%;
    background: var(--card); backdrop-filter: blur(6px);
    border: 3px solid #fff; border-radius: 22px; box-shadow: var(--shadow);
    padding: 10px 22px 12px;
}
.kid-footer p { margin: 0 }
.kid-footer b { font-family: var(--head) }
.kid-footer .copy { margin-top: 6px; font-size: .85rem; color: var(--navy) }
.kid-footer .links { margin-top: 10px; font-size: .85rem; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap }
.kid-footer a { color: var(--red); font-weight: 600; text-decoration: none; border-bottom: 2px dotted var(--orange) }
.kid-footer a:hover { color: var(--red-dark) }

/* ---- cookie banner (partials.cookie_banner) -------------------------- */

.cookies-card {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1050; max-width: 560px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #fff; border: 4px solid var(--yellow); border-radius: 20px; padding: 12px 16px;
    box-shadow: var(--shadow); font-size: .9rem;
}
.cookies-card.hide { display: none }
.cookies-card__icon { font-size: 1.8rem; color: var(--orange); background: none !important }
.cookies-card__content { flex: 1 1 220px; margin: 0 }
.cookies-card__btn { display: flex; gap: 8px }
.btn--cookie { border: none; border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 600; background: var(--navy); color: #fff }
.btn--cookie:hover { background: var(--red); color: #fff }

/* ---- error and maintenance pages -------------------------------------- */

.kid-error { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; z-index: 1 }
.kid-error .kid-card { max-width: 520px; width: 100%; text-align: center }
.kid-error .logo { width: 140px; border-radius: 50%; background: #fff; padding: 6px; box-shadow: var(--shadow), 0 0 0 6px #ffffff80; animation: kid-bounce 3.5s ease-in-out infinite }
.kid-error .code { font-family: var(--head); font-weight: 800; font-size: clamp(4rem, 18vw, 7rem); line-height: 1; color: var(--red); text-shadow: 3px 3px 0 #fff; margin: 14px 0 0 }
.kid-error h1 { font-size: 1.7rem; margin: 6px 0 }

@keyframes kid-bounce { 50% { transform: translateY(-8px) scale(1.02) } }

/* ---- small screens ---------------------------------------------------- */

@media (max-width: 767px) {
    .kid-header { border-radius: 30px; justify-content: center; padding: 10px }
    .kid-brand span { font-size: 1.15rem }
    .kid-nav { margin: 0 }
    .kid-radio { width: 100%; max-width: none; justify-content: center }
    .event-card .thumb { width: 96px }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important } }
