/* Album Detail Page Styles */

/* Album Detail Section */
.album-detail {
    padding: 8rem 2rem 5rem;
    background-color: var(--primary-color);
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(38, 65, 92, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(229, 162, 85, 0.1) 0%, transparent 70%);
}

.album-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    position: relative;
}

/* Gold dust effect for album detail page */
.album-detail-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Images/gold-dust.png');
    background-size: cover;
    opacity: 0.05; /* Reduced opacity */
    pointer-events: none;
    z-index: 0;
    animation: slowShimmer 60s infinite linear;
}

@keyframes slowShimmer {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.05;
    }
    50% {
        transform: translateY(-5%) scale(1.05);
        opacity: 0.15;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.05;
    }
}

/* Create a new wrapper just for the image and its effects */
.album-image-wrapper:hover::after {
    opacity: 1;
}
/* Add the glow effect to the image wrapper instead of the container */
.album-cover-container::after {
    display: none;
}

.album-cover-container {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 1;
}

.album-cover-lg {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    position: relative; /* Make positioning context */
}

.album-cover-lg:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px 5px rgba(229, 162, 85, 0.5);
}

/* You can adjust the glow intensity by changing these values:
   - 40px: blur radius - increase for a softer, more spread out glow
   - 15px: spread radius - increase to make the glow extend further from the image
   - 0.6: opacity - increase for a more intense glow (max 1.0)
*/

/* Gold highlight effect for album art */
.album-cover-container::after {
    display: none;
}

.album-cover-container:hover::after {
    opacity: 1;
}

.album-info-container {
    flex: 2;
    min-width: 300px;
    position: relative;
    z-index: 1;
}

