/* /remen/style.css */
:root {
    --primary-color: #2c3e50;
    --accent-color: #ffeb3b;
    --bg-color: #f0f2f5;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* 💻 ΟΛΟKΛΗΡΗ Η ΕΦΑΡΜΟΓΗ: Μεγαλώνει στα 1100px για να χωρέσει 2 στήλες στον υπολογιστή */
.app-wrapper {
    width: 100%;
    max-width: 1100px; 
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

.header-controls {
    background: #ffffff;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.song-selector {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: var(--primary-color);
    outline: none;
    cursor: pointer;
}

audio { width: 100%; }

/* 🔄 ΤΟ ΔΙΣΤΗΛΟ ΣΥΣΤΗΜΑ ΠΛΟΗΓΗΣΗΣ */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden; /* Κλειδώνει το γενικό scroll */
}

/* 🔤 Αριστερή Στήλη: Σύμβολα (Έχει αυτόνομο scroll) */
.symbols-sidebar {
    width: 40%;
    border-right: 1px solid #e0e0e0;
    background: #fbfbfb;
    overflow-y: auto;
    padding: 20px;
}

/* 🎵 Δεξιά Στήλη: Καραόκε (Έχει αυτόνομο scroll) */
.lyrics-viewport {
    width: 60%;
    overflow-y: auto;
    padding: 30px 20px 250px 20px;
    scroll-behavior: smooth;
    position: relative;
}

/* 📖 Κουμπί για το κινητό (Κρυφό στον υπολογιστή) */
.toggle-symbols-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.toggle-symbols-btn:hover { background-color: #2980b9; }

.verse-block {
    margin-bottom: 35px;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #eaeaea;
}

.word {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 6px 5px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.1s ease;
}

.word.has-link {
    border-bottom: 2px dashed #3498db;
    cursor: pointer;
}

.word.highlight {
    background-color: var(--accent-color);
    color: #000;
    transform: scale(1.08);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.translation {
    font-size: 1.05rem;
    color: #666;
    font-style: italic;
    margin-top: 12px;
    padding-left: 8px;
    border-left: 3px solid #cbd5e1;
}

/* 📱 ΡΥΘΜΙΣΕΙΣ ΓΙΑ ΚΙΝΗΤΑ (Responsive) */
@media (max-width: 768px) {
    .main-content { 
        flex-direction: column; 
    }
    
    .app-wrapper { 
        height: 100vh; 
        box-shadow: none; 
    }
    
    .toggle-symbols-btn { 
        display: block; /* Εμφανίζεται μόνο σε ταμπλέτες και κινητά */
    }
    
    .symbols-sidebar {
        width: 100%;
        max-height: 0; /* Κρυφό αρχικά στο κινητό */
        padding: 0 20px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    /* Όταν ο χρήστης πατάει το κουμπί στο κινητό */
    .symbols-sidebar.open {
        max-height: 280px; 
        padding: 20px;
    }
    
    .lyrics-viewport { 
        width: 100%; 
    }
    
    .word { 
        font-size: 1.25rem; 
        margin: 5px 4px; 
    }
}

/* Στυλ για το Custom Κουμπί Play/Pause */
.play-btn {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #2ecc71; /* Πράσινο για το Play */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    min-width: 100px;
    transition: background-color 0.2s ease;
}

.play-btn.paused {
    background-color: #e74c3c; /* Κόκκινο όταν είναι σε Pause */
}

/* 📱 BOTTOM SHEET & OVERLAY (Διατηρούνται για συμβατότητα) */
.bottom-sheet {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    max-height: 35%; 
    background: #ffffff;
    border-top-left-radius: 24px; border-top-right-radius: 24px;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
    z-index: 20;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.bottom-sheet.open { transform: translateY(0); }
.bottom-sheet .close-btn {
    position: absolute; top: 15px; right: 20px;
    font-size: 1.8rem; font-weight: 300;
    color: #888; cursor: pointer; border: none; background: none;
    padding: 5px;
}
.bottom-sheet h3 { font-size: 1.4rem; color: var(--primary-color); margin-bottom: 8px; padding-right: 30px; }
.bottom-sheet .content { font-size: 1.05rem; color: #444; line-height: 1.5; overflow-y: auto; flex: 1; }
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: transparent; display: none; z-index: 15;
}
.overlay.active { display: block; }
