/* Homepage YouTube preview section */

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: calc(90% * 0.5625);
    margin: 12px auto;
    box-sizing: border-box;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.card.with-icon {
    display: flex;
    align-items: center;
    gap: 16px;
}
.card.with-icon .icon img {
    width: 48px;
    height: 32px;
}

/* Spotify embed spacing */
iframe[data-testid="embed-iframe"] {
    margin-top: 12px;
    display: block;
}

/* Shine animation for upcoming shows card */
.card-link.has-upcoming-events {
    transition: transform 0.2s ease;
}

.card-link.has-upcoming-events .card.upcoming {
    position: relative;
    overflow: hidden;
}

.card-link.has-upcoming-events .card.upcoming::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    z-index: 1;
    pointer-events: none;
    animation: shine 3s infinite;
    animation-delay: 2s;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Ensure card content stays above shine */
.card-link.has-upcoming-events .card.upcoming > * {
    position: relative;
    z-index: 2;
}

/* Ensure hover effect works for upcoming shows card */
.card-link.has-upcoming-events:hover {
    transform: scale(1.05);
    overflow: visible;
}

.card-link.has-upcoming-events:hover .card.upcoming {
    box-shadow: 0 8px 20px rgba(157,180,255,0.15);
}

.card-link.has-upcoming-events:active {
    transform: scale(0.98);
}

/* ============================================
   Mobile Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    .video-wrapper {
        margin: 10px auto;
        padding-bottom: calc(100% * 0.5625);
    }

    .video-wrapper iframe {
        border-radius: 10px;
    }

    .card.with-icon {
        flex-direction: row;
        gap: 12px;
        padding: 14px;
    }

    .card.with-icon .icon {
        flex-shrink: 0;
    }

    .card.with-icon .icon img {
        width: 40px;
        height: 28px;
    }

    .card.with-icon .content {
        flex: 1;
        min-width: 0;
    }

    .card.with-icon .content h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .card.with-icon .content p {
        font-size: 0.85rem;
    }

    iframe[data-testid="embed-iframe"] {
        margin-top: 10px;
    }

}

@media (max-width: 480px) {
    .video-wrapper {
        margin: 8px auto;
        padding-bottom: calc(100% * 0.5625);
    }

    .video-wrapper iframe {
        border-radius: 8px;
    }

    .card.with-icon {
        gap: 10px;
        padding: 12px;
    }

    .card.with-icon .icon img {
        width: 36px;
        height: 24px;
    }

    .card.with-icon .content h3 {
        font-size: 0.9rem;
    }

    .card.with-icon .content p {
        font-size: 0.8rem;
    }

    iframe[data-testid="embed-iframe"] {
        margin-top: 10px;
    }

}
