/**
 * Lyrics Manager - Public Styles
 *
 * Frontend styles for lyrics display.
 *
 * @package Lyrics_Manager
 */

/* Language Tabs */
.lyrics-language-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.lyrics-tab-button {
    background: transparent;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    position: relative;
    transition: color 0.2s ease;
}

.lyrics-tab-button:hover {
    color: #1f2937;
}

.lyrics-tab-button.active {
    color: #2563eb;
}

.lyrics-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
}

.lyrics-tab-button .native-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin-top: 2px;
}

.lyrics-tab-button.active .native-label {
    color: #93c5fd;
}

/* Lyrics Content Area */
.lyrics-content-wrapper {
    position: relative;
}

.lyrics-panel {
    display: none;
}

.lyrics-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lyrics Text */
.lyrics-text {
    font-size: 1.125rem;
    line-height: 2;
    color: #1f2937;
    padding: 20px 0;
}

.lyrics-text p {
    margin-bottom: 1.5em;
}

/* .lyrics-text br + br {
    display: block;
    content: '';
    margin-top: 1em;
} */

/* Telugu Typography */
.lyrics-telugu,
[lang="te"] .lyrics-text {
    font-family: 'Hind Guntur', 'Noto Sans Telugu', 'Gautami', sans-serif;
    font-size: 1.25rem;
    line-height: 2.2;
}

/* Tamil Typography */
.lyrics-tamil,
[lang="ta"] .lyrics-text {
    font-family: 'Hind Madurai', 'Noto Sans Tamil', 'Latha', sans-serif;
    font-size: 1.25rem;
    line-height: 2.2;
}

/* Kannada Typography */
.lyrics-kannada,
[lang="kn"] .lyrics-text {
    font-family: 'Hind Siliguri', 'Noto Sans Kannada', sans-serif;
    font-size: 1.25rem;
    line-height: 2.2;
}

/* Malayalam Typography */
.lyrics-malayalam,
[lang="ml"] .lyrics-text {
    font-family: 'Hind Siliguri', 'Noto Sans Malayalam', sans-serif;
    font-size: 1.25rem;
    line-height: 2.2;
}

/* Hindi Typography */
.lyrics-hindi,
[lang="hi"] .lyrics-text {
    font-family: 'Hind', 'Noto Sans Devanagari', sans-serif;
    font-size: 1.25rem;
    line-height: 2.2;
}

/* Download Section */
/* .lyrics-download-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
} */

.download-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.download-pdf-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.download-pdf-btn:active {
    transform: translateY(0);
}

.download-pdf-btn svg {
    width: 20px;
    height: 20px;
}

/* Song Meta Display */
.song-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.song-meta-item {
    display: flex;
    flex-direction: column;
}

.song-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 2px;
}

.song-meta-value {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
}

/* Language Selection (Archive/Home) */
.language-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.language-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.language-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.language-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.language-card-native {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 10px;
}

.language-card-count {
    font-size: 14px;
    color: #6b7280;
}

/* Song Card (Grid/List) */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.song-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.song-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.song-card-image {
    aspect-ratio: 1;
    background: #f3f4f6;
    overflow: hidden;
}

.song-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.song-card-placeholder svg {
    width: 48px;
    height: 48px;
    color: #6366f1;
}

.song-card-content {
    padding: 15px;
}

.song-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 5px 0;
}

.song-card-title a {
    color: inherit;
    text-decoration: none;
}

.song-card-title a:hover {
    color: #2563eb;
}

.song-card-artist {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 10px 0;
}

.song-card-languages {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.language-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .lyrics-text {
        font-size: 1rem;
        line-height: 1.9;
    }

    .lyrics-telugu,
    .lyrics-tamil,
    .lyrics-kannada,
    .lyrics-malayalam,
    .lyrics-hindi,
    [lang="te"] .lyrics-text,
    [lang="ta"] .lyrics-text,
    [lang="kn"] .lyrics-text,
    [lang="ml"] .lyrics-text,
    [lang="hi"] .lyrics-text {
        font-size: 1.125rem;
        line-height: 2;
    }

    .lyrics-tab-button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .language-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
}

/* Print Styles */
@media print {
    .lyrics-language-tabs,
    .lyrics-download-section {
        display: none;
    }

    .lyrics-text {
        font-size: 14pt;
        line-height: 1.8;
    }
}
