/**
 * details.css - Show and song detail page styles
 * Setlist pages, individual song pages, and related detail views
 */

/* ==========================================================================
   SETLIST PAGE STYLES
   ========================================================================== */

.setlist-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.show-details {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.show-details h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

.setlist-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.setlist-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

#setlist {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

#setlist p {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

#setlist p:last-child {
    border-bottom: none;
}

#setlist p:hover {
    background-color: rgba(52, 152, 219, 0.05);
    padding-left: 10px;
    margin-left: -10px;
    border-radius: 4px;
}

#setlist a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#setlist a:hover {
    color: #3498db;
    text-decoration: underline;
}

.contact-section {
    background: #e8f4fd;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    text-align: center;
}

.contact-section h2 {
    color: #2c3e50;
    margin-bottom: 0;
    border-bottom: none;
}

.contact-section a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Poster styling */
.setlist-container img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.setlist-container img:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   SONG DETAIL PAGE STYLES
   ========================================================================== */

.song-details {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.song-details h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.song-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.song-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.6;
}

.song-info strong {
    color: #2c3e50;
    font-weight: 600;
}

.song-info a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.song-info a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.lyrics-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.lyrics-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.lyrics {
    /* background: #f8f9fa; */
    padding: 30px;
    border-radius: 8px;
    /* border-left: 4px solid #8B4513; */
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.05em;
}

.lyrics br {
    margin-bottom: 0.5em;
}

/* ==========================================================================
   STATISTICS PAGE STYLES
   ========================================================================== */

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-size: 1.3em;
}

.stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-rank {
    font-weight: bold;
    color: #3498db;
    margin-right: 15px;
    min-width: 25px;
}

.stat-name {
    flex: 1;
    color: #2c3e50;
}

.stat-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.stat-name a:hover {
    color: #3498db;
    text-decoration: underline;
}

.stat-count {
    font-weight: bold;
    color: #e74c3c;
    background: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
}

.intro-text {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
}

.intro-text p {
    margin: 0;
    color: #2c3e50;
}

.intro-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.intro-text a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   ERROR STATES
   ========================================================================== */

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.error-message h2 {
    color: #721c24;
    margin-bottom: 10px;
}

.no-setlist-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.no-setlist-message p {
    margin: 0;
    color: #856404;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .setlist-container,
    .song-details,
    .stats-container {
        padding: 15px;
    }
    
    .show-details,
    .setlist-section,
    .song-info,
    .lyrics-section {
        padding: 20px;
    }
    
    .song-details h1 {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-section {
        padding: 20px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .stat-rank {
        margin-right: 0;
    }
    
    /* Poster responsive behavior */
    .setlist-container img {
        max-width: 100%;
        height: auto;
        float: none !important;
        display: block;
        margin: 0 auto 20px auto;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .setlist-container,
    .song-details {
        max-width: none;
        padding: 0;
    }
    
    .show-details,
    .setlist-section,
    .song-info,
    .lyrics-section {
        box-shadow: none;
        border: 1px solid #ccc;
        background: white !important;
    }
    
    .contact-section {
        display: none;
    }
    
    .stat-section {
        break-inside: avoid;
    }
    
    .lyrics {
        background: white !important;
        border-left: 2px solid #000;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .setlist-container img,
    #setlist p,
    .stat-item {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .show-details,
    .setlist-section,
    .song-info,
    .lyrics-section,
    .stat-section {
        border: 2px solid #000;
    }
    
    .intro-text {
        border-left-color: #000;
    }
}