/* Legends 96.6 FM — Shared Stylesheet */

/* ── Base ─────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: "Roboto", sans-serif;
    background-color: #000;
    color: #fff;
}

/* ── Skip link ────────────────────────────── */
.skip-link {
    position: absolute;
    top: -50px;
    left: 16px;
    background: #dc3545;
    color: #fff;
    padding: 8px 18px;
    border-radius: 0 0 4px 4px;
    font-weight: 700;
    text-decoration: none;
    z-index: 10000;
    transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ── Focus visible (restore outline for keyboard) */
:focus-visible { outline: 2px solid #dc3545; outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ── Navbar ───────────────────────────────── */
.navbar {
    background-color: #25292e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    padding-top: 10px;
    padding-bottom: 10px;
    transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.navbar.navbar-scrolled {
    background-color: #13161a !important;
    box-shadow: 0 4px 28px rgba(0, 0, 0, .7);
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Logo shrinks slightly on scroll */
.navbar-brand img { transition: width .3s ease; }
.navbar.navbar-scrolled .navbar-brand img { width: 210px; }
.navbar-brand:focus-visible { outline: 2px solid #dc3545; outline-offset: 4px; border-radius: 4px; }

/* Hamburger */
.navbar-toggler {
    border-color: rgba(220, 53, 69, .45);
    border-radius: 6px;
    padding: 6px 10px;
    transition: background .2s, border-color .2s;
}
.navbar-toggler:hover { border-color: #dc3545; background: rgba(220, 53, 69, .1); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(220, 53, 69, .3); }

/* Nav list */
.navbar-nav { align-items: center; text-transform: uppercase; }

/* Nav links — slide-up underline on hover/active */
.navbar-dark .navbar-nav .nav-link {
    color: #b0b5bb !important;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .4px;
    padding: 6px 10px !important;
    position: relative;
    transition: color .2s;
}
.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #dc3545;
    border-radius: 2px;
    transition: left .25s ease, right .25s ease;
}
.navbar-dark .navbar-nav .nav-link:hover { color: #fff !important; }
.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active-section::after { left: 8%; right: 8%; }
.navbar-dark .navbar-nav .nav-link.active-section { color: #fff !important; font-weight: 700; }
.navbar-dark .navbar-nav .nav-link[aria-disabled="true"] {
    opacity: .3;
    pointer-events: none;
    cursor: default;
}
.navbar-dark .navbar-nav .nav-link[aria-disabled="true"]::after { display: none; }

/* Vertical divider between links and social icons */
.nav-vdivider {
    list-style: none;
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, .12);
    margin: 0 6px;
    align-self: center;
    flex-shrink: 0;
}

/* Social icons */
.social-icons .nav-link { padding: 6px 4px !important; }
.social-icons .nav-link::after { display: none !important; }
.social-icons a {
    color: #888;
    font-size: 1.15rem;
    transition: color .2s, transform .2s;
}
.social-icons a:hover { color: #fff; transform: translateY(-2px); }

/* Listen Live button */
.listen-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 2px 10px rgba(220, 53, 69, .35);
}
.listen-live-btn:hover {
    opacity: .9;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(220, 53, 69, .55);
    color: #fff;
}
.listen-live-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 20px; }
.listen-live-btn.is-playing {
    background: linear-gradient(135deg, #198754 0%, #0d5c38 100%);
    box-shadow: 0 2px 10px rgba(25, 135, 84, .4);
}
.listen-live-btn.is-playing:hover { box-shadow: 0 4px 16px rgba(25, 135, 84, .55); }
.live-dot-nav {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: blink 1.4s ease-in-out infinite;
}

/* Mobile collapsed menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #1a1d21;
        border-radius: 10px;
        padding: 6px 4px 12px;
        margin-top: 10px;
        border: 1px solid rgba(220, 53, 69, .15);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    }
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 18px !important;
        border-radius: 6px;
        font-size: 1rem;
    }
    .navbar-dark .navbar-nav .nav-link::after { display: none; }
    .navbar-dark .navbar-nav .nav-link:hover { background: rgba(255, 255, 255, .05); }
    .nav-vdivider { display: none !important; }
    .social-icons { justify-content: center; }
    .navbar-nav .listen-live-wrap { padding: 8px 18px 4px; }
    .listen-live-btn { width: 100%; justify-content: center; border-radius: 8px; }
}
@media (min-width: 992px) {
    .navbar-nav { flex-direction: row; }
}

/* ── Buttons ──────────────────────────────── */
.btn-red {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.btn-red:hover,
.btn-red:focus {
    background-color: #c82333;
    border-color: #bd2130;
    color: #fff;
}

/* ── Section headings ─────────────────────── */
.section-heading {
    font-size: 2.3rem;
    margin-bottom: 10px;
    text-align: center;
    color: #e10909;
    font-variant-caps: all-petite-caps;
}
.section-divider {
    width: 60px;
    height: 3px;
    background-color: #cc0000;
    border: none;
    margin: 0 auto 30px;
}

/* ── Fixed radio player bar ───────────────── */
body { padding-bottom: 70px; }

#player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #1c1f23;
    border-top: 2px solid #dc3545;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .6);
    padding: 0 20px;
}
.player-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}
.station-block { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.station-name {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.now-playing {
    font-size: .78rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #dc3545;
    border-radius: 50%;
    margin-right: 5px;
    animation: blink 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .15; }
}
.player-error {
    font-size: .75rem;
    color: #f88;
    text-align: center;
    padding: 4px 0;
}
.controls { display: flex; align-items: center; flex-shrink: 0; }
.controls button {
    margin-left: 8px;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.volume-bar {
    width: 90px;
    margin-left: 10px;
    accent-color: #dc3545;
    cursor: pointer;
}
@media (max-width: 575.98px) {
    #player-bar { padding: 0 12px; }
    .station-name { font-size: .9rem; }
    .now-playing { display: none; }
    .volume-bar { display: none; }
    .controls button { width: 40px; height: 40px; }
}

/* ── Swiper / main slider ─────────────────── */
.main-swiper { width: 100%; margin-top: 20px; }
.main-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.swiper-pagination-bullet-active { background: #dc3545 !important; }
.swiper-button-next,
.swiper-button-prev { color: #dc3545 !important; }

/* ── Show cards ───────────────────────────── */
.card-body-dark { background-color: #272727; }
.card-title-red { color: #e10909; }
.card-meta { color: #e10909 !important; }
.card-text-white { color: #fff; }

.card-img-wrap {
    display: block;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    position: relative;
}
.card-img-wrap img {
    width: 100%;
    height: auto;
    transition: transform .35s ease;
    display: block;
}
.card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,.65));
    opacity: 0;
    transition: opacity .35s;
}
.card-img-wrap:hover img { transform: scale(1.04); }
.card-img-wrap:hover::after { opacity: 1; }

/* ── Mobile app section ───────────────────── */
.mobile-app-section { padding: 40px 20px; }
.mobile-app-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.mobile-app-item { flex: 1 1 150px; max-width: 200px; }
.mobile-app-item img { width: 100%; height: auto; }

/* ── About section ────────────────────────── */
.about-section { padding: 40px 20px; text-align: center; }
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}

/* ── Footer ───────────────────────────────── */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 40px 0;
}
footer h5.text-danger { color: #e10909 !important; }
footer ul li a.text-light:hover { color: #c82333 !important; }

/* ── Cookie consent banner ────────────────── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e1e1e;
    border-top: 2px solid #dc3545;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0,0,0,.5);
}
#cookie-banner p { margin: 0; font-size: .9rem; }
#cookie-banner a { color: #e10909; text-decoration: underline; }

/* ── Radio guide schedule ─────────────────── */
.schedule-table th { background-color: #1a1a1a; color: #e10909; }
.schedule-table td { background-color: #111; color: #eee; }
.schedule-table tr:hover td { background-color: #1c1c1c; }

/* ── Show hero ────────────────────────────── */
.show-hero {
    position: relative;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}
.show-hero img { width: 100%; height: auto; object-fit: cover; filter: brightness(.7); }
.show-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 32px;
    background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}
.show-hero-overlay h1 { font-size: 2.5rem; font-weight: 700; color: #fff; margin: 0; }
.show-hero-overlay p { color: #e10909; margin: 4px 0 0; font-size: 1rem; }

/* ── Events ───────────────────────────────── */
.events-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
.events-empty i { font-size: 3rem; color: #333; margin-bottom: 16px; }
