/* 
 * PraiseChords - Enhanced Lyrics Display Styles
 * Multiple visual themes for lyrics/chords presentation
 * All styles use subtle inline annotations for section titles
 */

/* ========================================
   STYLE VARIANT 1: CLASSIC BORDERED
   ======================================== */
[data-lyrics-style="classic"] .section-header {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
}

[data-lyrics-style="classic"] .lyrics-section {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-lyrics-style="classic"] .section-chorus+.lyrics-section {
    border-color: rgba(245, 158, 11, 0.3);
}

[data-lyrics-style="classic"] .section-bridge+.lyrics-section {
    border-color: rgba(139, 92, 246, 0.3);
}

[data-lyrics-style="classic"] .section-pre-chorus+.lyrics-section {
    border-color: rgba(16, 185, 129, 0.3);
}

/* ========================================
   STYLE VARIANT 2: MINIMAL CLEAN
   ======================================== */
[data-lyrics-style="minimal"] .section-header {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.1rem 0.4rem;
    margin-bottom: 0.4rem;
    background: transparent;
}

[data-lyrics-style="minimal"] .lyrics-section {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    padding: 0.5rem 0 0.5rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: none;
}

/* ========================================
   STYLE VARIANT 3: CARD SUBTLE
   ======================================== */
[data-lyrics-style="cards"] .section-header {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
}

[data-lyrics-style="cards"] .lyrics-section {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 3px solid var(--color-primary);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-lyrics-style="cards"] .section-chorus+.lyrics-section {
    border-left-color: #f59e0b;
}

[data-lyrics-style="cards"] .section-bridge+.lyrics-section {
    border-left-color: #8b5cf6;
}

[data-lyrics-style="cards"] .section-pre-chorus+.lyrics-section {
    border-left-color: #10b981;
}

/* ========================================
   STYLE VARIANT 4: SIDE ACCENT
   ======================================== */
[data-lyrics-style="tabs"] .section-header {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
}

[data-lyrics-style="tabs"] .lyrics-section {
    background: transparent;
    border: none;
    border-left: 3px solid var(--color-primary);
    border-radius: 0;
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: none;
}

[data-lyrics-style="tabs"] .section-chorus+.lyrics-section {
    border-left-color: #f59e0b;
}

[data-lyrics-style="tabs"] .section-bridge+.lyrics-section {
    border-left-color: #8b5cf6;
}

[data-lyrics-style="tabs"] .section-pre-chorus+.lyrics-section {
    border-left-color: #10b981;
}

/* ========================================
   STYLE VARIANT 5: SUBTLE SHADOW
   ======================================== */
[data-lyrics-style="ribbon"] .section-header {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
}

[data-lyrics-style="ribbon"] .lyrics-section {
    background: white;
    border: none;
    border-left: 4px solid var(--color-primary);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-lyrics-style="ribbon"] .section-chorus+.lyrics-section {
    border-left-color: #f59e0b;
}

[data-lyrics-style="ribbon"] .section-bridge+.lyrics-section {
    border-left-color: #8b5cf6;
}

[data-lyrics-style="ribbon"] .section-pre-chorus+.lyrics-section {
    border-left-color: #10b981;
}

/* ========================================
   STYLE VARIANT 6: PAPER LINES
   ======================================== */
[data-lyrics-style="paper"] .section-header {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
}

[data-lyrics-style="paper"] .lyrics-section {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 0;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: none;
    position: relative;
}

/* ========================================
   MOBILE RESPONSIVE - ALL STYLES
   ======================================== */
@media (max-width: 768px) {
    [data-lyrics-style] .section-header {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
        margin-bottom: 0.4rem;
    }

    [data-lyrics-style] .lyrics-section {
        padding: 0.75rem 1rem;
    }
}

/* ========================================
   ENHANCED CHORD STYLING
   ======================================== */

/* Subtle chord background highlight on hover for all styles */
.lyrics-line-wrapper:hover {
    background: rgba(82, 56, 47, 0.02);
    border-radius: 4px;
    transition: background 0.2s ease;
}

[data-theme="dark"] .lyrics-line-wrapper:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Line number indicators (optional enhancement) */
.lyrics-line-wrapper[data-line-number]::before {
    content: attr(data-line-number);
    position: absolute;
    left: -2rem;
    color: rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========================================
   PRINT OPTIMIZATIONS
   ======================================== */
@media print {
    [data-lyrics-style] .section-header {
        background: white !important;
        color: black !important;
        border: 2px solid black !important;
        box-shadow: none !important;
        page-break-after: avoid;
    }

    [data-lyrics-style] .lyrics-section {
        background: white !important;
        border: 1px solid black !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    [data-lyrics-style] .section-header::before,
    [data-lyrics-style] .section-header::after,
    [data-lyrics-style] .lyrics-section::before {
        display: none !important;
    }
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    [data-lyrics-style] .section-header {
        font-size: 0.85rem;
        padding: 0.6rem 0.85rem;
    }

    [data-lyrics-style] .lyrics-section {
        padding: 1rem 0.85rem;
    }

    [data-lyrics-style="ribbon"] .section-header {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
}

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

/* High contrast mode */
[data-high-contrast="true"] .section-header {
    border: 3px solid currentColor !important;
    font-weight: 800 !important;
}

[data-high-contrast="true"] .lyrics-section {
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
}

/* Focus indicators for keyboard navigation */
.section-header:focus,
.lyrics-section:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}
/* ========================================
   TWO-COLUMN LAYOUT
   ======================================== */

/* Container wrapper for two-column layout */
.song-content.two-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Individual columns in two-column layout */
.song-content.two-column-layout .lyrics-column {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below content size */
}

/* Ensure sections within columns maintain their styling */
.song-content.two-column-layout .lyrics-column .section-header,
.song-content.two-column-layout .lyrics-column .lyrics-section {
    /* Inherit all existing styles from the variants */
}

/* Responsive: Single column on smaller screens */
@media (max-width: 768px) {
    .song-content.two-column-layout {
        flex-direction: column;
    }
    
    .song-content.two-column-layout .lyrics-column {
        width: 100%;
    }
}

/* ========================================
   PERFORMED AT LINK STYLES
   ======================================== */
.performed-at-link {
    font-size: 0.85rem;
    color: #adb5bd;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.performed-at-link:hover {
    color: #495057;
    text-decoration-style: dotted;
}
