/* Shell UI — station selector, alt-station transitions, app prompts (loaded from index.php) */

.navbar-brand-center {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0 auto 0 12px;
}

.navbar-brand-center img {
    height: 34px;
    width: auto;
    display: block;
}

@media (min-width: 992px) {
    .navbar-brand-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    nav.navbar {
        position: relative;
    }
}

.station-selector {
    position: fixed;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

@media (min-width: 992px) {
    .station-selector { top: 68px; }
}

.station-bubble {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    opacity: 0.5;
    transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}

.station-bubble:hover { opacity: 0.85; transform: scale(1.1); }

.station-bubble.active {
    width: 34px;
    height: 34px;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 2px 12px rgba(0, 0, 0, 0.5);
}

.station-bubble__img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.station-bubble__icon-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.station-bubble.active .station-bubble__icon-fallback {
    background: var(--color-primary);
    color: #fff;
}

.station-bubble__tooltip {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%) translateY(-3px);
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    color: #fff;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    letter-spacing: 0.3px;
}

.station-bubble:hover .station-bubble__tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.station-bubble.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    animation: stationPulseRing 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes stationPulseRing {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 0;   transform: scale(1.18); }
}

.station-selector.single { display: none; }

.miniTimetable {
    transition: opacity 0.4s ease, height 0.4s ease, padding 0.4s ease, border 0.4s ease;
}

.col-md-4:has(.recently-played) {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hp-left { transition: transform 0.4s ease; }

body.alt-station-active .miniTimetable {
    opacity: 0;
    pointer-events: none;
    height: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden;
}

body.alt-station-active .col-md-4:has(.recently-played) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.recent-articles-bar {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.hp-left.station-centered { transform: translateX(25%); }

.aap-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 99998;
    animation: aapFadeIn .25s ease;
}

.aap-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #111317;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 28px 24px 36px;
    text-align: center;
    animation: aapSlideUp .3s ease;
    font-family: var(--font, 'Barlow', sans-serif);
}

.aap-logo img {
    height: 44px;
    width: auto;
    margin-bottom: 16px;
}

.aap-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: .2px;
}

.aap-body {
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 22px;
}

.aap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s;
    text-decoration: none;
    margin-bottom: 10px;
}

.aap-btn:last-child { margin-bottom: 0; }
.aap-btn:hover { opacity: .85; }
.aap-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.aap-btn-primary { background: #01875f; color: #fff; }
.aap-btn-secondary { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); }

@keyframes aapFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes aapSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
