/* Discogs Image Carousel Styles */

.discogs-section {
    width: 250px;
    flex-shrink: 0;
    margin-right: 30px;
}

.discogs-carousel {
    width: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #FFD700;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.discogs-carousel-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    border-radius: 15px 15px 0 0;
}

.discogs-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.discogs-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.discogs-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discogs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.discogs-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.discogs-nav.prev {
    left: 10px;
}

.discogs-nav.next {
    right: 10px;
}

.discogs-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.discogs-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease;
}

.discogs-indicator.active {
    background: #1db954;
}

.discogs-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.discogs-info {
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0 0 15px 15px;
    border: 2px solid #FFD700;
    border-top: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.discogs-title {
    font-size: 14px;
    font-weight: bold;
    color: #1db954;
    margin-bottom: 5px;
}

.discogs-year {
    font-size: 12px;
    color: #b3b3b3;
    margin-bottom: 8px;
}

.discogs-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 10px;
}

.discogs-genre {
    background: rgba(29, 185, 84, 0.2);
    color: #1db954;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    border: 1px solid rgba(29, 185, 84, 0.3);
}

.discogs-link {
    display: inline-block;
    background: #1db954;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.discogs-link:hover {
    background: #1ed760;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.discogs-loading {
    text-align: center;
    padding: 20px;
    color: #b3b3b3;
    font-size: 12px;
}

.discogs-error {
    text-align: center;
    padding: 15px;
    color: #ff4444;
    font-size: 12px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.discogs-not-found {
    text-align: center;
    padding: 15px;
    color: #888;
    font-size: 12px;
    background: rgba(136, 136, 136, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .discogs-section {
        width: 200px;
        margin-right: 20px;
    }
    
    .discogs-carousel-container {
        height: 200px;
    }
    
    .discogs-nav {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .discogs-info {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    /* Stack vertically on very small screens */
    .turntable-section {
        flex-direction: column;
        align-items: center;
    }
    
    .discogs-section {
        width: 250px;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .discogs-carousel-container {
        height: 250px;
    }
}

/* Hide when no album is selected */
.discogs-section.hidden {
    display: none;
}

/* Image Modal Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 2px solid #FFD700;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #FFD700;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.image-modal-nav:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.image-modal-prev {
    left: 20px;
}

.image-modal-next {
    right: 20px;
}

.image-modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.image-modal-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.image-modal-info {
    margin-top: 20px;
    text-align: center;
    color: white;
    max-width: 500px;
}

.image-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 10px;
}

.image-modal-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 15px;
    }
    
    .image-modal-img {
        max-height: 60vh;
    }
    
    .image-modal-title {
        font-size: 1.2rem;
    }
    
    .image-modal-description {
        font-size: 0.9rem;
    }
}