.album-title {
    font-family: 'Abril Fatface', serif;
    font-size: 3.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.album-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.album-meta {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.album-date {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 2rem;
}

.album-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.album-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: #111;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.album-btn i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.album-btn:hover {
    background-color: var(--highlight-color);
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.album-description {
    margin-bottom: 3rem;
}

.album-description p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.album-description em {
    color: var(--accent-color);
    font-style: normal;
    font-weight: 500;
}

/* Tracklist Styles */
.tracklist {
    margin-bottom: 3rem;
}

.tracklist-title {
    font-family: 'Abril Fatface', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.tracklist-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.track {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.track:hover {
    background-color: rgba(229, 162, 85, 0.08);
    padding-left: 1rem;
    border-radius: 5px;
}

/* Gold dust shimmer on track hover */
.track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(229, 162, 85, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 70% 50%, rgba(229, 162, 85, 0.1) 0%, transparent 30%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.track:hover::before {
    opacity: 1;
}

.track-number {
    width: 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.track-details {
    flex: 1;
    transition: transform 0.3s ease;
}

.track:hover .track-details {
    transform: translateX(5px);
}

.track-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.track-duration {
    width: 60px;
    text-align: right;
    color: rgba(224, 224, 224, 0.7);
}

.track-play {
    width: 40px;
    text-align: center;
    cursor: pointer;
    color: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.track:hover .track-play {
    opacity: 1;
}

/* Custom notification styling */
.track-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(30, 40, 55, 0.95);
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 162, 85, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.track-notification.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.track-notification-title {
    font-family: 'Abril Fatface', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.track-notification-message {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.track-notification-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #111;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.track-notification-btn:hover {
    background-color: var(--highlight-color);
    transform: translateY(-3px);
}

/* Gold dust effect for notification */
.track-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(229, 162, 85, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(99, 180, 207, 0.05) 0%, transparent 50%);
    border-radius: 10px;
    pointer-events: none;
    z-index: -1;
}

/* Credits Section Styles */
.credits {
    margin-bottom: 3rem;
}

.credits-title {
    font-family: 'Abril Fatface', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.credits-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.credits-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.credit-item {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.credit-item::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 3px;
    height: 70%;
    background-color: var(--accent-color);
    opacity: 0.6;
}

.credit-role {
    font-size: 0.9rem;
    color: var(--highlight-color);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.credit-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Lyrics Section */
.lyrics-section {
    padding: 5rem 2rem;
    background-color: var(--secondary-color);
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(99, 180, 207, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(229, 162, 85, 0.1) 0%, transparent 60%);
}

.lyrics-container {
    max-width: 1200px;
    margin: 0 auto;
}

.lyrics-title {
    font-family: 'Abril Fatface', serif;
    font-size: 2.8rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.lyrics-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

.lyrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
}

.lyric-card {
    background-color: rgba(10, 17, 25, 0.7);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.lyric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Gold dust effect on lyric cards */
.lyric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(229, 162, 85, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(99, 180, 207, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.lyric-card:hover::before {
    opacity: 1;
}

.lyric-card-title {
    font-family: 'Abril Fatface', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: var(--text-color);
}

.lyric-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.lyric-content {
    white-space: pre-line;
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(224, 224, 224, 0.9);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .album-title {
        font-size: 2.8rem;
    }
    
    .lyrics-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .album-detail {
        padding: 6rem 1.5rem 3rem;
    }
    
    .album-detail-container {
        gap: 2rem;
    }
    
    .album-title {
        font-size: 2.5rem;
    }
    
    .album-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .album-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lyrics-grid {
        grid-template-columns: 1fr;
    }
    
    .lyric-card {
        padding: 1.5rem;
    }
    
    .credits-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .album-title {
        font-size: 2rem;
    }
    
    .album-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .album-date {
        margin-bottom: 0.5rem;
    }
    
    .tracklist-title, 
    .credits-title {
        font-size: 1.5rem;
    }
    
    .lyrics-title {
        font-size: 2.2rem;
    }
}

/* Animation for lyrics loading */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lyric-card {
    animation: fadeIn 0.6s ease forwards;
}

.lyrics-grid .lyric-card:nth-child(1) { animation-delay: 0.1s; }
.lyrics-grid .lyric-card:nth-child(2) { animation-delay: 0.2s; }
.lyrics-grid .lyric-card:nth-child(3) { animation-delay: 0.3s; }
.lyrics-grid .lyric-card:nth-child(4) { animation-delay: 0.4s; }
.lyrics-grid .lyric-card:nth-child(5) { animation-delay: 0.5s; }
.lyrics-grid .lyric-card:nth-child(6) { animation-delay: 0.6s; }
.lyrics-grid .lyric-card:nth-child(7) { animation-delay: 0.7s; }
.lyrics-grid .lyric-card:nth-child(8) { animation-delay: 0.8s; }
.lyrics-grid .lyric-card:nth-child(9) { animation-delay: 0.9s; }
.lyrics-grid .lyric-card:nth-child(10) { animation-delay: 1s; }

/* Track loading animation */
.track {
    animation: fadeIn 0.5s ease forwards;
}

#tracklistContainer .track:nth-child(1) { animation-delay: 0.05s; }
#tracklistContainer .track:nth-child(2) { animation-delay: 0.1s; }
#tracklistContainer .track:nth-child(3) { animation-delay: 0.15s; }
#tracklistContainer .track:nth-child(4) { animation-delay: 0.2s; }
#tracklistContainer .track:nth-child(5) { animation-delay: 0.25s; }
#tracklistContainer .track:nth-child(6) { animation-delay: 0.3s; }
#tracklistContainer .track:nth-child(7) { animation-delay: 0.35s; }
#tracklistContainer .track:nth-child(8) { animation-delay: 0.4s; }
#tracklistContainer .track:nth-child(9) { animation-delay: 0.45s; }
#tracklistContainer .track:nth-child(10) { animation-delay: 0.5s; }
#tracklistContainer .track:nth-child(11) { animation-delay: 0.55s; }
#tracklistContainer .track:nth-child(12) { animation-delay: 0.6s; }
#tracklistContainer .track:nth-child(13) { animation-delay: 0.65s; }
#tracklistContainer .track:nth-child(14) { animation-delay: 0.7s; }
#tracklistContainer .track:nth-child(15) { animation-delay: 0.75s; }
#tracklistContainer .track:nth-child(16) { animation-delay: 0.8s; }