/* ============================================================
   Banner Slider (homepage) — ported from style.css
   Links to Admin > Settings > "Banner Slider Style" (banner_style).
   Applied on the slider via class .banner-style-<name>.
   ============================================================ */

/* ---- Base slider ---- */
.banner-slider {
    --primary: var(--accent1, #ffc600);
    --surface-2: var(--surface, #1a2027);
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--surface);
    height: 400px;
    width: 100%;
    margin: 0 0 20px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.09));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.banner-slider .banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    visibility: hidden;
}

.banner-slider .banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.banner-slider .banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slider .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    margin: 0 auto;
}

.banner-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}

.banner-slider-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s;
    border: 0;
    padding: 0;
}

.banner-slider-dots .dot.active {
    background: var(--primary);
}

/* ---- Prev / Next arrows ---- */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(10, 12, 18, 0.55);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.banner-slider:hover .banner-nav {
    opacity: 1;
}

.banner-nav:hover {
    background: var(--primary);
    color: #14161a;
}

.banner-nav.prev { left: 12px; }
.banner-nav.next { right: 12px; }

/* ===== Banner slider styles (set in Station Settings) ===== */

/* Rounded Frame */
.banner-style-rounded {
    border-radius: 30px;
    border: 6px solid rgba(255, 255, 255, 0.15);
}
.banner-style-rounded .banner-slide img {
    border-radius: 24px;
}

/* Double Frame */
.banner-style-framed {
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 8px var(--surface-2), 0 0 0 10px rgba(255, 255, 255, 0.2), 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Neon Glow */
.banner-style-neon {
    border: 3px solid #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5), 0 0 40px rgba(0, 229, 255, 0.2), inset 0 0 15px rgba(0, 229, 255, 0.2);
}
.banner-style-neon .banner-slide {
    border: 5px solid rgba(255, 46, 244, 0.4);
    box-sizing: border-box;
}

/* Glassmorphism */
.banner-style-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.banner-style-glass .banner-slide {
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
}

/* Golden / Luxury */
.banner-style-golden {
    border: 4px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.15);
}
.banner-style-golden::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 10px;
    pointer-events: none;
    z-index: 4;
}

/* Vibrant Gradient Border */
.banner-style-gradient {
    border: 5px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, #ff0080, #ff8c00, #40e0d0, #ff0080) border-box;
    background-size: 300% 300%;
    animation: bannerGradBorder 6s linear infinite;
}
@keyframes bannerGradBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Polaroid */
.banner-style-polaroid {
    background: #f5f5f5;
    padding: 15px 15px 45px 15px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 370px;
}
.banner-style-polaroid .banner-slide {
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 75px);
}
.banner-style-polaroid::after {
    content: "FM STATION";
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: "Courier New", monospace;
    color: #888;
    font-size: 14px;
    letter-spacing: 3px;
    z-index: 4;
}

/* Cinema Bars */
.banner-style-cinema {
    background: #000;
}
.banner-style-cinema .banner-slide {
    top: 30px;
    height: calc(100% - 60px);
}
.banner-style-cinema::before,
.banner-style-cinema::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    background: #1a1a1a;
    z-index: 6;
}
.banner-style-cinema::before { top: 0; }
.banner-style-cinema::after { bottom: 0; }

/* Vaporwave */
.banner-style-vapor {
    border: 4px solid #ff6ec7;
    box-shadow: 0 0 25px rgba(255, 110, 199, 0.4), 0 8px 0 #5e35b1;
}
.banner-style-vapor::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 110, 199, 0) 0%, rgba(94, 53, 177, 0.45) 100%);
    pointer-events: none;
    z-index: 4;
}

/* Retro / Synthwave */
.banner-style-retro {
    border: 4px solid #ff2f8f;
    box-shadow: 0 0 15px rgba(255, 47, 143, 0.5), 6px 6px 0 rgba(94, 53, 177, 0.8);
}

/* Holographic */
.banner-style-hologram {
    border: 3px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, #ff6ec7, #7873f5, #4adede, #ff6ec7) border-box;
    background-size: 300% 300%;
    animation: bannerHolo 6s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(120, 115, 245, 0.3);
}
@keyframes bannerHolo {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Matrix */
.banner-style-matrix {
    border: 3px solid #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4), inset 0 0 25px rgba(0, 255, 65, 0.15);
}

/* Ocean */
.banner-style-ocean {
    border: 4px solid #81d4fa;
    box-shadow: 0 0 20px rgba(3, 169, 244, 0.5), inset 0 0 25px rgba(3, 169, 244, 0.2);
}
.banner-style-ocean::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 25%;
    background: linear-gradient(180deg, rgba(1, 87, 155, 0) 0%, rgba(1, 87, 155, 0.5) 100%);
    pointer-events: none;
    z-index: 4;
}

