/* ═══════════════════════════════════════════════════════════════
   DISCOGRAPHY - ALBUM GRID WITH RECORD PLAYER EFFECT
═══════════════════════════════════════════════════════════════ */

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 400px));
    gap: 6rem;
    margin-top: 2rem;
    padding: 0;
    justify-content: center;
}

.album-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 400px;
    position: relative;
}

.album-item:hover {
    transform: translateY(-5px) translateX(-60px);
}

/* Album Cover and Record Wrapper */
.album-cover-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin-bottom: 1rem;
    overflow: visible;
}

/* Album Cover */
.album-cover {
    position: relative;
    width: 400px;
    height: 400px;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    background: #0a0a0a;
}

.album-cover img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Vinyl Record */
.record-vinyl {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.record-vinyl img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(0.4) contrast(1.2);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
}

/* Hover Effect - Record peeks out just slightly from behind cover */
.album-item:hover .album-cover {
    transform: translateX(0);
}

.album-item:hover .record-vinyl {
    opacity: 1;
    transform: translateX(180px);
    animation: spin 8s linear infinite;
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: translateX(180px) rotate(0deg);
    }
    to {
        transform: translateX(180px) rotate(360deg);
    }
}

/* "More Information" Hover Text */
.album-item::before {
    content: "More Information";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.album-item:hover::before {
    opacity: 1;
    visibility: visible;
    animation: gentleBounce 1.5s ease-in-out infinite;
}

@keyframes gentleBounce {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }
}

/* Album Title */
.album-title {
    font-family: 'BBH Hegarty', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.album-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: rgba(218, 165, 32, 0.7);
    letter-spacing: 0.1em;
}

/* No Albums Message */
.no-albums {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    padding: 4rem 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* Discography Panel Adjustments */
#discography .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#discography .hero-title {
    text-align: center;
    width: 100%;
}

#discography .albums-grid {
    width: 100%;
    max-width: 1400px;
}

/* ═══════════════════════════════════════════════════════════════
   ALBUM MODAL
═══════════════════════════════════════════════════════════════ */

.album-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.album-modal.active {
    display: flex;
}

.album-modal-content {
    background: #1a1410;
    border: 1px solid rgba(218, 165, 32, 0.2);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Modal Close Button */
.album-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: #DAA520;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
}

.album-modal-close:hover {
    color: #ffffff;
}

/* Modal Inner */
.album-modal-inner {
    padding: 3rem;
}

/* Modal Header */
.album-modal-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.album-modal-cover {
    width: 100%;
    aspect-ratio: 1;
}

.album-modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.album-modal-info h2 {
    font-family: 'BBH Hegarty', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.album-modal-meta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.album-modal-meta strong {
    color: #DAA520;
    font-weight: 500;
    display: inline-block;
    min-width: 100px;
}

/* Modal Description */
.album-modal-description {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* Streaming Links */
.album-streaming-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.streaming-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: #DAA520;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
}

.streaming-link:hover {
    background: rgba(218, 165, 32, 0.2);
    border-color: #DAA520;
    transform: translateY(-2px);
}

.streaming-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Purchase Button */
.album-purchase-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background: #DAA520;
    color: #0a0a0a;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.album-purchase-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
        gap: 4rem;
    }
    
    .album-item {
        width: 300px;
    }
    
    .album-item:hover {
        transform: translateY(-5px) translateX(-40px);
    }
    
    .album-cover-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .album-cover {
        width: 300px;
        height: 300px;
        background: #0a0a0a;
    }
    
    .album-cover img {
        width: 300px;
        height: 300px;
    }
    
    .record-vinyl,
    .record-vinyl img {
        width: 300px;
        height: 300px;
    }
    
    .album-item:hover .album-cover {
        transform: translateX(0);
    }
    
    .album-item:hover .record-vinyl {
        transform: translateX(135px);
    }
    
    @keyframes spin {
        from {
            transform: translateX(135px) rotate(0deg);
        }
        to {
            transform: translateX(135px) rotate(360deg);
        }
    }
    
    .album-item::before {
        font-size: 1rem;
    }
    
    .album-modal-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .album-modal-cover {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .album-modal-info h2 {
        font-size: 2rem;
    }
    
    .album-modal-inner {
        padding: 2rem 1.5rem;
    }
    
    .album-streaming-links {
        flex-direction: column;
    }
    
    .streaming-link {
        justify-content: center;
    }
}
