/* ==========================================================================
   Modern Tasarım - Kök Değişkenler ve Temel Stiller
   ========================================================================== */
:root {
    --background-color: #f8fafc; /* Ferah ve açık bir arkaplan */
    --card-background: #ffffff;    /* Kartlar için temiz beyaz */
    --primary-green: #10b981;      /* Ana Yeşil Renk (Emerald 500) */
    --primary-green-dark: #059669; /* Hover için daha koyu yeşil */
    --text-primary: #1f2937;       /* Ana metin rengi (Koyu Gri) */
    --text-secondary: #6b7280;    /* İkincil metin rengi (Gri) */
    --border-color: #e5e7eb;       /* İnce ve yumuşak sınırlar */
    --shadow-color: rgba(0, 0, 0, 0.05); /* Yumuşak gölgeler */
    --success-bg: #ecfdf5;         /* Başarı durumları için arkaplan */
    --success-text: #065f46;       /* Başarı durumları için metin */
    --success-border: #a7f3d0;     /* Başarı durumları için sınır */
    --error-bg: #fff1f2;           /* Hata durumları için arkaplan */
    --error-text: #be123c;         /* Hata durumları için metin */
    --error-border: #fecdd3;       /* Hata durumları için sınır */
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Giriş Ekranı - Modern Arkaplan Animasyonu
   ========================================================================== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background-color: var(--background-color);
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-green);
    opacity: 0.1;
    animation: move 25s infinite alternate ease-in-out;
}

.shape1 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -150px;
    animation-duration: 30s;
}

.shape2 {
    width: 250px;
    height: 250px;
    top: -100px;
    right: -100px;
    animation-duration: 35s;
    animation-delay: 2s;
}

.shape3 {
    width: 150px;
    height: 150px;
    bottom: 50px;
    right: 100px;
    animation-duration: 20s;
    animation-delay: 5s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(50px, -100px) scale(1.2);
    }
}

/* ==========================================================================
   Genel Component Stilleri
   ========================================================================== */

/* Seçili ders butonu için modern çerçeve efekti */
.active-subject-button {
    background-color: var(--primary-green) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Yükleme göstergesi animasyonu */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #FFF;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation:-rotation 1s linear infinite;
}
.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid;
    border-color: var(--primary-green) transparent;
}
@keyframes -rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cevap şıkkı butonları için hover efekti */
.answer-button {
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.answer-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Matematiksel Gösterim (KaTeX) ve Çözüm Stilleri
   ========================================================================== */

/* KaTeX temel rengini koyu yap (açık arkaplan için) */
.katex {
    color: var(--text-primary);
    font-size: 1.05em; /* Biraz daha okunaklı */
}

/* Satır içi matematiksel ifadeler için arka plan */
.inline-math {
    display: inline-block;
    background-color: #e6f7f1; /* Çok açık yeşil */
    padding: 2px 8px;
    border-radius: 6px;
    margin: 0 2px;
    vertical-align: baseline;
    font-weight: normal !important;
    border: 1px solid #c3e9dc;
}

/* Uzun metinlerin ve formüllerin taşmasını engelleme */
.solution-container p, .solution-container div, .chat-bubble {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Blok halindeki formüller için scrollbar gizleme */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.katex-display::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}


/* ==========================================================================
   Sesli Anlatım ve Diğer Component'ler
   ========================================================================== */
/* Eski kara tahta stilinin yerine modern ve temiz bir kart */
.voice-solution-card {
    background: linear-gradient(135deg, #f9fff8, #e6f7f1);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px var(--shadow-color);
    color: var(--text-primary);
    min-height: 250px;
}

.voice-solution-card .katex, .voice-solution-card .katex-display {
    color: var(--text-primary) !important;
}
.voice-solution-card .inline-math {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: #d1fae5;
}

/* Adımların ekranda belirmesi için animasyon */
.fade-in {
    animation: fadeIn 0.7s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Kilit ekranı için temiz stiller */
.premium-lock-overlay {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

/* Akordeon için daha modern görünüm */
.accordion-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}
.accordion-item:hover {
    border-color: #a7f3d0;
    box-shadow: 0 10px 15px -3px var(--shadow-color);
}
.accordion-header {
    background-color: transparent;
    transition: background-color 0.2s ease;
}
.accordion-header:hover {
    background-color: #f9fafb;
}
.accordion-content {
    background-color: #f9fafb;
}

/* ESKİ, KULLANILMAYAN VEYA GEREKSİZ STİLLERİ TEMİZLE */
/* .halkali-title, .chalkboard, .bubbles, .bubble, .animated-gradient, .star-field, .bg-slate-900-body, .bg-red-950-body, .rainbow-active, .chat-background-whatsapp gibi eski sınıflar artık kullanılmıyor. */
