:root {
    --primary: #7c9cbf;
    --primary-dark: #5a7fa3;
    --primary-light: #e8f0f8;
    --success: #7bb89a;
    --success-light: #e5f5ed;
    --warning: #d4a96a;
    --warning-light: #faf0e2;
    --danger: #c97878;
    --danger-light: #fae8e8;
    --bg: #f5f0eb;
    --card-bg: #ffffff;
    --text: #3d3d3d;
    --text-light: #8a8a8a;
    --border: #e6dfd8;
    --accent: #b8a9d4;
    --accent-light: #efe8f8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.hidden { display: none !important; }

/* ============================
   LANDING PAGE
   ============================ */
.landing-screen {
    min-height: 100vh;
    background: var(--bg);
}

.landing-hero {
    background: linear-gradient(135deg, #e8dff0 0%, #d4e4f1 40%, #e5f0e8 100%);
    padding: 80px 20px 60px;
    text-align: center;
}

.landing-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 16px;
    animation: landingFloat 3s ease-in-out infinite;
}

@keyframes landingFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.landing-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.landing-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.landing-hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.landing-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 20px;
}

.landing-section-alt {
    background: var(--card-bg);
    max-width: 100%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.landing-section-alt .landing-sinavlar {
    max-width: 960px;
    margin: 0 auto;
}

.landing-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 32px;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.landing-feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.landing-feature-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.landing-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.landing-feature-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Sinavlar */
.landing-sinavlar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.landing-sinav-grup {
    text-align: center;
}

.landing-sinav-grup h4 {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.landing-sinav-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.landing-sinav-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
}

.landing-sinav-badge:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

/* CTA */
.landing-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    max-width: 100%;
    padding: 48px 20px;
}

.landing-cta h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text);
}

.landing-cta p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.landing-footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

/* Dark mode landing */
body.dark-mode .landing-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

body.dark-mode .landing-cta {
    background: linear-gradient(135deg, #1e2d4a, #2a2440);
}

body.dark-mode .landing-sinav-badge {
    background: var(--card-bg);
}

/* AUTH SCREEN */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8dff0 0%, #d4e4f1 50%, #e5f0e8 100%);
}

.auth-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 16px;
}

.auth-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-container h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 24px;
}

#auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-error {
    color: var(--danger);
    font-size: 14px;
    min-height: 20px;
}

.auth-toggle-text {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.auth-toggle-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-toggle-text a:hover {
    text-decoration: underline;
}

/* ŞİFRE GÖZ İKONU */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .input {
    width: 100%;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 1;
}

/* AUTH AYIRICI */
.auth-ayirici {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

.auth-ayirici::before,
.auth-ayirici::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-ayirici span {
    font-size: 12px;
    color: var(--text-light);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
}

.btn-accent:hover {
    background: #a08bc4;
}

/* SINAV SEÇİM */
.sinav-secim-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    margin-top: 16px;
}

.sinav-grup h4 {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sinav-sec-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 6px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    font-size: 15px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-family: var(--font);
}

.sinav-sec-btn:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.sinav-badge-btn, .sinav-badge-label {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    border: none;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font);
    font-size: 13px;
    transition: all 0.2s;
}

.sinav-badge-btn {
    cursor: pointer;
}

.sinav-badge-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* APP LAYOUT */
.app {
    min-height: 100vh;
}

/* HEADER */
.header {
    background: var(--card-bg);
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 54px;
    color: var(--text);
    font-weight: 700;
}

.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-email {
    font-size: 13px;
    color: var(--text-light);
}

/* NAV */
.nav {
    display: flex;
    overflow-x: auto;
    padding: 0 12px;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-family: var(--font);
}

