/**
 * Public Styles for Lyrics Library Plugin
 *
 * @package LyricsLibrary
 */

/* ========================================
   YouTube Video Wrapper
   ======================================== */

.lyrics-library-youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lyrics-library-youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Lyrics Sections
   ======================================== */

.lyrics-library-section {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lyrics-library-section-title {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lyrics-library-section-title::before {
    content: "♪";
    font-size: 24px;
    color: #3b82f6;
}

/* Original Lyrics */
.lyrics-library-original {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.lyrics-library-original p {
    margin: 0 0 15px 0;
}

/* Translated Lyrics */
.lyrics-library-translated {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-style: italic;
}

.lyrics-library-translated p {
    margin: 0 0 15px 0;
}

/* ========================================
   Tabs for Lyrics (Optional)
   ======================================== */

.lyrics-library-tabs {
    margin: 30px 0;
}

.lyrics-library-tab-nav {
    display: flex;
    gap: 10px;
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
    border-bottom: 2px solid #e5e7eb;
}

.lyrics-library-tab-nav li {
    margin: 0;
    padding: 0;
}

.lyrics-library-tab-nav button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lyrics-library-tab-nav button:hover {
    color: #3b82f6;
    background: #f9fafb;
}

.lyrics-library-tab-nav button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.lyrics-library-tab-content {
    padding: 20px 0;
}

.lyrics-library-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.lyrics-library-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Song Meta Information
   ======================================== */

.lyrics-library-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 15px 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.lyrics-library-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}

.lyrics-library-meta-item strong {
    color: #1f2937;
    font-weight: 600;
}

.lyrics-library-meta-item a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lyrics-library-meta-item a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ========================================
   Artists & Genres Lists
   ======================================== */

.lyrics-library-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.lyrics-library-term {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lyrics-library-term:hover {
    background: #3b82f6;
    color: #ffffff;
}

.lyrics-library-term.artist {
    background: #dbeafe;
    color: #1e40af;
}

.lyrics-library-term.artist:hover {
    background: #3b82f6;
    color: #ffffff;
}

.lyrics-library-term.genre {
    background: #e0e7ff;
    color: #4338ca;
}

.lyrics-library-term.genre:hover {
    background: #6366f1;
    color: #ffffff;
}

/* ========================================
   Responsive Design
   ======================================== */

@media screen and (max-width: 768px) {
    .lyrics-library-section {
        padding: 20px 15px;
    }
    
    .lyrics-library-section-title {
        font-size: 18px;
    }
    
    .lyrics-library-original,
    .lyrics-library-translated {
        font-size: 14px;
    }
    
    .lyrics-library-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .lyrics-library-tab-nav button {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .lyrics-library-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .lyrics-library-youtube-wrapper,
    .lyrics-library-tab-nav {
        display: none;
    }
    
    .lyrics-library-tab-panel {
        display: block !important;
    }
    
    .lyrics-library-section {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* ========================================
   Dark Mode Support (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .lyrics-library-section {
        background: #1f2937;
        color: #e5e7eb;
    }
    
    .lyrics-library-section-title {
        color: #f9fafb;
        border-bottom-color: #374151;
    }
    
    .lyrics-library-original {
        color: #d1d5db;
    }
    
    .lyrics-library-translated {
        color: #9ca3af;
    }
    
    .lyrics-library-meta {
        background: #111827;
        border-left-color: #60a5fa;
    }
    
    .lyrics-library-meta-item {
        color: #9ca3af;
    }
    
    .lyrics-library-meta-item strong {
        color: #f9fafb;
    }
    
    .lyrics-library-meta-item a {
        color: #60a5fa;
    }
    
    .lyrics-library-meta-item a:hover {
        color: #93c5fd;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.lyrics-library-hide {
    display: none !important;
}

.lyrics-library-show {
    display: block !important;
}

.lyrics-library-text-center {
    text-align: center;
}

.lyrics-library-mb-0 {
    margin-bottom: 0 !important;
}

.lyrics-library-mt-0 {
    margin-top: 0 !important;
}
