/* =========================================================
   RADIO3050 — radio.css
   Persistent header + scrollable main + persistent player
   ========================================================= */


/* ---------- Reset ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #0b0b0b;
    --header-background: #101010;
    --main-background: #171717;
    --card-background: #202020;
    --player-background: #080808;

    --text: #ffffff;
    --text-muted: #b5b5b5;

    --accent: #8a2be2;
    --accent-hover: #a64df0;
    --accent-soft: rgba(138, 43, 226, 0.18);

    --border: #2d2d2d;
    --danger: #ff4242;

    --header-height: 80px;
    --player-height: 110px;

    --page-width: 1200px;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button,
input,
a {
    font: inherit;
}

a {
    color: inherit;
}


/* ---------- Main Application Layout ---------- */

.wrapper {
    width: 100%;
    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}


/* ---------- Header ---------- */

.header {
    width: 100%;
    min-height: var(--header-height);
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 0 30px;

    background: var(--header-background);
    border-bottom: 1px solid var(--border);

    position: relative;
    z-index: 20;
}

.logo {
    flex-shrink: 0;

    color: var(--text);
    text-decoration: none;

    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
}

.logo span {
    color: var(--accent);
}

.nav {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.nav a {
    position: relative;

    padding: 30px 0 27px;

    color: #dddddd;
    text-decoration: none;
    text-transform: uppercase;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.nav a::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;

    height: 3px;

    background: var(--accent);
    border-radius: 20px;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
    transform: scaleX(1);
}

.header-actions {
    flex-shrink: 0;
}

.listen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 11px 22px;

    border: 0;
    border-radius: 999px;

    background: var(--accent);
    color: var(--text);

    text-decoration: none;
    text-transform: uppercase;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.7px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.listen-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px var(--accent-soft);
}

.listen-btn:focus-visible,
.nav a:focus-visible,
.logo:focus-visible {
    outline: 3px solid var(--accent-hover);
    outline-offset: 4px;
}


/* ---------- Scrollable Main Content ---------- */

.main {
    min-width: 0;
    min-height: 0;
    flex: 1;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 0;

    background: var(--main-background);

    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #111111;
}

.main:focus {
    outline: none;
}

.main.is-loading {
    opacity: 0.6;
    pointer-events: none;
}


/* Chrome, Edge and Safari scrollbar */

.main::-webkit-scrollbar {
    width: 10px;
}

.main::-webkit-scrollbar-track {
    background: #111111;
}

.main::-webkit-scrollbar-thumb {
    background: var(--accent);
    border: 2px solid #111111;
    border-radius: 20px;
}

.main::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}


/* ---------- Loading and Error Pages ---------- */

.loading-page,
.page-error {
    width: min(100% - 40px, var(--page-width));
    min-height: 60vh;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.loading-page h1,
.page-error h1 {
    margin-bottom: 12px;
    font-size: clamp(36px, 6vw, 72px);
}

.loading-page p,
.page-error p {
    color: var(--text-muted);
    font-size: 17px;
}


/* ---------- Persistent Radio Player ---------- */

.player {
    width: 100%;
    min-height: var(--player-height);
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 28px;

    padding: 14px 25px;

    background: var(--player-background);
    border-top: 2px solid var(--accent);

    position: relative;
    z-index: 30;

    transition:
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.player-highlight {
    background: #121212;
    box-shadow:
        0 -8px 30px var(--accent-soft),
        inset 0 2px 0 var(--accent);
}

.player-info {
    width: 190px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
}

.player-status {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--danger);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.live-dot {
    width: 9px;
    height: 9px;

    display: inline-block;

    background: var(--danger);
    border-radius: 50%;

    box-shadow: 0 0 10px rgba(255, 66, 66, 0.8);

    animation: livePulse 1.5s infinite;
}

.player-title {
    margin-top: 5px;

    color: var(--text);

    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.player-subtitle {
    margin-top: 1px;

    color: var(--text-muted);

    font-size: 13px;
}

.radio-embed {
    min-width: 0;
    height: 82px;
    flex: 1;

    overflow: hidden;
    border-radius: 8px;
}

.radio-embed iframe {
    width: 100%;
    height: 82px;

    display: block;

    border: 0;
    background: transparent;
}

@keyframes livePulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.8);
    }
}


