/**
 * Live Connect Enhanced Modals Styles
 */

/* Modal Overlay */
.live-connect-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
    backdrop-filter: blur(5px);
}

/* Modal Content */
.live-connect-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Modal Header */
.live-connect-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.live-connect-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.live-connect-modal-close {
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.live-connect-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Modal Body */
.live-connect-modal-body {
    padding: 30px;
}

/* Event Details Section */
.live-connect-event-details {
    margin: 0 0 20px 0;
}

.event-detail-item {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.4;
}

.event-detail-label {
    font-weight: 600;
    color: #333;
}

.event-detail-value {
    color: #555;
}

.event-info h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.event-date, .event-venue {
    margin: 8px 0;
    font-size: 16px;
    color: #666;
}

.event-date {
    font-weight: 600;
    color: #667eea;
}

.event-description {
    margin-top: 15px;
    line-height: 1.6;
    color: #555;
}

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Performers Section */
.live-connect-performers-section {
    margin-bottom: 30px;
}

.live-connect-performers-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.performer-card {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.performer-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.performer-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.performer-bio {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link.spotify { background: #1db954; color: white; }
.social-link.youtube { background: #ff0000; color: white; }
.social-link.instagram { background: #e4405f; color: white; }
.social-link.twitter { background: #1da1f2; color: white; }
.social-link.facebook { background: #1877f2; color: white; }
.social-link.tiktok { background: #000000; color: white; }

/* Spotify Tracks Section */
.live-connect-spotify-section {
    margin: 0;
}

.spotify-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

/* Single Spotify Player */
.spotify-player-container {
    margin-bottom: 15px;
}

.spotify-player-container iframe {
    display: block;
    border-radius: 12px;
}

/* Spotify Track List */
.spotify-track-list {
    margin-top: 15px;
}

.track-list-header {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spotify-track-item {
    padding: 10px 0;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spotify-track-item:hover {
    padding-left: 8px;
    border-left: 3px solid #1db954;
}

.spotify-track-item.active {
    padding-left: 8px;
    border-left: 3px solid #1db954;
}

.spotify-track-item.active .track-name {
    color: #1db954;
    font-weight: 700;
}

.spotify-track-item.active .track-artist {
    color: #666;
}

.spotify-track-item .track-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 4px;
}

.spotify-track-item .track-artist {
    font-size: 13px;
    color: #666;
}

.spotify-track {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1db954;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.track-artwork {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.track-details h5 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.track-details p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.track-preview {
    width: 200px;
    height: 32px;
}

.spotify-link {
    background: #1db954;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.spotify-link:hover {
    background: #1ed760;
    color: white;
}

/* Performer Tabs Navigation */
.performer-tabs-navigation {
    display: flex;
    gap: 10px;
    margin: 25px 0 20px 0;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 2px;
}

.performer-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.performer-tab-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.02);
}

.performer-tab-btn.active {
    color: #1db954;
    border-bottom-color: #1db954;
}

/* Performer Content Containers */
.performer-content,
.performer-content-single {
    display: none;
}

.performer-content.active,
.performer-content-single {
    display: block;
}

/* Artist Bio Section */
.live-connect-artist-bio-section {
    margin: 30px 0;
    padding-top: 25px;
}

.live-connect-artist-bio {
    margin-bottom: 25px;
}

.bio-header {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.bio-text {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Multimedia Grid Layout (Spotify + Videos) - 50/50 Split */
.live-connect-multimedia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
    align-items: start;
}

.multimedia-spotify {
    min-width: 0;
}

.multimedia-videos {
    min-width: 0;
}

/* Video Section Styles - Clean, matching Spotify section */
.live-connect-video-section {
    margin: 0;
}

.video-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.video-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.live-connect-video-item {
    border-radius: 8px;
    overflow: hidden;
}

.live-connect-video-item iframe {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    display: block;
}

.video-fallback-link {
    display: block;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    color: #007cba;
    text-decoration: none;
}

.video-fallback-link:hover {
    background: #f0f0f0;
}

/* Loading State */
.live-connect-modal-content.loading {
    text-align: center;
    padding: 50px;
    max-width: 400px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.live-connect-modal-content.error {
    text-align: center;
    padding: 50px;
    max-width: 400px;
}

.live-connect-modal-content.error h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.live-connect-modal-content.error button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
}

/* Hero Photo Reel */
.live-connect-hero-reel {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.hero-reel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.hero-reel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-reel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-reel-slide.active {
    opacity: 1;
}

.hero-reel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-reel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.hero-reel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.hero-reel-prev {
    left: 15px;
}

.hero-reel-next {
    right: 15px;
}

.hero-reel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-reel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.hero-reel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-reel-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Buy Tickets Button */
.live-connect-buy-tickets-btn {
    display: inline-block;
    background: #1db954;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.live-connect-buy-tickets-btn:hover {
    background: #1ed760;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .live-connect-modal-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .live-connect-event-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .performer-card {
        flex-direction: column;
        text-align: center;
    }
    
    .performer-image {
        align-self: center;
    }
    
    .spotify-track {
        flex-direction: column;
        text-align: center;
    }
    
    .track-info {
        flex-direction: column;
    }
    
    .track-preview {
        width: 100%;
    }

    .live-connect-multimedia-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .multimedia-videos {
        order: -1;
    }
    
    .hero-reel-arrow {
        width: 35px;
        height: 35px;
    }
    
    .hero-reel-prev {
        left: 10px;
    }
    
    .hero-reel-next {
        right: 10px;
    }
}
