/* ogrenme.css */

:root {
    --bg-color: #2c3e50; /* Dark Blue/Gray */
    --container-bg: #34495e; /* Slightly lighter container color */
    --text-color: #ecf0f1; /* Light text */
    --primary-color: #3498db; /* Blue (links, accents) */
    --secondary-color: #95a5a6; /* Grayish (index, secondary text) */
    --border-color: #4a627a; /* Darker border */
    --success-color: #2ecc71; /* Green */
    --dark-success-color: #1e8449; /* Darker green for button shadow */
    --warning-color: #f39c12; /* Orange */
    --dark-warning-color: #d35400; /* Darker orange for button shadow */
    --link-bg: #4a627a; 
    --link-bg-hover: #3498db; 
    --input-bg: #2c3e50;
    --input-border: #55708a;
    --button-text-light: #ecf0f1;
}

/* BASE STRUCTURAL ADJUSTMENTS */
html, body {
    margin: 0; 
    padding: 0;
    overflow-x: hidden; 
}

body { 
    font-family: 'Inter', sans-serif; 
    padding-top: 55px; /* Header yüksekliği kadar boşluk */
    background-color: var(--bg-color); 
    color: var(--text-color); 
    box-sizing: border-box; 
    width: 100%;
    margin: 0; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
}

/* --- HEADER (yaz.css ile uyumlu) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background-color: var(--container-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    height: 100%;
    width: 100%; 
    max-width: 800px; 
    padding: 0 10px; 
    box-sizing: border-box;
    position: relative; 
}
.page-title-group {
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex;
    align-items: center;
    font-size: 1.3em; 
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.page-icon { margin-right: 10px; font-size: 1.2em; }

.hamburger-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.0rem; 
    cursor: pointer;
    padding: 0px 10px;
    line-height: 1;
    z-index: 1001; 
}

.header-filler { width: 40px; }

/* --- MENU --- */
.nav-wrapper {
    position: fixed; 
    top: 50px; 
    right: 10px; 
    width: 200px; 
    z-index: 999;
}
@media screen and (min-width: 820px) {
    .nav-wrapper {
        right: calc(50% - 400px + 10px);
    }
}

.nav-dropdown {
    background-color: var(--container-bg); 
    width: 200px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    max-height: 0;
    overflow: hidden; 
    transition: max-height 0.3s ease-out;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex; 
    flex-direction: column; 
    position: absolute;
    right: 0;
}

.nav-dropdown.active { max-height: 80vh; padding: 10px; }

.nav-dropdown a {
    display: flex;
    align-items: center;
    padding: 12px; 
    font-size: 1.1em; 
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background-color: var(--link-bg-hover); }


/* --- ANA KAPSAYICI --- */
.container {
    width: 100%;
    max-width: 800px;
    padding: 15px;
    margin-top: 5px; 
    box-sizing: border-box;
}

/* --- WORD CARD --- */
.word-card {
    background-color: var(--container-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.word-display {
    margin: 10px 0;
    padding: 5px 0;
    min-height: 1.2em;
    width: 100%;
    overflow-wrap: break-word;
}

.english-word {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-color);
}

.turkish-word {
    font-size: 1.5em;
    color: var(--secondary-color);
    transition: filter 0.3s;
}

.blurred-text {
    filter: blur(4px);
    cursor: pointer;
    user-select: none;
}
.blurred-text:hover {
    filter: blur(2px);
}

/* --- PRIMARY ACTION BUTTON (START AUTO) --- */
.primary-action-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 15px; /* Navigasyon butonlarından önce boşluk */
    box-shadow: 0 4px 0 var(--dark-success-color);
    transition: transform 0.1s;
}

.primary-action-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--dark-success-color);
}

.primary-action-button.playing {
    background-color: var(--warning-color); 
    box-shadow: 0 4px 0 var(--dark-warning-color);
}


/* --- CONTROL CONTAINER --- */
.controls-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px; /* START/PAUSE butonundan sonra boşluk */
    gap: 10px;
}

.nav-button {
    flex: 1;
    padding: 12px;
    background-color: var(--link-bg);
    color: var(--button-text-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background-color: var(--primary-color);
}


/* --- SETTINGS CARD (yaz.css ile uyumlu) --- */
.settings-card {
    background-color: var(--container-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.settings-card h3 {
    text-align: center;
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.slider-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.slider-value {
    font-weight: bold;
    color: var(--text-color);
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    background: var(--input-border);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

/* --- LIST SELECT & INDEX INFO (yaz.css ile uyumlu) --- */
.list-select-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.settings-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.settings-option span {
    font-size: 0.9em;
    color: var(--secondary-color);
    text-align: left; /* Slider başlıkları için left, toggle için center yapılacak */
}

.settings-option select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1em;
    cursor: pointer;
}

.index-info {
    justify-content: center;
    align-items: center;
}

.index-info span {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- TOGGLE OPTION (Ayarlar içindeki düğmeler) --- */
.toggle-option {
    flex: 1; 
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.toggle-option span {
    text-align: center; 
    margin-bottom: 5px;
}

.setting-button {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--link-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
    width: 100%;
}

.setting-button.active {
    background-color: var(--primary-color) !important;
    color: white !important;
}


/* --- FEEDBACK MESSAGE --- */
.feedback-message {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1em;
    font-weight: bold;
    min-height: 1.2em; 
    color: var(--primary-color);
}

/* --- SEO İÇİN RESİM ALANI (yaz.css'den) --- */
.image-container {
    text-align: center;
    margin-top: 20px;
}

.seo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    opacity: 0.1; 
    display: block;
    margin: 0 auto;
}

/* --- MOBİL UYUM --- */
@media screen and (max-width: 600px) {
    .main-header { height: 50px; }
    body { padding-top: 50px; }
    .nav-wrapper { top: 50px; right: 10px; }
    .nav-dropdown { right: 0; }
    
    .setting-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .list-select-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .index-info {
        display: none; 
    }
    
    .english-word {
        font-size: 2em;
    }
    .turkish-word {
        font-size: 1.2em;
    }
    
    .toggle-option .setting-button {
        width: auto; /* Düğmelerin mobilde daha iyi görünmesi için */
    }
}