/*
 * Black Vinyl - Holographic Album Cards CSS
 * Futuristische holographic effects voor album cards met perfecte responsiveness
 * Gebaseerd op dezelfde technologie als de member cards
 */

/* ===== HOLOGRAPHIC ALBUM GRID ===== */
.holographic-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    perspective: 1200px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* ===== HOLOGRAPHIC ALBUM CARD ===== */
.holographic-album-card {
    position: relative;
    width: 100%;
    height: 480px;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    /* easeOutQuint — softer landing for the lift-on-hover */
    transition:
        transform 500ms cubic-bezier(0.23, 1, 0.320, 1),
        filter 500ms cubic-bezier(0.23, 1, 0.320, 1),
        box-shadow 500ms cubic-bezier(0.23, 1, 0.320, 1);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.holographic-album-card:hover {
    transform: translateY(-10px) scale(1.02);
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.7));
}

/* ===== CARD CONTAINER ===== */
.holographic-album-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.holographic-album-card.data-accessed .holographic-album-container {
    transform: rotateY(180deg);
}

/* ===== FRONT & BACK CARDS ===== */
.holographic-album-front,
.holographic-album-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    border: 2px solid;
    border-image: linear-gradient(45deg, 
        var(--album-theme-color, #c41e3a), 
        #c0c0c0, 
        var(--album-theme-color, #c41e3a)
    ) 1;
}

.holographic-album-front {
    background: linear-gradient(135deg, 
        rgba(192, 192, 192, 0.05) 0%,
        rgba(196, 30, 58, 0.03) 30%,
        rgba(139, 0, 0, 0.05) 60%,
        rgba(0, 0, 0, 0.2) 100%);
}

.holographic-album-back {
    background: linear-gradient(135deg, 
        rgba(196, 30, 58, 0.08) 0%,
        rgba(192, 192, 192, 0.05) 30%,
        rgba(139, 0, 0, 0.08) 60%,
        rgba(0, 0, 0, 0.3) 100%);
    transform: rotateY(180deg);
}

/* ===== HOLOGRAPHIC OVERLAY EFFECTS ===== */
.holographic-overlay,
.holographic-overlay-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    animation: hologramShimmer 6s infinite;
    pointer-events: none;
    z-index: 1;
}

.holographic-overlay-back {
    background: linear-gradient(
        -45deg,
        transparent 30%,
        rgba(192, 192, 192, 0.1) 50%,
        transparent 70%
    );
    animation: hologramShimmerBack 8s infinite;
}

@keyframes hologramShimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

@keyframes hologramShimmerBack {
    0% { transform: translateX(200%) rotate(-45deg); }
    100% { transform: translateX(-100%) rotate(-45deg); }
}

/* ===== SCAN LINE EFFECT ===== */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(196, 30, 58, 0.4),
        transparent
    );
    animation: scanLine 4s infinite;
    z-index: 2;
    opacity: 0.6;
}

@keyframes scanLine {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(480px); opacity: 0; }
}

.holographic-album-card.scanning .scan-line {
    animation-duration: 1s;
}

/* ===== DATA STREAM EFFECT ===== */
.data-stream {
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent, 
        rgba(192, 192, 192, 0.4),
        transparent
    );
    animation: dataStream 3s infinite;
    z-index: 2;
    opacity: 0.5;
}

@keyframes dataStream {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-320px); opacity: 0; }
}

/* ===== ALBUM COVER HOLOGRAM ===== */
.album-hologram-cover {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 1rem 0;
    z-index: 3;
}

.album-hologram-cover img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid rgba(192, 192, 192, 0.6);
    transition: transform 500ms var(--ease-standard), opacity 500ms var(--ease-standard), background-color 500ms var(--ease-standard), box-shadow 500ms var(--ease-standard);
    filter: contrast(1.2) brightness(1.1) hue-rotate(10deg);
}

