/**
 * BannerComponent Styles
 * Rotating banner and track art display
 */

/* ===================
   Shared base styles
   =================== */
.banner-component {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

/* ===================
   Track Art Banner
   div.banner-component.banner-track-art > img
   =================== */
.banner-track-art {
    display: flex;
    justify-content: center;
    align-items: center;
	background-color: #0f0f23;
    border-radius: 12px;
    overflow: hidden;
}

.banner-track-art img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* No artwork placeholder */
.banner-track-art.banner-no-art .placeholder-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    padding: 40px;
    height: 100%;
}

.banner-track-art.banner-no-art .placeholder-icon {
    font-size: 64px;
    margin-bottom: 10px;
}

.banner-track-art.banner-no-art .placeholder-text {
    font-size: 14px;
}

/* ===================
   Rotating Banner
   =================== */
.banner-rotating {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 12px 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.banner-rotating .banner-sections {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0;
    overflow: hidden;
}

.banner-rotating .banner-section {
    display: none;
    animation: bannerFadeIn 0.5s ease-in-out;
    width: 100%;
}

.banner-rotating .banner-section.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes bannerFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-rotating .section-content {
    color: #fff;
    text-align: center;
    width: 100%;
}

.banner-rotating .section-content h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #E77D42;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Shared CTA button */
.banner-rotating .section-cta {
    display: inline-block;
    background: #E77D42;
    color: #fff;
    padding: 8px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.banner-rotating .section-cta:hover {
    background: #f09a66;
    transform: translateY(-2px);
}

/* ===================
   Event Banner Section
   =================== */
a.event-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.event-banner-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.event-banner-layout.has-image {
    gap: 20px;
    text-align: left;
}

.event-banner-image {
    flex-shrink: 0;
    height: 140px;
}

.event-banner-image img {
    height: 100%;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.event-banner-layout.has-image .event-banner-text {
    flex: 1;
    min-width: 0;
}

.event-banner-layout.has-image .event-banner-content {
    text-align: left;
}

.event-banner-content {
    text-align: center;
    padding: 10px 0;
}

.event-banner-content h2 {
    font-size: 18px;
    color: #E77D42;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.event-banner-content .event-tagline {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 12px;
}

.event-banner-layout .event-hero-img {
    display: block;
    max-width: 100%;
    max-height: 176px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
}

.event-edit-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    color: #888;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.event-edit-link:hover {
    opacity: 1;
    color: #E77D42;
}

/* ===================
   Poll Section
   =================== */
.poll-section {
    max-width: 500px;
    margin: 0 auto;
}

.poll-section .poll-question {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 12px;
    line-height: 1.4;
}

.poll-section .poll-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.poll-section .poll-option {
    background: rgba(231, 125, 66, 0.15);
    border: 1px solid rgba(231, 125, 66, 0.4);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s;
}

.poll-section .poll-option:hover {
    background: rgba(231, 125, 66, 0.35);
    border-color: #E77D42;
    transform: translateY(-1px);
}

.poll-section .poll-option.selected {
    background: #E77D42;
    border-color: #E77D42;
}

/* ===================
   Latest Music Section - Card Grid
   =================== */
.music-cards {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.music-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    width: 120px;
    transition: transform 0.2s;
}

.music-card:hover {
    transform: translateY(-3px);
}

.music-card-art {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    position: relative;
}

.music-card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-card-art .art-placeholder {
    font-size: 28px;
    color: #666;
}

.music-card-title {
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.music-card-artist {
    font-size: 10px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

/* Ed Pick styling */
.ed-pick-card {
    flex-direction: row;
    width: auto;
    gap: 12px;
    align-items: flex-start;
}

.ed-pick-card .music-card-art {
    width: 110px;
    height: 110px;
    border: 2px solid #E77D42;
    box-shadow: 0 0 10px rgba(231, 125, 66, 0.3);
    flex-shrink: 0;
}

.ed-pick-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    gap: 2px;
}

.ed-pick-info .music-card-title {
    font-size: 13px;
    white-space: normal;
}

.ed-pick-info .music-card-artist {
    font-size: 11px;
}

.ed-pick-quote {
    margin: 5px 0 0 0;
    padding: 6px 10px 6px 18px;
    border-left: 3px solid #E77D42;
    background: rgba(231, 125, 66, 0.08);
    border-radius: 0 4px 4px 0;
    font-size: 11px;
    font-style: italic;
    color: #ccc;
    line-height: 1.4;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-pick-quote::before {
    content: "\201C";
    position: absolute;
    top: -2px;
    left: 4px;
    font-size: 24px;
    font-style: normal;
    color: rgba(231, 125, 66, 0.5);
    line-height: 1;
}

.ed-pick-quote::after {
    content: "\201D";
    font-size: 24px;
    font-style: normal;
    color: rgba(231, 125, 66, 0.5);
    line-height: 0;
    vertical-align: -6px;
    margin-left: 2px;
}

.ed-pick-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(231, 125, 66, 0.9);
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 0;
    letter-spacing: 0.5px;
}

/* ===================
   Latest Images Section - Thumbnails
   =================== */
.image-thumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.image-thumb-link {
    display: block;
    width: 110px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.image-thumb-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.image-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-thumb-link {
    position: relative;
}

.image-thumb-artist {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #ddd;
    font-size: 10px;
    padding: 3px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.image-thumb-link .art-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    color: #666;
}

/* ===================
   Mixversation Section - Comment Excerpts
   =================== */
.comment-excerpts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.comment-excerpt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 8px 12px;
    width: calc(50% - 4px);
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
    box-sizing: border-box;
    text-align: left;
}

.comment-excerpt:hover {
    background: rgba(255,255,255,0.13);
}

.comment-author {
    font-size: 11px;
    font-weight: bold;
    color: #E77D42;
    margin-bottom: 3px;
}

.comment-text {
    font-size: 11px;
    color: #ccc;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===================
   Navigation Bubbles
   =================== */
.banner-rotating .banner-bubbles {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
    flex-shrink: 0;
}

.banner-rotating .bubble {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #E77D42;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-rotating .bubble .bubble-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.3s;
}

.banner-rotating .bubble.active .bubble-dot {
    background: #E77D42;
}

.banner-rotating .bubble:hover {
    transform: scale(1.2);
    border-color: #f09a66;
}

.banner-rotating .bubble.active {
    border-color: #E77D42;
}

/* ===================
   Responsive
   =================== */
@media (max-width: 768px) {
    .banner-rotating {
        padding: 10px 15px;
    }

    .banner-rotating .section-content h2 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .music-cards {
        gap: 8px;
    }

    .music-card {
        width: 80px;
    }

    .music-card-art {
        width: 65px;
        height: 65px;
    }

    .ed-pick-card .music-card-art {
        width: 75px;
        height: 75px;
    }

    .ed-pick-quote {
        -webkit-line-clamp: 2;
    }

    .image-thumbs {
        gap: 8px;
    }

    .image-thumb-link {
        width: 70px;
        height: 70px;
    }

    .comment-excerpt {
        width: 100%;
    }

    .poll-section .poll-options {
        gap: 6px;
    }

    .poll-section .poll-option {
        font-size: 12px;
        padding: 5px 12px;
    }

    .banner-track-art.banner-no-art .placeholder-icon {
        font-size: 48px;
    }
}
