@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

:root {
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.08);
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-main: #f1f5f9;
    --card-bg: #1e293b;
    --border: #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container { max-width: 800px; width: 100%; }

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.daily-article {
    border-left: 5px solid var(--accent); /* Sol tarafa vurgu çizgisi */
    background: linear-gradient(to right, var(--accent-soft), transparent);
    padding: 20px;
}

#dailyArticleText {
    transition: opacity 0.4s ease;
    font-style: italic;
    color: var(--text-main);
}
/* Akademik Bar */
.academic-bar-container {
    width: 100%; height: 6px; background: var(--border);
    border-radius: 10px; margin-bottom: 20px; overflow: hidden;
}
.academic-progress {
    height: 100%; background: linear-gradient(90deg, var(--accent), #a855f7);
    width: 0%; transition: width 1s ease-in-out;
}

.stats-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--accent-soft); border-radius: 12px;
    padding: 15px; margin-bottom: 10px; text-align: center;
}

.main-controls { display: flex; gap: 10px; }
#analyzeBtn { background: var(--accent); color: white; flex: 2; padding: 15px; border-radius: 12px; border: none; font-weight: 800; cursor: pointer; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-main); flex: 1; border-radius: 12px; cursor: pointer; }

.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.action-btn { background: var(--card-bg); border: 1px solid var(--border); padding: 12px; border-radius: 12px; color: var(--text-main); font-weight: 600; cursor: pointer; }

.grammar-card ul { list-style: none; margin-top: 10px; }
.grammar-card li { padding: 8px; border-left: 3px solid var(--accent); background: var(--accent-soft); margin-bottom: 5px; font-size: 0.9rem; }

.hidden { display: none; }
textarea { width: 100%; min-height: 150px; border: none; background: transparent; color: var(--text-main); font-size: 1.1rem; resize: none; outline: none; }

@media (max-width: 600px) {
    .action-grid, .stats-bar { grid-template-columns: 1fr; }
}

/* Tema Değiştirici Yeni Stil */
.theme-switch {
    background: transparent;
    border: none;
    padding: 0;
    width: 60px;
    height: 32px;
    cursor: pointer;
    position: relative;
}

.switch-track {
    background: #e2e8f0; /* Aydınlık mod rengi */
    width: 100%;
    height: 100%;
    border-radius: 20px;
    position: relative;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-handle {
    background: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-icon {
    font-size: 14px;
    user-select: none;
}

/* Karanlık Mod Aktifken */
[data-theme="dark"] .switch-track {
    background: var(--accent); /* Karanlık modda indigo/mor olur */
}

[data-theme="dark"] .switch-handle {
    transform: translateX(28px);
}

/* Sayfa geçişini yumuşatma (Body'e ekle) */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Geri Bildirim Formu ve Buton Düzenlemesi */
.feedback-section {
    margin-top: 40px;
    padding: 30px;
    text-align: center;
}

.feedback-section h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.input-field {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-color);
    color: var(--text-main);
    font-family: inherit;
    resize: none;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-color: var(--accent);
    outline: none;
}

/* İşte "İlkel" Görünümü Yok Eden Buton Stili */
.btn-primary {
    background: var(--accent);
    color: white;
    width: 100%; /* Formu kaplasın */
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: #4f46e5; /* Biraz daha koyu indigo */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

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

.translation-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.translation-section h4 {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.translation-display {
    font-style: italic;
    color: var(--text-main);
    line-height: 1.5;
    background: var(--accent-soft);
    padding: 15px;
    border-radius: 10px;
}