/* Music Lyrics CPT Frontend Styles */

/* Main lyrics container */
.music-lyrics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Lyrics content layout */
.lyrics-content {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

/* Two column layout when both columns have content */
.lyrics-content.two-columns {
    grid-template-columns: 1fr 1fr;
}

/* Single column layout when only one column has content */
.lyrics-content.single-column {
    grid-template-columns: 1fr;
}

.lyrics-column {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-line;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.lyrics-column h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Album covers section */
.album-covers-section {
    margin: 40px 0;
}

.album-covers-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* Two covers layout */
.album-covers-grid.two-covers {
    grid-template-columns: 1fr 1fr;
}

/* Single cover layout */
.album-covers-grid.single-cover {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.album-cover {
    text-align: center;
}

.album-cover img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-cover img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.album-cover-caption {
    margin-top: 12px;
    font-size: 14px;
    color: #646970;
    font-style: italic;
}

/* Release information */
.release-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.release-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.release-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.release-info-item {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.release-info-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.8;
    font-weight: 500;
}

.release-info-value {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Song title styling */
.song-title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.song-title h1 {
    font-size: 2.5em;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Navigation for lyrics archive */
.lyrics-navigation {
    margin: 40px 0;
    text-align: center;
}

.lyrics-nav-link {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
    margin: 0 5px;
}

.lyrics-nav-link:hover {
    background: #135e96;
    color: #fff;
    text-decoration: none;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .music-lyrics-container {
        padding: 15px;
    }
    
    .lyrics-content.two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .album-covers-grid.two-covers {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .release-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .song-title h1 {
        font-size: 2em;
    }
    
    .lyrics-column {
        padding: 20px;
        font-size: 15px;
    }
    
    .release-info {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .song-title h1 {
        font-size: 1.8em;
    }
    
    .lyrics-column {
        padding: 15px;
        font-size: 14px;
    }
    
    .release-info-item {
        padding: 10px;
    }
    
    .album-cover img {
        border-radius: 8px;
    }
}

/* Print styles */
@media print {
    .music-lyrics-container {
        max-width: none;
        padding: 0;
    }
    
    .lyrics-content.two-columns {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .release-info {
        background: #f5f5f5 !important;
        color: #000 !important;
        border: 1px solid #ddd;
    }
    
    .release-info-item {
        background: transparent !important;
        border: 1px solid #ddd;
    }
    
    .album-cover img {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .lyrics-nav-link {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .lyrics-column {
        background: #2d2d2d;
        color: #e0e0e0;
        border-left-color: #4a90e2;
    }
    
    .song-title h1 {
        background: linear-gradient(135deg, #4a90e2 0%, #9c88ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .album-cover-caption {
        color: #b0b0b0;
    }
}

/* Animation for page load */
.music-lyrics-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for interactive elements */
.lyrics-column {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lyrics-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Archive page styles */
.music-lyrics-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
}

.archive-title {
    font-size: 2.5em;
    margin: 0 0 10px;
    font-weight: 700;
}

.archive-description {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
}

.lyrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.lyrics-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lyrics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.lyrics-card-image {
    position: relative;
    overflow: hidden;
}

.lyrics-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lyrics-card:hover .lyrics-card-image img {
    transform: scale(1.05);
}

.lyrics-card-content {
    padding: 20px;
}

.lyrics-card-title {
    margin: 0 0 8px;
    font-size: 1.4em;
    font-weight: 600;
}

.lyrics-card-title a {
    color: #1d2327;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lyrics-card-title a:hover {
    color: #2271b1;
}

.lyrics-card-composer {
    margin: 0 0 12px;
    color: #646970;
    font-style: italic;
    font-size: 0.9em;
}

.lyrics-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-item {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f1;
    color: #50575e;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

.meta-item.album {
    background: #e1f5fe;
    color: #0277bd;
}

.meta-item.genre {
    background: #f3e5f5;
    color: #7b1fa2;
}

.meta-item.date {
    background: #fff3e0;
    color: #ef6c00;
}

.lyrics-card-excerpt {
    margin-bottom: 15px;
    color: #646970;
    font-size: 0.9em;
    line-height: 1.5;
}

.lyrics-card-link {
    display: inline-block;
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lyrics-card-link:hover {
    color: #135e96;
}

.lyrics-pagination {
    text-align: center;
    margin-top: 40px;
}

.lyrics-pagination ul {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lyrics-pagination li {
    display: inline-block;
    margin: 0 2px;
}

.lyrics-pagination a,
.lyrics-pagination span {
    display: block;
    padding: 8px 12px;
    background: #f0f0f1;
    color: #50575e;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.lyrics-pagination a:hover {
    background: #2271b1;
    color: #fff;
}

.lyrics-pagination .current {
    background: #2271b1;
    color: #fff;
}

.no-lyrics-found {
    text-align: center;
    padding: 60px 20px;
    color: #646970;
}

.no-lyrics-found h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #1d2327;
}

/* Archive responsive design */
@media screen and (max-width: 768px) {
    .lyrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-header {
        padding: 30px 20px;
        margin: 0 15px 30px;
    }
    
    .archive-title {
        font-size: 2em;
    }
    
    .archive-description {
        font-size: 1em;
    }
}

/* Accessibility improvements */
.lyrics-column:focus-within {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