/* Fire / Ember */
.banner-style-fire {
    border: 4px solid #ff6d00;
    box-shadow: 0 0 25px rgba(255, 109, 0, 0.6), inset 0 0 30px rgba(255, 61, 0, 0.3);
}

/* Ice / Frost */
.banner-style-ice {
    border: 4px solid #b3e5fc;
    box-shadow: 0 0 20px rgba(129, 212, 250, 0.5), 0 0 40px rgba(129, 212, 250, 0.15);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

/* Royal Purple */
.banner-style-royal {
    border: 4px solid #b39ddb;
    box-shadow: 0 0 25px rgba(94, 53, 177, 0.5), inset 0 0 30px rgba(94, 53, 177, 0.25);
}

/* Sunset */
.banner-style-sunset {
    border: 4px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #ff9a9e) border-box;
    background-size: 300% 300%;
    animation: bannerSunset 8s ease-in-out infinite;
}
@keyframes bannerSunset {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Aurora Borealis */
.banner-style-aurora {
    border: 4px solid #00c9a7;
    box-shadow: 0 0 25px rgba(0, 201, 167, 0.5), 0 0 50px rgba(0, 201, 167, 0.2);
}

/* Midnight Indigo */
.banner-style-midnight {
    border: 4px solid #7986cb;
    box-shadow: 0 0 20px rgba(26, 35, 126, 0.6), inset 0 0 30px rgba(26, 35, 126, 0.3);
}

/* Coffee / Warm */
.banner-style-coffee {
    border: 5px solid #795548;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background: #4e342e;
}

/* Deep Space */
.banner-style-space {
    border: 2px solid rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4), 0 0 60px rgba(0, 0, 0, 0.6) inset;
}

/* Bubblegum */
.banner-style-bubblegum {
    border: 5px solid #f48fb1;
    box-shadow: 0 0 20px rgba(236, 64, 122, 0.4), 0 8px 0 #ad1457;
    border-radius: 25px;
}

/* Rose Gold */
.banner-style-rose {
    border: 4px solid #e0a899;
    box-shadow: 0 0 20px rgba(183, 110, 121, 0.5);
    background: linear-gradient(180deg, rgba(255, 182, 163, 0.2), rgba(183, 110, 121, 0.3));
}

/* Mint */
.banner-style-mint {
    border: 4px solid #64ffda;
    box-shadow: 0 0 20px rgba(29, 233, 182, 0.5);
    background: linear-gradient(180deg, rgba(167, 255, 235, 0.15), rgba(29, 233, 182, 0.2));
}

/* Prism / Rainbow */
.banner-style-prism {
    border: 5px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff, #ff0000) border-box;
    background-size: 300% 100%;
    animation: bannerPrism 5s linear infinite;
}
@keyframes bannerPrism {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Glitch */
.banner-style-glitch {
    border: 3px solid #ff2ef4;
    box-shadow: 0 0 15px rgba(255, 46, 244, 0.5);
}
.banner-style-glitch .banner-slide.active img {
    animation: bannerGlitchImg 0.8s infinite steps(2);
}
@keyframes bannerGlitchImg {
    0% { transform: translate(0, 0); filter: hue-rotate(0deg); }
    25% { transform: translate(-3px, 2px); filter: hue-rotate(30deg); }
    50% { transform: translate(3px, -2px); filter: hue-rotate(60deg); }
    75% { transform: translate(-2px, -3px); filter: hue-rotate(30deg); }
    100% { transform: translate(0, 0); filter: hue-rotate(0deg); }
}

/* Comic / Pop Art */
.banner-style-comic {
    border: 5px solid #000;
    box-shadow: 8px 8px 0 #ff2ef4, -8px -8px 0 #00e5ff, 0 15px 40px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}
.banner-style-comic::after {
    content: "BANG!";
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: "Comic Sans MS", "Chalkboard SE", cursive;
    font-size: 42px;
    font-weight: 900;
    color: #ff2ef4;
    text-shadow: 3px 3px 0 #000, -2px -2px 0 #00e5ff;
    transform: rotate(15deg);
    z-index: 6;
    pointer-events: none;
}

/* Minimal */
.banner-style-minimal {
    border: none;
    border-radius: 0;
    background: transparent;
    height: auto;
    box-shadow: none;
}
.banner-style-minimal .banner-slide {
    position: relative;
    display: none;
}
.banner-style-minimal .banner-slide.active {
    display: block;
}
.banner-style-minimal .banner-slide img {
    border-radius: 0;
    margin-bottom: 15px;
}

/* Pixel / 8-bit */
.banner-style-pixel {
    border: 6px solid #fff;
    box-shadow: 0 8px 0 #ffc107, 0 16px 40px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    image-rendering: pixelated;
}
.banner-style-pixel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 3px,
        rgba(0, 0, 0, 0.15) 3px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    z-index: 4;
}

@media (max-width: 680px) {
    .banner-nav { display: none; }
}
