/* 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;
}
/* Hukuki metinler (gizlilik, güvenlik, kullanım şartları) — açık/koyu temada
   renk yerine saydamlık kullanır, böylece iki temada da okunur. */
.hukuk section + section {
    border-top: 1px solid rgba(127, 127, 127, 0.2);
    padding-top: 1.5rem;
}

.hukuk h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hukuk h3 {
    font-weight: 600;
    margin: 1rem 0 0.4rem;
}

.hukuk p,
.hukuk li,
.hukuk td {
    line-height: 1.7;
    opacity: 0.88;
}

.hukuk p + p {
    margin-top: 0.6rem;
}

.hukuk ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.hukuk li + li {
    margin-top: 0.3rem;
}

.hukuk a {
    color: #10b981;
    text-decoration: underline;
}

.hukuk table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.hukuk th,
.hukuk td {
    border: 1px solid rgba(127, 127, 127, 0.25);
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.hukuk th {
    background: rgba(127, 127, 127, 0.08);
}

.hukuk .tablo-kap {
    overflow-x: auto;
}
