/*
Theme Name: Starter
Theme URI: http://songs_and_lyrics.com
Description: A clean, fast lyrics website theme optimized for ads and SEO
Version: 1.0.0
Author: LyricsDB
Text Domain: starter
*/

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #fff;
    --border-color: #e0e0e0;
    --sidebar-width: 300px;
    --content-max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.site-logo span {
    color: var(--accent-color);
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 14px;
    outline: none;
}

.search-form button {
    padding: 12px 20px;
    background: var(--accent-color);
    border: none;
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
}

.ad-banner {
    background: var(--white);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.ad-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 20px;
    color: #999;
    font-size: 14px;
    display: inline-block;
}

.site-main {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 25px;
}

.card-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.song-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.song-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.song-artist {
    font-size: 18px;
    color: var(--text-light);
}

.song-artist a {
    color: var(--accent-color);
    font-weight: 600;
}

.lyrics-content {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lyrics-wrapper {
    font-size: 18px;
    line-height: 1.9;
    font-family: Georgia, 'Times New Roman', serif;
}

.lyrics-wrapper.rtl-lyrics {
    direction: rtl;
    text-align: right;
    font-family: 'David', 'Noto Sans Hebrew', 'Noto Sans Arabic', Georgia, serif;
}

.lyrics-wrapper.ltr-lyrics {
    direction: ltr;
    text-align: left;
}

.lyrics-wrapper .verse {
    margin-bottom: 25px;
}

.ad-in-content {
    margin: 30px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    text-align: center;
}

.songs-list {
    list-style: none;
}

.songs-list li {
    border-bottom: 1px solid var(--border-color);
}

.songs-list li:last-child {
    border-bottom: none;
}

.songs-list a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    transition: background 0.2s;
}

.songs-list a:hover {
    background: var(--bg-color);
}

.songs-list .song-number {
    width: 40px;
    color: var(--text-light);
    font-size: 14px;
}

.songs-list .song-name {
    flex: 1;
    font-weight: 500;
}

.songs-list .song-artist-name {
    color: var(--text-light);
    font-size: 14px;
}

.widget {
    margin-bottom: 25px;
}

.widget-title {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px 8px 0 0;
}

.widget-content {
    background: var(--white);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget-content ul {
    list-style: none;
}

.widget-content li {
    border-bottom: 1px solid var(--border-color);
}

.widget-content a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 14px;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 25px;
}

.alphabet-nav a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-color);
}

.alphabet-nav a:hover,
.alphabet-nav a.active {
    background: var(--accent-color);
    color: var(--white);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--white);
    border-radius: 4px;
}

.pagination .current {
    background: var(--accent-color);
    color: var(--white);
}

.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #999;
}

.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-light);
}

@media (max-width: 968px) {
    .site-main {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .header-inner {
        flex-wrap: wrap;
    }
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 600px) {
    .song-title {
        font-size: 24px;
    }
    .lyrics-content {
        padding: 20px 15px;
    }
}

/* ============================================
   RTL/LTR Force Classes (for language mismatch)
   ============================================ */
.lyrics-wrapper.force-ltr {
    direction: ltr !important;
    text-align: left !important;
}

.lyrics-wrapper.force-rtl {
    direction: rtl !important;
    text-align: right !important;
}

/* ============================================
   Ad Widget Styles
   ============================================ */
.ad-widget {
    text-align: center;
    margin: 15px 0;
}

.ad-atf-container {
    margin: 20px 0;
    text-align: center;
}

.ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   Track Links in Discography
   ============================================ */
.track-link {
    color: #1a73e8;
    transition: color 0.2s;
}

.track-link:hover {
    color: var(--accent-color);
}

.track-unavailable {
    color: #999;
}

.album-type {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ============================================
   Song Album Info
   ============================================ */
.song-album {
    color: var(--text-light);
}

.song-album a {
    color: var(--text-light);
}

.song-album a:hover {
    color: var(--accent-color);
}

.track-number {
    font-size: 14px;
    color: #999;
}

/* ============================================
   Utility Footer (Teleprompter, Focus Mode)
   ============================================ */
.utility-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.utility-footer-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.utility-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.utility-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.utility-btn:hover {
    background: rgba(255,255,255,0.2);
}

.utility-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.utility-btn svg {
    opacity: 0.8;
}

.speed-controls {
    display: flex;
    gap: 5px;
}

.speed-btn {
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.speed-btn:hover {
    background: rgba(255,255,255,0.2);
}

.speed-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Add padding to body when utility footer is present */
body:has(.utility-footer) {
    padding-bottom: 70px;
}

/* ============================================
   Focus Mode
   ============================================ */
body.focus-mode {
    background: rgba(0, 0, 0, 0.85);
}

body.focus-mode .site-header,
body.focus-mode .ad-banner,
body.focus-mode .breadcrumbs,
body.focus-mode .sidebar,
body.focus-mode .ad-in-content,
body.focus-mode .ad-atf-container,
body.focus-mode .card,
body.focus-mode .site-footer {
    opacity: 0.1;
    transition: opacity 0.3s;
}

body.focus-mode .lyrics-content {
    opacity: 1;
    background: #fff;
    box-shadow: 0 0 50px rgba(255,255,255,0.3);
    position: relative;
    z-index: 10;
}

body.focus-mode .utility-footer {
    opacity: 1;
}

/* Hover to reveal dimmed elements */
body.focus-mode .site-header:hover,
body.focus-mode .sidebar:hover {
    opacity: 1;
}

/* ============================================
   Mobile Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .utility-footer-inner {
        gap: 15px;
    }

    .utility-btn span {
        display: none;
    }

    .utility-btn {
        padding: 10px;
        border-radius: 50%;
    }

    .speed-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .teleprompter-controls {
        flex-direction: column;
        gap: 5px;
    }
}
