/**
 * Frontend styles
 * Add this to your theme or via Customizer > Additional CSS
 */

/* Table of Contents */
.slg-toc {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #2271b1;
}

.slg-toc h2 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #1e3a5f;
}

.slg-toc-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.slg-toc-list li {
    margin-bottom: 8px;
    position: relative;
}

.slg-toc-list li::before {
    content: "→";
    position: absolute;
    left: -20px;
    color: #2271b1;
}

.slg-toc-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slg-toc-list li a:hover {
    color: #2271b1;
}

.slg-toc-list .toc-level-3 {
    margin-left: 20px;
}

/* Main Content */
.slg-content {
    line-height: 1.8;
    color: #333;
}

.slg-content h2 {
    color: #1e3a5f;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.slg-content h3 {
    color: #2271b1;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.slg-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.slg-content ul,
.slg-content ol {
    margin: 15px 0 15px 25px;
}

.slg-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Lyrics Section */
.slg-content .lyrics-section {
    background: #fafafa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #e0e0e0;
}

.slg-content .lyrics-section pre,
.slg-content .lyrics-section code {
    font-family: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Chords Section */
.slg-content .chords-section {
    background: #fff8e1;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #ffcc02;
}

.slg-content .chord {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin: 0 3px;
}

/* Info Box */
.slg-content .info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #2196f3;
}

.slg-content .info-box strong {
    color: #1565c0;
}

/* Sources */
.slg-sources {
    margin-top: 40px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .slg-toc {
        padding: 15px;
    }
    
    .slg-content h2 {
        font-size: 20px;
    }
    
    .slg-content h3 {
        font-size: 18px;
    }
    
    .slg-content .lyrics-section,
    .slg-content .chords-section {
        padding: 15px;
    }
}

/* Related Posts */
.slg-related-post {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #1976d2;
    padding: 13px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.12);
}

.slg-related-post .slg-related-label {
    color: #0d47a1;
    margin-right: 6px;
    font-size: 15px;
}

.slg-related-post a {
    color: #1565c0;
    text-decoration: none;
    border-bottom: 1px dashed #1565c0;
    transition: color 0.2s, border-color 0.2s;
}

.slg-related-post a:hover {
    color: #0d47a1;
    border-bottom-style: solid;
}

@media screen and (max-width: 768px) {
    .slg-related-post {
        font-size: 14px;
        padding: 10px 14px;
    }
}

/* Print styles */
@media print {
    .slg-toc {
        page-break-after: avoid;
    }
    
    .slg-content h2,
    .slg-content h3 {
        page-break-after: avoid;
    }
    
    .slg-sources {
        page-break-before: always;
    }
}