/* =========================================================
   ABOUT PAGE
   ========================================================= */

.about-page {
    width: 100%;
}


/* ---------- About Hero ---------- */

.about-page .hero {
    width: min(100% - 60px, var(--page-width));
    min-height: 540px;
    margin: 0 auto;
    padding: 70px 0;

    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: 60px;
}

.hero-text {
    min-width: 0;
}

.section-tag,
.section-label {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--accent-hover);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-text h1 {
    max-width: 850px;
    margin-bottom: 24px;

    color: var(--text);

    font-size: clamp(48px, 8vw, 104px);
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 0.93;
}

.hero-text .lead {
    max-width: 720px;
    margin-bottom: 30px;

    color: var(--text-muted);

    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.station-card {
    width: 100%;
    max-width: 380px;
    min-height: 340px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px;

    text-align: center;

    background:
        radial-gradient(
            circle at top right,
            rgba(138, 43, 226, 0.45),
            transparent 55%
        ),
        #121212;

    border: 1px solid #363636;
    border-radius: 24px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.station-card .player-status {
    margin-bottom: 30px;
}

.station-card h2 {
    font-size: clamp(34px, 4vw, 55px);
    font-weight: 900;
    letter-spacing: -2px;
}

.station-card h2::first-letter {
    color: inherit;
}

.station-card p {
    margin-top: 8px;

    color: var(--text-muted);

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* ---------- About Content Sections ---------- */

.content-section {
    width: min(100% - 60px, var(--page-width));
    margin: 0 auto;
    padding: 70px 0;

    border-top: 1px solid var(--border);
}

.content-section h2 {
    margin-bottom: 25px;

    font-size: clamp(30px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -1.8px;
    line-height: 1.05;
}

.content-section > p {
    max-width: 900px;
    margin-bottom: 20px;

    color: var(--text-muted);

    font-size: 18px;
    line-height: 1.8;
}


/* ---------- About Feature Grid ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;

    margin-top: 35px;
}

.feature-card {
    min-height: 190px;
    padding: 28px;

    background: var(--card-background);
    border: 1px solid var(--border);
    border-radius: 16px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    margin-bottom: 14px;

    font-size: 21px;
    font-weight: 800;
}

.feature-card p {
    color: var(--text-muted);

    font-size: 15px;
    line-height: 1.7;
}


/* ---------- Mission Quote ---------- */

.content-section blockquote {
    max-width: 950px;
    margin: 30px 0;
    padding: 30px 35px;

    color: var(--text);

    background: var(--accent-soft);
    border-left: 5px solid var(--accent);
    border-radius: 0 16px 16px 0;

    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.4;
}


/* ---------- Shared About Buttons ---------- */

.about-primary-button,
.about-secondary-button,
.about-listen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 25px;

    border-radius: 999px;

    text-decoration: none;
    text-transform: uppercase;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.about-primary-button,
.about-listen-button {
    background: var(--accent);
    color: var(--text);
    border: 1px solid var(--accent);
}

.about-secondary-button {
    background: transparent;
    color: var(--text);
    border: 1px solid #555555;
}

.about-primary-button:hover,
.about-listen-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.about-secondary-button:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
    transform: translateY(-2px);
}


/* =========================================================
   EVENTS
   ========================================================= */

.event-flyer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-flyer img {
    width: 85%;
    height: auto;
    display: block;
}


/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 1150px) {

    .header {
        min-height: auto;
        flex-wrap: wrap;
        gap: 15px;
        padding: 18px 24px;
    }

    .nav {
        order: 3;
        width: 100%;

        justify-content: flex-start;
        gap: 24px;

        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        padding: 10px 0 13px;
    }

    .nav a::after {
        bottom: 3px;
    }

    .about-page .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        justify-content: flex-start;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 760px) {

    :root {
        --player-height: auto;
    }

    .header {
        padding: 15px 18px;
    }

    .logo {
        font-size: 24px;
    }

    .header-actions .listen-btn {
        min-height: 38px;
        padding: 9px 15px;
        font-size: 10px;
    }

    .nav {
        gap: 20px;
    }

    .nav a {
        font-size: 11px;
    }

    .player {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;

        padding: 11px 14px;
    }

    .player-info {
        width: 100%;
    }

    .radio-embed,
    .radio-embed iframe {
        height: 82px;
    }

    .about-page .hero,
    .content-section {
        width: min(100% - 36px, var(--page-width));
    }

    .about-page .hero {
        min-height: auto;
        padding: 50px 0;
    }

    .hero-text h1 {
        letter-spacing: -2px;
    }

    .station-card {
        max-width: 100%;
        min-height: 280px;
    }

    .content-section {
        padding: 50px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {

    .header {
        gap: 12px;
    }

    .logo {
        font-size: 21px;
    }

    .header-actions .listen-btn {
        padding: 8px 12px;
    }

    .about-page .hero,
    .content-section {
        width: min(100% - 28px, var(--page-width));
    }

    .hero-text .lead,
    .content-section > p {
        font-size: 16px;
    }

    .station-card {
        padding: 28px 20px;
    }

    .feature-card {
        padding: 23px;
    }

    .content-section blockquote {
        padding: 24px;
    }
}

/* =========================================================
   BOOKING PAGE
   booking.php: <body class="booking-body">
   ========================================================= */

html:has(body.booking-body) {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
}

body.booking-body {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: var(--main-background);
    color: var(--text);
}

body.booking-body .booking-page {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    padding: 30px 0 55px;
}

.booking-header {
    width: min(100% - 40px, 900px);
    margin: 0 auto;
    padding: 20px 0 25px;
}

.booking-header .section-label {
    margin-bottom: 8px;
}

.booking-header h1 {
    max-width: 850px;
    margin-bottom: 10px;
    color: var(--text);
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.booking-header p {
    max-width: 650px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.booking-form-container {
    width: min(100% - 40px, 900px);
    margin: 0 auto;
}

.booking-card {
    padding: 25px;
    background: var(--card-background);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.booking-section {
    margin-bottom: 24px;
}

.booking-section:last-of-type {
    margin-bottom: 20px;
}

.booking-section h2 {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.booking-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.booking-row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.booking-field {
    min-width: 0;
    margin-bottom: 12px;
}

.booking-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
    width: 100%;
    padding: 8px 11px;
    color: var(--text);
    background: #161616;
    border: 1px solid var(--border);
    border-radius: 7px;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-field input,
.booking-field select {
    min-height: 42px;
}

.booking-field textarea {
    min-height: 90px;
    resize: vertical;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.booking-field select {
    cursor: pointer;
}

.booking-field option {
    color: #ffffff;
    background: #161616;
}

.booking-field input::placeholder,
.booking-field textarea::placeholder {
    color: #858585;
}

.required {
    color: var(--accent-hover);
}

.booking-message {
    margin-bottom: 18px;
    padding: 12px 15px;
    color: var(--text);
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 0 7px 7px 0;
}

.booking-submit {
    border: 0;
    cursor: pointer;
}

.booking-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.booking-note {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 11px;
}

@media (max-width: 760px) {
    body.booking-body .booking-page {
        padding-top: 15px;
    }

    .booking-header,
    .booking-form-container {
        width: min(100% - 28px, 900px);
    }

    .booking-header {
        padding: 15px 0 20px;
    }

    .booking-header h1 {
        letter-spacing: -1.5px;
    }

    .booking-card {
        padding: 20px 16px;
    }

    .booking-row,
    .booking-row.three {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .booking-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .booking-header,
    .booking-form-container {
        width: min(100% - 22px, 900px);
    }

    .booking-header h1 {
        font-size: 34px;
    }

    .booking-card {
        padding: 18px 14px;
    }
}