/* Arapça Kelime Ezberleme Uygulaması - Custom CSS */

/* Arapça metin için özel stiller */
.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    line-height: 1.8;
    direction: rtl;
    text-align: center;
}

.arabic-text-lg {
    font-size: 3rem;
}

.arabic-text-xl {
    font-size: 4rem;
}

/* Kart stilleri */
.flashcard {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Buton animasyonları */
.btn-action {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-action:active {
    transform: scale(0.97);
}

/* Görsel placeholder */
.word-image {
    max-width: 320px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Ses butonu */
.audio-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn:hover {
    transform: scale(1.1);
}

/* Progress bar */
.progress-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

/* Tema geçişleri */
body {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .arabic-text {
        font-size: 2rem;
    }

    .arabic-text-lg {
        font-size: 2.5rem;
    }

    .flashcard {
        min-height: 300px;
    }

    .word-image {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Dark tema için skeleton */
.dark .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

/* Göster butonu için türkçe anlam alanı */
.meaning-reveal {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.meaning-reveal.show {
    opacity: 1;
    max-height: 200px;
}

/* Ünite kartları */
.unit-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.unit-card:hover {
    transform: translateY(-2px);
}

/* Stats kartları */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.new::before {
    background: #60a5fa;
}

.stat-card.learning::before {
    background: #fbbf24;
}

.stat-card.reviewing::before {
    background: #a78bfa;
}

.stat-card.mastered::before {
    background: #34d399;
}