.holographic-album-card:hover .album-hologram-cover img {
    border-color: var(--album-theme-color, #c41e3a);
    filter: contrast(1.4) brightness(1.3) hue-rotate(20deg);
    transform: scale(1.05);
}

.cover-hologram-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(45deg, 
        var(--album-theme-color, #c41e3a), 
        #b8860b
    );
    display: none;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(192, 192, 192, 0.6);
}

.cover-hologram-fallback i {
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.power-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, 
        var(--album-theme-color, #c41e3a), 
        rgba(184, 134, 11, 0.8)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 20px var(--album-theme-color, #c41e3a);
    animation: powerPulse 2s infinite;
}

@keyframes powerPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 10px var(--album-theme-color, #c41e3a);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 15px var(--album-theme-color, #c41e3a);
    }
}

/* ===== HOLOGRAM INFO STYLING ===== */
.album-hologram-info {
    text-align: center;
    color: white;
    z-index: 3;
    width: 100%;
}

.glitch-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: 2px;
    text-shadow:
        1.5px 1.5px 4px rgba(0,0,0,0.55), /* subtielere donkere schaduw */
        0 0 2px #fff,
        0 0 3px var(--album-theme-color, #c41e3a);
    position: relative;
    font-weight: bold;
    background: none;
    border-radius: 0;
    padding: 0;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.13; /* nog subtieler */
    pointer-events: none;
}

.glitch-text::before {
    color: rgba(0,0,0,0.5);
    animation: glitch1 4s infinite;
}

.glitch-text::after {
    color: rgba(255,140,0,0.25);
    animation: glitch2 4s infinite;
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(1px, -1px); }
    40% { transform: translate(1px, 1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(-1px, 1px); }
}

.album-year-hologram {
    color: var(--album-theme-color, #c41e3a);
    font-family: 'Bebas Neue', cursive;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px var(--album-theme-color, #c41e3a);
    font-weight: bold;
}

.album-label-hologram {
    color: #ffffff;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.album-popularity-hologram {
    color: #1DB954;
    font-size: 0.7rem;
    margin: 0.2rem 0 0 0;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(29, 185, 84, 0.6);
}

.album-popularity-hologram i {
    color: #1DB954;
    font-size: 0.6rem;
}

/* ===== POWER LEVEL ===== */
.power-level {
    width: 100%;
    margin-bottom: 1rem;
}

.power-level span {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.power-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.power-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--album-theme-color, #c41e3a), 
        #b8860b
    );
    border-radius: 4px;
    animation: powerFlow 2s infinite;
}

@keyframes powerFlow {
    0%, 100% { box-shadow: 0 0 10px var(--album-theme-color, #c41e3a); }
    50% { box-shadow: 0 0 20px #b8860b; }
}

/* ===== HINTS ===== */
.hologram-hint,
.hologram-back-hint {
    color: rgba(192, 192, 192, 0.6);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(192, 192, 192, 0.4);
    animation: hintPulse 6s infinite;
    z-index: 3;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.glitch-hint {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 3px;
}

/* ===== BACK CONTENT STYLING ===== */
.album-hologram-back-content {
    text-align: center;
    color: white;
    width: 100%;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.album-name-back {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 8px var(--album-theme-color, #c41e3a),
        0 0 15px var(--album-theme-color, #c41e3a);
    font-weight: bold;
}

.album-info-box {
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: rgba(192, 192, 192, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(192, 192, 192, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: #c0c0c0;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.info-value {
    color: var(--album-theme-color, #c41e3a);
    font-family: 'Bebas Neue', cursive;
    font-size: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--album-theme-color, #c41e3a);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-label {
    color: #c0c0c0;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.stat-value {
    color: white;
    font-weight: bold;
    text-align: right;
    font-size: 0.8rem;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--album-theme-color, #c41e3a), 
        #b8860b
    );
    border-radius: 3px;
    animation: statFlow 1.5s ease-out;
}

@keyframes statFlow {
    0% { width: 0%; }
    100% { width: var(--stat-width, 100%); }
}

/* ===== TRACKLIST SECTION ===== */
.tracklist-section {
    flex-grow: 1;
    overflow: hidden;
}

.tracklist-label {
    color: #c0c0c0;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.tracklist-container {
    margin-bottom: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 8px;
    /* Firefox scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--album-theme-color, #c41e3a) rgba(0, 0, 0, 0.3);
}

.tracklist-container::-webkit-scrollbar {
    width: 6px;
}

.tracklist-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.tracklist-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        var(--album-theme-color, #c41e3a), 
        rgba(192, 192, 192, 0.6)
    );
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tracklist-container::-webkit-scrollbar-thumb:hover {
    background: var(--album-theme-color, #c41e3a);
}

.track-item {
    display: grid;
    grid-template-columns: 30px 1fr 50px;
    gap: 0.5rem;
    padding: 0.3rem 0;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.track-item:last-child {
    border-bottom: none;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.track-number {
    color: var(--album-theme-color, #c41e3a);
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
}

.track-title {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.track-duration {
    color: #c0c0c0;
    font-size: 0.7rem;
    text-align: right;
}

.total-duration {
    color: var(--album-theme-color, #c41e3a);
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    padding-top: 0.5rem;
    border-top: 2px solid rgba(192, 192, 192, 0.3);
}

/* ===== SPOTIFY SECTION ===== */
.spotify-section {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spotify-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #1db954;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition-300);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.spotify-button:hover {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.spotify-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.spotify-logo {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.spotify-button span {
    white-space: nowrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Spotify button holographic integration — shimmer via transform (compositor) */
.spotify-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 500ms var(--ease-standard);
    pointer-events: none;
}

.spotify-button:hover::before {
    transform: translateX(100%);
}

/* ===== HOLOGRAPHIC FLICKER EFFECT ===== */
.holographic-album-card.hologram-flicker {
    animation: hologramFlicker 0.2s ease-in-out;
}

@keyframes hologramFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .holographic-albums-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .holographic-albums-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .holographic-album-card {
        height: 450px;
    }
    
    .album-hologram-cover {
        width: 140px;
        height: 140px;
    }
    
    .glitch-text {
        font-size: 1.6rem;
    }
    
    .tracklist-container {
        max-height: 180px;
    }
    
    .spotify-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .spotify-logo {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .holographic-albums-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
        max-width: 350px;
    }
    
    .holographic-album-card {
        height: 420px;
        margin: 0 auto;
        max-width: 320px;
    }
    
    .album-hologram-cover {
        width: 120px;
        height: 120px;
    }
    
    .glitch-text {
        font-size: 1.4rem;
    }
    
    .holographic-album-front,
    .holographic-album-back {
        padding: 1.5rem;
    }
    
    .tracklist-container {
        max-height: 180px;
        overflow-y: auto;
        padding-right: 10px;
    }
    
    .track-item {
        grid-template-columns: 25px 1fr 45px;
        gap: 0.3rem;
        padding: 0.2rem 0;
    }
    
    .track-title {
        font-size: 0.75rem;
    }
    
    .track-duration {
        font-size: 0.65rem;
    }
    
    .spotify-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        border-radius: 20px;
    }
    
    .spotify-logo {
        width: 16px;
        height: 16px;
    }
    
    .spotify-section {
        margin-top: 0.75rem;
    }
}

.tracklist-container.scrollable {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 8px;
    /* Explicitly ensure scrolling behavior */
    scrollbar-width: thin;
    scrollbar-color: var(--album-theme-color, #c41e3a) rgba(0, 0, 0, 0.3);
}