.nav-btn:hover {
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-btn.active {
    color: var(--primary-dark);
    border-bottom-color: var(--accent);
    font-weight: 600;
    background: var(--primary-light);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* MAIN */
.main {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* CARDS */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

.card h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-header h3 {
    margin-bottom: 0;
}

/* TOAST */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal.hidden { display: none; }

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 16px;
}

.modal-content .input {
    margin-bottom: 12px;
}

.modal-large {
    max-width: 700px;
}

.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* HATIRLATMA */
.hatirlatma {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 150;
    animation: slideIn 0.3s ease;
}

.hatirlatma-icerik {
    background: var(--warning);
    color: #000;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
}

/* MOD MODAL */
.mod-secenekler {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.mod-btn {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.mod-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* ANASAYFA */
.anasayfa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.motivasyon-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #b8a9d4 0%, #7c9cbf 50%, #7bb89a 100%);
    color: white;
}

.motivasyon-card h3 { color: white; }
.motivasyon-card .btn { background: rgba(255,255,255,0.2); color: white; border: none; }

.motivasyon-soz {
    font-size: 18px;
    font-style: italic;
    margin: 16px 0 8px;
    line-height: 1.5;
}

.motivasyon-yazar {
    font-size: 14px;
    opacity: 0.8;
    text-align: right;
}

.bugun-ozet {
    display: flex;
    gap: 16px;
}

.ozet-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.ozet-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.ozet-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.bugun-dersler .ders-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-left: 3px solid var(--primary);
    margin-bottom: 8px;
    background: var(--bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.oneriler-liste .oneri-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-bottom: 4px;
    font-size: 14px;
}

.empty-state {
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* POMODORO */
.pomodoro-container {
    max-width: 500px;
    margin: 0 auto;
}

.pomodoro-card {
    text-align: center;
}

.pomodoro-ders-sec {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.pomodoro-timer {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
}

.pomodoro-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pomodoro-bg-circle {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}

.pomodoro-progress-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.pomodoro-display {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pomodoro-zaman {
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
}

.pomodoro-durum {
    font-size: 14px;
    color: var(--text-light);
}

.pomodoro-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.pomodoro-ayarlar {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.ayar-grup {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* SORU LOG */
.soru-log-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.soru-log-liste .log-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

/* PLAN */
.gun-secici {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gun-btn {
    flex: 1;
    min-width: 44px;
    padding: 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font);
    transition: all 0.2s;
}

.gun-btn:hover, .gun-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.gun-btn.bugun {
    font-weight: 700;
}

.plan-tablo .plan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-left: 3px solid var(--primary);
    margin-bottom: 8px;
    background: var(--bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.plan-item .plan-saat {
    font-weight: 600;
    color: var(--primary);
    min-width: 60px;
}

.plan-item .plan-ders-adi {
    flex: 1;
    margin: 0 12px;
}

/* KONULAR */
.sinav-filtre {
    display: flex;
    gap: 4px;
}

.filtre-btn {
    padding: 6px 16px;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: var(--card-bg);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font);
    transition: all 0.2s;
}

.filtre-btn:hover, .filtre-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.toplam-ilerleme {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ilerleme-bar {
    flex: 1;
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.ilerleme-dolgu {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.konular-liste .ders-akordeon {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.ders-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    cursor: pointer;
    background: var(--bg);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.ders-baslik:hover {
    background: var(--primary-light);
}

.ders-baslik .ders-ilerleme {
    font-size: 13px;
    color: var(--primary);
}

.ders-konular {
    display: none;
    padding: 8px 12px;
}

.ders-konular.acik {
    display: block;
}

.konu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
}

.konu-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.konu-item.tamamlandi {
    text-decoration: line-through;
    color: var(--text-light);
}

.btn-konu-sil {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.btn-konu-sil:hover {
    opacity: 1;
}

.konu-ekle-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.konu-ekle-input {
    flex: 1;
    padding: 6px 10px !important;
    font-size: 13px !important;
}

.ders-ekle-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    border: 2px dashed var(--border);
}

.ders-ekle-row .input {
    flex: 1;
}

/* TEST SONUÇLARI */
.test-ders-netleri .net-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.net-input label {
    min-width: 100px;
    font-size: 14px;
}

.net-input input {
    width: 80px;
}

.basari-artis {
    margin-bottom: 16px;
}

.basari-artis canvas {
    width: 100%;
    max-height: 300px;
}

.test-sonuc-liste .test-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
}

.test-item .test-baslik {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.test-item .test-baslik strong {
    color: var(--text);
}

.test-item .test-baslik span {
    color: var(--text-light);
    font-size: 13px;
}

.test-item .netleri {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.net-badge {
    font-size: 13px;
    padding: 4px 8px;
    background: var(--bg);
    border-radius: 4px;
}

.net-badge.artis { color: var(--success); }
.net-badge.dusus { color: var(--danger); }

/* YAŞAM */
.yasam-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-row label {
    min-width: 60px;
    font-size: 14px;
}

.su-takip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.su-sayac {
    display: flex;
    align-items: center;
    gap: 12px;
}

#su-miktar {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
    text-align: center;
}

.uyku-gecmis .uyku-item,
.yemek-gecmis .yemek-item,
.sosyal-gecmis .sosyal-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

/* İSTATİSTİK */
.ozet-kartlar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.ozet-kart {
    text-align: center;
    padding: 16px;
}

.ozet-kart-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 4px;
}

.ozet-kart-label {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

.ozet-kart-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-top: 4px;
}

.istatistik-container canvas {
    width: 100%;
    max-height: 300px;
}

/* FORUM */
.forum-kategoriler {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.forum-konular .forum-konu-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.forum-konu-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.forum-konu-item .konu-baslik {
    font-weight: 600;
    margin-bottom: 4px;
}

.forum-konu-item .konu-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 12px;
}

.kategori-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
}

.forum-yorumlar .yorum-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.yorum-item .yorum-yazar {
    font-weight: 600;
    font-size: 13px;
}

.yorum-item .yorum-tarih {
    font-size: 12px;
    color: var(--text-light);
}

.yorum-item .yorum-icerik {
    margin-top: 4px;
    font-size: 14px;
}

/* ============================
   KARANLIK MOD (Dark Mode)
   ============================ */
body.dark-mode {
    --bg: #1a1a2e;
    --card-bg: #16213e;
    --text: #e0e0e0;
    --text-light: #8a8aa0;
    --border: #2a2a4a;
    --primary: #7c9cbf;
    --primary-dark: #9bb8d6;
    --primary-light: #1e2d4a;
    --success: #7bb89a;
    --success-light: #1a2e24;
    --warning: #d4a96a;
    --warning-light: #2e2518;
    --danger: #c97878;
    --danger-light: #2e1a1a;
    --accent: #b8a9d4;
    --accent-light: #2a2440;
    --shadow: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.3);
}

body.dark-mode .auth-screen {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

body.dark-mode .motivasyon-card {
    background: linear-gradient(135deg, #2a2440 0%, #1e2d4a 50%, #1a2e24 100%);
}

body.dark-mode .input {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border);
}

body.dark-mode canvas {
    filter: brightness(0.9);
}

.btn-icon {
    padding: 6px 10px;
    font-size: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--primary-light);
}

/* ============================
   GERİ SAYIM
   ============================ */
.gerisayim-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

body.dark-mode .gerisayim-card {
    background: linear-gradient(135deg, #2a2440 0%, #1e2d4a 100%);
}

.gerisayim-display {
    padding: 8px 0;
}

.gerisayim-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.gerisayim-kutular {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 12px 0;
}

.gerisayim-kutu {
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    min-width: 80px;
}

.gerisayim-sayi {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.gerisayim-birim {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.gerisayim-degistir {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    border: none !important;
    font-size: 12px !important;
    margin-top: 4px;
}

.gerisayim-ayar {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    padding-top: 8px;
}

.gerisayim-ayar .input {
    color: #333;
}

.gerisayim-bitti {
    padding: 16px;
    font-size: 16px;
    opacity: 0.9;
}

/* ============================
   ROZETLER
   ============================ */
.rozetler-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.rozet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.rozet-item.kazanildi {
    border-color: var(--warning);
    background: var(--warning-light);
}

.rozet-item.kilitli {
    opacity: 0.5;
}

.rozet-icon {
    font-size: 28px;
    min-width: 36px;
    text-align: center;
}

.rozet-bilgi {
    flex: 1;
}

.rozet-ad {
    font-weight: 600;
    font-size: 14px;
}

.rozet-aciklama {
    font-size: 12px;
    color: var(--text-light);
}

.rozet-mini {
    font-size: 24px;
    display: inline-block;
    margin-right: 4px;
}

.rozet-mini-liste {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* ============================
   HATALI SORULAR
   ============================ */
.hatali-container {
    max-width: 800px;
    margin: 0 auto;
}

.hatali-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.hatali-item.tekrar-edildi {
    opacity: 0.6;
    border-left: 3px solid var(--success);
}

.hatali-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 4px;
}

.hatali-ders {
    font-weight: 600;
    font-size: 14px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
}

.hatali-konu-badge {
    font-size: 12px;
    background: var(--accent-light);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 10px;
}

.hatali-oncelik {
    font-size: 12px;
    font-weight: 600;
}

.hatali-tarih {
    font-size: 12px;
    color: var(--text-light);
}

.hatali-soru-text {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.hatali-cozum-text {
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg);
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.hatali-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tekrar-badge {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}

/* ============================
   HAFTALIK RAPOR
   ============================ */
.rapor-ozet {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rapor-ozet-item {
    text-align: center;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.rapor-ozet-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.rapor-ozet-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.rapor-ozet-label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.rapor-gunluk {
    margin-top: 8px;
}

.rapor-gun-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.rapor-gun-ad {
    min-width: 160px;
    font-weight: 500;
}

.rapor-dersler, .rapor-test-item {
    margin-top: 4px;
}

.rapor-ders-item, .rapor-test-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

/* ============================
   POMODORO İSTATİSTİKLERİ
   ============================ */
.pomodoro-istatistik-ozet {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.pomo-ders-dagilim {
    margin-top: 8px;
}

.pomo-ders-item {
    margin-bottom: 8px;
}

.pomo-ders-baslik {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

/* ============================
   AYARLAR
   ============================ */
.ayarlar-bolum h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.ayarlar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================
   LGS ÇOCUK MODU
   ============================ */
body.lgs-mode {
    font-size: 15px;
}

body.lgs-mode .nav-btn {
    font-size: 15px;
    padding: 14px 16px;
}

body.lgs-mode .card h3 {
    font-size: 17px;
}

body.lgs-mode .motivasyon-soz {
    font-size: 20px;
}

body.lgs-mode .ozet-value {
    font-size: 22px;
}

body.lgs-mode .btn {
    font-size: 15px;
    padding: 10px 18px;
}

body.lgs-mode .empty-state {
    font-size: 15px;
}

body.lgs-mode .gerisayim-card {
    background: linear-gradient(135deg, #6dd5ed 0%, #2193b0 100%);
}

body.lgs-mode.dark-mode .gerisayim-card {
    background: linear-gradient(135deg, #1a3a4a 0%, #1e3d5a 100%);
}

body.lgs-mode .motivasyon-card {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 50%, #2193b0 100%);
}

body.lgs-mode .pomodoro-zaman {
    font-size: 52px;
}

body.lgs-mode .rozet-icon {
    font-size: 32px;
}

body.lgs-mode .hatali-soru-text {
    font-size: 15px;
}

/* ============================
   GÜNLÜK KART
   ============================ */
.gunluk-kart-card {
    grid-column: 1 / -1;
    background: var(--card-bg);
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.gunluk-kart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b8a9d4, #7c9cbf, #7bb89a, #d4a96a);
}

.gunluk-kart-card .card-header h3 {
    color: var(--text);
}

.gunluk-kart-card .btn {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.gunluk-kart-card .btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.gunluk-kart-icerik {
    padding: 8px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gunluk-kart-icerik.kart-cikis {
    opacity: 0;
    transform: translateY(-10px);
}

.gunluk-kart-icerik.kart-giris {
    animation: kartGiris 0.4s ease;
}

@keyframes kartGiris {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gk-tur-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.gk-metin {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    padding: 4px 0;
}

.gk-kaynak {
    font-size: 13px;
    color: var(--text-light);
    text-align: right;
    margin-top: 8px;
    font-style: italic;
}

body.lgs-mode .gk-metin {
    font-size: 17px;
}

body.lgs-mode .gunluk-kart-card::before {
    background: linear-gradient(90deg, #a8e063, #56ab2f, #6dd5ed, #2193b0);
}

/* ============================
   NOTLARIM
   ============================ */
.notlarim-container {
    max-width: 800px;
    margin: 0 auto;
}

.notlarim-card {
    background: var(--card-bg);
    border-top: 4px solid #f9a825;
}

.notlarim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.not-kart {
    border: 2px solid;
    border-radius: var(--radius);
    padding: 16px;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.not-kart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.not-pin {
    position: absolute;
    top: -6px;
    right: 8px;
    font-size: 18px;
}

.not-baslik {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.not-ders-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0,0,0,0.08);
    margin-bottom: 8px;
    font-weight: 600;
}

.not-icerik {
    font-size: 13px;
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.not-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.not-tarih {
    font-size: 11px;
    opacity: 0.6;
}

.not-actions {
    display: flex;
    gap: 2px;
}

.not-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0.5;
    transition: opacity 0.2s, background 0.2s;
}

.not-action-btn:hover {
    opacity: 1;
    background: rgba(0,0,0,0.06);
}

/* Dark mode notlar */
body.dark-mode .not-kart {
    opacity: 0.92;
}

body.dark-mode .not-ders-badge {
    background: rgba(255,255,255,0.1);
}

body.dark-mode .not-action-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* === MİSAFİR KİLİT EKRANI === */
.nav-btn-locked {
    position: relative;
    opacity: 0.6;
}

.nav-btn-locked::after {
    content: '🔒';
    font-size: 10px;
    position: absolute;
    top: -2px;
    right: -2px;
}

.misafir-kilit-ekran {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 40px 20px;
}

.kilit-ikon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: kilit-bounce 1s ease-in-out;
}

@keyframes kilit-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.kilit-baslik {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.kilit-aciklama {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.kilit-soru {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.kilit-butonlar {
    display: flex;
    gap: 12px;
}

.kilit-uye-btn {
    padding: 12px 32px !important;
    font-size: 16px !important;
    border-radius: var(--radius) !important;
    animation: kilit-pulse 2s ease-in-out infinite;
}

@keyframes kilit-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 156, 191, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(124, 156, 191, 0); }
}
