/*
 * BCS Custom - initial skeleton
 * Joomla 3.10.12
 *
 * Deliberately conservative. This stylesheet establishes the structure
 * without attempting to reproduce the existing CloudBase3 appearance.
 */

:root {
    --bcs-page: #f4f6f8;
    --bcs-surface: #ffffff;
    --bcs-text: #20252b;
    --bcs-muted: #66717c;
    --bcs-border: #000303;
    --bcs-accent: #174f73;
    --bcs-accent-dark: #103b56;
    --bcs-live: #8f1d22;
    --bcs-max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body.bcs-site {
    margin: 0;
    background: var(--bcs-page);
    color: var(--bcs-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.bcs-container {
    width: min(100% - 32px, var(--bcs-max-width));
    margin-inline: auto;
}

.bcs-header {
    background: var(--bcs-surface);
    border-bottom: 1px solid var(--bcs-border);
}

.bcs-brand {
    padding: 18px 0 12px;
}

.bcs-brand-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
}

.bcs-brand-name {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.bcs-brand-tagline {
    color: var(--bcs-muted);
    font-size: 0.85rem;
}

.bcs-navigation {
    padding-bottom: 12px;
}

.bcs-main {
    padding: 24px 0 48px;
}

.bcs-section {
    margin: 0 0 32px;
}

.bcs-section-heading {
    margin-bottom: 14px;
}

.bcs-section-heading h1,
.bcs-section-heading h2 {
    margin: 0;
    line-height: 1.2;
}

.bcs-section-heading p {
    margin: 6px 0 0;
    color: var(--bcs-muted);
}

.bcs-live-section {
    background: var(--bcs-surface);
    border: 1px solid var(--bcs-border);
    border-radius: 10px;
    padding: 24px;
}

.bcs-live-section .bcs-section-heading h1 {
    color: var(--bcs-live);
}

.bcs-archive-section,
.bcs-understand-section,
.bcs-local-section {
    background: var(--bcs-surface);
    border: 1px solid var(--bcs-border);
    border-radius: 10px;
    padding: 24px;
}

.bcs-component-section {
    margin-top: 24px;
}

.bcs-footer {
    background: #20252b;
    color: #fff;
    padding: 28px 0;
}

.bcs-footer-placeholder {
    margin: 0;
    color: #d9dee3;
}

@media (max-width: 700px) {
    .bcs-container {
        width: min(100% - 20px, var(--bcs-max-width));
    }

    .bcs-live-section,
    .bcs-archive-section,
    .bcs-understand-section,
    .bcs-local-section {
        padding: 16px;
        border-radius: 7px;
    }
}
.bcs-understand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.bcs-understand-grid .bcs-card {
    background: var(--bcs-surface);
    border: 1px solid var(--bcs-border);
    border-radius: 8px;
    padding: 20px;
}

@media (max-width: 700px) {
    .bcs-understand-grid {
        grid-template-columns: 1fr;
    }
}
/*

* BCS Scanner Player
* First-pass BCS styling
*
* The player intentionally does not contain advertising.
  */

.bcs-player {
position: relative;
width: 100%;
max-width: 760px;
margin: 0 auto;
padding: 22px 24px;
box-sizing: border-box;
background: var(--bcs-surface, #ffffff);
color: var(--bcs-text, #20252b);
border: 1px solid var(--bcs-border, #d9dee3);
border-radius: 12px;
}

/* -----------------------------------------
Scanner display
----------------------------------------- */

.bcs-player-display {
width: 100%;
min-height: 58px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 18px;
padding: 10px 16px;
box-sizing: border-box;
background: #111820;
border-radius: 8px;
overflow: hidden;
}

.bcs-player-status {
width: 100%;
color: #b1d4fa;
font-family: "Doto", monospace;
font-size: 15px;
font-weight: 900;
line-height: 1.35;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

/* -----------------------------------------
Main controls
----------------------------------------- */

.bcs-player-main {
position: relative;
display: flex;
align-items: center;
gap: 12px;
min-height: 44px;
}

/* -----------------------------------------
Buttons
----------------------------------------- */

.bcs-player-controls {
display: flex;
gap: 8px;
}

.bcs-player-button {
height: 38px;
min-width: 72px;
padding: 0 16px;
border: 1px solid #c7cdd3;
border-radius: 6px;
background: #f4f6f8;
color: #20252b;

font-family: inherit;
font-size: 14px;
font-weight: 600;

cursor: pointer;

transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.bcs-player-button:hover {
background: #e8edf1;
border-color: #aeb7bf;
}

.bcs-player-button:active {
transform: translateY(1px);
}

.bcs-player-play {
background: #202a33;
border-color: #202a33;
color: #ffffff;
}

.bcs-player-play:hover {
background: #303c47;
border-color: #303c47;
}

/* -----------------------------------------
Volume
----------------------------------------- */

.bcs-player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    white-space: nowrap;
}
.bcs-player-volume label {
color: var(--bcs-muted, #66717c);
font-size: 13px;
font-weight: 600;
}

#volume-slider {
width: 110px;
margin: 0;
padding: 0;
cursor: pointer;
}

/* -----------------------------------------
Peak meter
----------------------------------------- */

.bcs-player-meter {
    flex: 1 1 auto;
    width: 100px;
    height: 44px;
    margin-left: 4px;
    overflow: hidden;
}
/* -----------------------------------------
Mobile
----------------------------------------- */

@media (max-width: 600px) {
.bcs-player {
    padding: 18px;
}

.bcs-player-main {
    flex-wrap: wrap;
}

.bcs-player-volume {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
}

#volume-slider {
    flex: 1;
    width: auto;
}

.bcs-player-meter {
    position: absolute;
    right: 0;
    top: 0;
}

.bcs-player-status {
    font-size: 13px;
}
}
/* -----------------------------------------
   Scanner Archive
   ----------------------------------------- */

.bcs-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.bcs-archive-grid .bcs-card {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 20px;

    background: var(--bcs-surface);
    border: 1px solid var(--bcs-border);
    border-radius: 8px;

    color: var(--bcs-text);
    text-decoration: none;
}

.bcs-archive-grid .bcs-card:hover {
    color: var(--bcs-text);
    border-color: var(--bcs-accent);
    text-decoration: none;
}

.bcs-archive-grid .bcs-card-title {
    margin-bottom: 8px;

    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.bcs-archive-grid .bcs-card-description {
    color: var(--bcs-muted);
    font-size: 0.9rem;
}

.bcs-archive-grid .bcs-card-action {
    margin-top: auto;
    padding-top: 18px;

    color: var(--bcs-accent);
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 700px) {
    .bcs-archive-grid {
        grid-template-columns: 1fr;
    }
}
/* Local Information */

.bcs-local-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.bcs-local-grid .bcs-card {
    background: var(--bcs-surface);
    border: 1px solid var(--bcs-border);
    border-radius: 8px;
    padding: 20px;
}

@media (max-width: 700px) {
    .bcs-local-grid {
        grid-template-columns: 1fr;
    }
}