/* Osmanlıca Alfabe Sayfası Stilleri */

/* İlerleme Bölümü */
.progress-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
}

.progress-container h2 {
    margin-bottom: 1rem;
    color: white;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    border-radius: 15px;
}

.progress-text {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.level-info {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

/* Kategori Tabları */
.categories-section {
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Alfabe Izgara */
.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.letter-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.letter-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.letter-card.learned {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid #4CAF50;
}

.letter-card .arabic-letter {
    font-size: 3rem;
    font-family: 'Amiri', serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.letter-card .letter-info-mini {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.letter-card .letter-name-mini {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

/* Başarı Rozeti */
.letter-card .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: gold;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Modal Stilleri */
.letter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
}

.letter-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Harf Formları */
.letter-display {
    margin-bottom: 2rem;
}

.letter-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.form-item {
    text-align: center;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.letter-box {
    font-size: 4rem;
    font-family: 'Amiri', serif;
    color: var(--primary-color);
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

/* Harf Bilgileri */
.letter-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
}

.info-item i {
    color: var(--primary-color);
}

/* Örnekler */
.examples-section {
    margin-bottom: 2rem;
}

.examples-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.examples-list {
    display: grid;
    gap: 0.5rem;
}

.example-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    align-items: center;
}

.example-ottoman {
    font-size: 1.8rem;
    font-family: 'Amiri', serif;
    color: var(--primary-color);
    text-align: right;
}

.example-transliteration {
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
}

.example-turkish {
    color: var(--text-primary);
}

/* Yazma Alıştırması */
.practice-section {
    margin-top: 2rem;
}

.practice-section h4 {
    margin-bottom: 1rem;
}

#practiceCanvas {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    display: block;
    margin: 0 auto 1rem;
    cursor: crosshair;
}

.canvas-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Ana Alıştırma Bölümü */
.practice-section-main {
    margin: 3rem 0;
}

.practice-section-main h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.practice-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.practice-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s;
    cursor: pointer;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.practice-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.practice-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.practice-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn-start {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-start:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* İstatistikler */
.stats-section {
    margin: 3rem 0;
}

.stats-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Geri Dön Butonu */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--secondary-color);
    transform: translateX(-3px);
}

/* Ses butonları stili */
.btn-sound-mini {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(26, 35, 126, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    z-index: 10;
}

.btn-sound-mini:hover {
    background: #1a237e;
    transform: scale(1.1);
}

.btn-sound-mini:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-audio {
    transition: all 0.3s ease;
}

.btn-audio:hover {
    background: #283593 !important;
    transform: translateY(-2px);
}

.btn-audio:active {
    transform: translateY(0);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .alphabet-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .letter-card {
        padding: 1rem;
    }

    .letter-card .arabic-letter {
        font-size: 2rem;
    }

    .modal-content {
        padding: 1rem;
    }

    .letter-box {
        font-size: 3rem;
        padding: 1rem;
        min-height: 80px;
    }

    .practice-modes {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}