/**
 * MATAİ PRO v2 - Styles
 * Tüm CSS stilleri bu dosyada
 * Düzenleyen: Claude AI
 */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --radius: 16px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 16px;
    line-height: 1.6;
}

.app-container { max-width: 1200px; margin: 0 auto; }

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}
.loading-overlay.hidden { display: none; }
.loading-spinner {
    width: 60px; height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { margin-top: 20px; font-size: 18px; }

/* Header */
.header {
    background: white;
    border-radius: 20px;
    padding: 20px 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-left { display: flex; align-items: center; gap: 16px; }

.header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 12px;
}
.student-info .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}
.student-info .details { line-height: 1.3; }
.student-info .name { font-weight: 600; color: var(--dark); }
.student-info .class { font-size: 12px; color: var(--gray-500); }

.header-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--gray-100);
    border-radius: 12px;
}
.stat-item .icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.stat-item .value { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.stat-item .label { font-size: 10px; color: var(--gray-500); text-transform: uppercase; }

.logout-btn {
    padding: 10px 20px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

/* Mode Banner */
.mode-banner {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.mode-banner .mode-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mode-banner .mode-icon {
    font-size: 28px;
}
.mode-banner .mode-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
}
.mode-banner .mode-text p {
    font-size: 13px;
    opacity: 0.9;
}
.mode-banner .progress-info {
    text-align: right;
}
.mode-banner .progress-value {
    font-size: 1.5rem;
    font-weight: 800;
}
.mode-banner .progress-label {
    font-size: 12px;
    opacity: 0.8;
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}
@media (max-width: 900px) {
    .main-grid { grid-template-columns: 1fr; }
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); }

/* Question Box */
.question-number {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.question-topic {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.question-box {
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    border-radius: 16px;
    padding: 24px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--dark);
    min-height: 120px;
}

/* Options */
.options-container { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.option-btn {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: white;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.option-btn:hover { border-color: var(--primary); background: #f0f0ff; }
.option-btn.selected { border-color: var(--primary); background: #e0e7ff; }
.option-btn.correct { border-color: var(--success); background: #d1fae5; }
.option-btn.wrong { border-color: var(--danger); background: #fee2e2; }
.option-btn:disabled { cursor: not-allowed; }
.option-letter {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-600);
}
.option-btn.correct .option-letter { background: var(--success); color: white; }
.option-btn.wrong .option-letter { background: var(--danger); color: white; }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.skip-hint {
    width: 100%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.skip-hint strong {
    color: #b45309;
}

/* Phase Info Boxes */
.diagnostic-info-box, .reinforcement-info-box, .scanning-info-box {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.diagnostic-info-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}
.reinforcement-info-box {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-left: 4px solid #10b981;
}
.scanning-info-box {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #3730a3;
    border-left: 4px solid #6366f1;
}
.diagnostic-info-box i, .reinforcement-info-box i, .scanning-info-box i {
    font-size: 16px;
}

/* Phase Badge */
.phase-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.phase-scanning {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #3730a3;
}
.phase-diagnostic {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}
.phase-reinforcement {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

/* Current Phase Box */
.current-phase-box {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    text-align: center;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-success { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Solution Box - Öğretmen Anlatımı */
.solution-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    display: none;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.solution-box.correct { 
    background: linear-gradient(135deg, #d1fae5, #ecfdf5); 
    border: 2px solid var(--success); 
}
.solution-box.wrong { 
    background: linear-gradient(135deg, #fee2e2, #fef2f2); 
    border: 2px solid var(--danger); 
}
.solution-box.visible { display: block; }

.solution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.solution-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--dark);
}
.solution-controls {
    display: flex;
    gap: 8px;
}
.sound-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.sound-btn:hover {
    background: var(--primary);
    color: white;
}
.sound-btn.active {
    background: var(--primary);
    color: white;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

/* Typewriter Effect */
.typewriter-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark);
    min-height: 60px;
}

/* Correct Answer Box (Opsiyonel çözüm) */
.correct-answer-box {
    text-align: center;
    padding: 20px;
}
.correct-emoji {
    font-size: 48px;
    margin-bottom: 12px;
    animation: bounce 0.5s ease;
}
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.correct-message {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 16px;
}
.correct-message strong {
    color: var(--success);
    font-size: 20px;
}
.btn-show-solution {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-show-solution:hover {
    background: var(--primary);
    color: white;
}

.typewriter-text .teacher-intro {
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
}
.typewriter-text .solution-body {
    line-height: 1.8;
    white-space: pre-wrap;
}
.typewriter-text p {
    margin: 8px 0;
    line-height: 1.7;
}
.typewriter-text .solution-step {
    margin: 12px 0;
    padding: 10px 14px;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}
.typewriter-text .step {
    margin: 12px 0;
    padding: 12px 16px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}
.typewriter-text .highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fef3c7 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}
.typewriter-text .tip {
    margin-top: 16px;
    padding: 12px;
    background: #ede9fe;
    border-radius: 10px;
    font-style: italic;
    color: #6366f1;
}
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: var(--primary);
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Solution Footer */
.solution-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(0,0,0,0.15);
    text-align: center;
}
.summary-hint {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 12px;
}
.btn-topic-summary {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.btn-topic-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Çözüm Tipi Seçici */
.solution-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.solution-type-btn {
    padding: 8px 14px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.solution-type-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.solution-type-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Yanlış Çözüm Bildir Butonu */
.report-wrong-solution {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--gray-200);
}
.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #92400e;
    cursor: pointer;
    transition: all 0.3s;
}
.report-btn:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}
.report-btn i {
    color: #f59e0b;
}

/* Soru Varyasyonları */
.question-variations {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: 16px;
    border: 1px solid #bae6fd;
}
.variations-title {
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.variations-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.variation-btn {
    padding: 10px 16px;
    border: none;
    background: white;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.variation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.variation-btn:nth-child(1):hover { background: #dcfce7; color: #166534; }
.variation-btn:nth-child(2):hover { background: #fee2e2; color: #991b1b; }
.variation-btn:nth-child(3):hover { background: #fef3c7; color: #92400e; }
.variation-btn:nth-child(4):hover { background: #e0e7ff; color: #3730a3; }
.variation-btn.prereq-variation-btn { 
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border: 1px solid #f9a8d4;
}
.variation-btn.prereq-variation-btn:hover { 
    background: #fbcfe8; 
    color: #9d174d; 
}

/* Düzeltme Modal */
.correction-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    backdrop-filter: blur(5px);
}
.correction-modal {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.correction-header {
    text-align: center;
    margin-bottom: 20px;
}
.correction-header h3 {
    margin: 10px 0 0;
    color: var(--dark);
}
.correction-content {
    background: #fef3c7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.correction-section {
    margin-bottom: 16px;
}
.correction-section:last-child {
    margin-bottom: 0;
}
.corrected-solution {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
}

/* Canlı Anlatım */
.live-explanation {
    padding: 16px;
}
.live-explanation h4 {
    margin: 0 0 16px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.explanation-step {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 10px;
}
.step-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}
.step-text {
    flex: 1;
    line-height: 1.6;
}
.explanation-answer {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 10px;
    color: #065f46;
}

/* Stok soru badge */
.bank-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
}

/* Topic Summary Modal */
.topic-summary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
    padding: 20px;
}
.topic-summary-overlay.visible { display: flex; }

.topic-summary-modal {
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    position: relative;
}
.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-200);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.close-modal-btn:hover {
    background: var(--danger);
    color: white;
}

.topic-summary-header {
    text-align: center;
    padding: 32px 32px 20px;
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    border-radius: 24px 24px 0 0;
}
.topic-icon { font-size: 48px; margin-bottom: 12px; }
.topic-summary-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 8px;
}
.topic-grade {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.topic-summary-content {
    padding: 24px 32px;
}
.summary-loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
}
.summary-loading i { font-size: 32px; margin-bottom: 12px; color: var(--primary); }

.topic-section {
    margin-bottom: 24px;
}
.topic-section h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topic-section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 8px 0;
}
.topic-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark);
}
.topic-content p {
    margin: 10px 0;
}
.topic-content .solution-step {
    background: #f0f4ff;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 12px 0;
    border-left: 3px solid var(--primary);
}
.topic-section .formula-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    margin: 12px 0;
    border-left: 4px solid var(--primary);
    font-family: 'Courier New', monospace;
}

/* Examples Section */
.examples-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px dashed var(--gray-200);
}

.example-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.example-card .example-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.example-card .example-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.example-card .example-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
}
.example-card .example-question { 
    margin-bottom: 14px; 
    color: var(--dark);
    font-size: 15px;
    line-height: 1.6;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}
.example-card .example-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.example-card .example-option {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-600);
}
.example-card .example-answer {
    background: #ecfdf5;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--success);
    font-size: 14px;
    margin-bottom: 12px;
}
.example-card .example-solution {
    background: #fffbeb;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--dark);
    border-left: 3px solid #f59e0b;
}
.example-card .example-solution .solution-text {
    margin-top: 8px;
    color: var(--gray-600);
    line-height: 1.7;
}
.example-card .example-solution .solution-text p {
    margin: 6px 0;
}

.topic-summary-actions {
    padding: 20px 32px 32px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Narration Choice Modal */
.narration-choice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3500;
    backdrop-filter: blur(4px);
}
.narration-choice-overlay.visible { display: flex; }

.narration-choice-modal {
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}
.narration-icon {
    font-size: 56px;
    margin-bottom: 16px;
}
.narration-choice-modal h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 8px;
}
.narration-desc {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 24px;
}
.narration-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.narration-btn {
    flex: 1;
    padding: 20px 16px;
    border-radius: 16px;
    border: 2px solid var(--gray-200);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.narration-btn i {
    font-size: 28px;
    color: var(--primary);
}
.narration-btn span {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}
.narration-btn small {
    font-size: 11px;
    color: var(--gray-500);
}
.narration-btn.voice:hover {
    border-color: var(--primary);
    background: #f0f0ff;
    transform: translateY(-2px);
}
.narration-btn.silent:hover {
    border-color: var(--success);
    background: #ecfdf5;
    transform: translateY(-2px);
}
.narration-btn.voice i { color: var(--primary); }
.narration-btn.silent i { color: var(--success); }

/* Diagnostic Box */
.diagnostic-box {
    margin-top: 16px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 12px;
    border-left: 4px solid var(--warning);
}
.diagnostic-box h5 { color: var(--warning); margin-bottom: 8px; }
.diagnostic-box .prereq-btn {
    margin-top: 12px;
    padding: 10px 16px;
    background: var(--warning);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Map Progress */
.map-progress {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.map-progress h4 {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.progress-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    position: relative;
}
.progress-ring svg {
    transform: rotate(-90deg);
}
.progress-ring .bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 10;
}
.progress-ring .progress {
    fill: none;
    stroke: var(--success);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s;
}
.progress-ring .value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}
.map-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.map-stat {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
}
.map-stat .num { font-size: 1.3rem; font-weight: 700; }
.map-stat .lbl { font-size: 11px; color: var(--gray-500); }

/* Session Stats */
.session-stats {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.session-stats h4 {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.session-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}
.session-stat-row:last-child { border: none; }
.session-stat-row .label { color: var(--gray-500); }
.session-stat-row .value { font-weight: 700; color: var(--dark); }

/* Mini Map */
.mini-map {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.mini-map h4 {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
    text-transform: uppercase;
}
#mini-map-svg {
    width: 100%;
    height: 200px;
    background: var(--gray-100);
    border-radius: 8px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: white;
    padding: 16px 28px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: transform 0.3s;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Elo Change Animation */
.elo-change {
    position: fixed;
    top: 80px;
    right: 30px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    z-index: 1000;
    animation: eloFloat 2s ease-out forwards;
    opacity: 0;
}
.elo-change.positive { background: #d1fae5; color: var(--success); }
.elo-change.negative { background: #fee2e2; color: var(--danger); }
@keyframes eloFloat {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* Tab Navigation */
.tab-nav {
    background: white;
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 8px;
}
.tab-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tab-btn:hover { background: var(--gray-100); color: var(--dark); }
.tab-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Bilgi Haritası Page */
.knowledge-map-container {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    min-height: 650px;
}
.knowledge-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 16px;
}
.knowledge-map-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
}
.legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: var(--gray-100);
    border-radius: 10px;
    margin-bottom: 12px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-600);
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.legend-dot.mastered { background: #10b981; }
.legend-dot.learning { background: #f59e0b; }
.legend-dot.weak { background: #ef4444; }
.legend-dot.untested { background: #cbd5e1; }

#knowledge-graph {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}
#knowledge-graph svg {
    width: 100%;
    height: 100%;
    cursor: grab;
}
#knowledge-graph svg:active {
    cursor: grabbing;
}
.graph-node {
    cursor: pointer;
}
.graph-node circle {
    stroke-width: 3px;
    stroke: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: r 0.2s, filter 0.2s;
}
.graph-node.hovered circle {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}
.graph-node text {
    font-size: 10px;
    fill: #475569;
    text-anchor: middle;
    pointer-events: none;
    font-weight: 500;
}
.graph-link {
    stroke: #cbd5e1;
    stroke-opacity: 0.6;
    fill: none;
}
.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}
.zoom-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.zoom-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}
.cluster-labels {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 12px;
    z-index: 5;
}
.cluster-label {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cluster-label.math-label { color: #6366f1; border: 2px solid #6366f1; }
.cluster-label.geo-label { color: #ec4899; border: 2px solid #ec4899; }

/* Category Filter Buttons */
.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.category-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.category-btn.active {
    color: white;
    border-color: transparent;
}
.category-btn[data-category="all"].active {
    background: linear-gradient(135deg, #6366f1, #ec4899);
}
.category-btn.math {
    color: #6366f1;
    border-color: #6366f1;
}
.category-btn.math.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}
.category-btn.geo {
    color: #ec4899;
    border-color: #ec4899;
}
.category-btn.geo.active {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
}

.refresh-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 0;
    padding: 12px 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.refresh-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Node Tooltip */
.node-tooltip {
    position: absolute;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    font-size: 13px;
    pointer-events: none;
    z-index: 100;
    max-width: 250px;
    opacity: 0;
    transition: opacity 0.2s;
}
.node-tooltip.visible { opacity: 1; }
.node-tooltip h5 { margin: 0 0 8px; color: var(--dark); }
.node-tooltip .meta { color: var(--gray-500); font-size: 12px; }
.node-tooltip .mastery-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}
.node-tooltip .mastery-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

/* Mini Map (Sidebar) */
.mini-map { min-height: 200px; }
#mini-map-svg {
    width: 100%;
    height: 180px;
    background: var(--gray-100);
    border-radius: 12px;
}

/* Session Summary Modal */
.session-summary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}
.session-summary-overlay.visible { display: flex; }

.session-summary {
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.summary-header {
    text-align: center;
    margin-bottom: 24px;
}
.summary-header h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 8px;
}
.summary-header .emoji { font-size: 3rem; margin-bottom: 12px; }

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.summary-stat {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.summary-stat.full { grid-column: span 2; }
.summary-stat .value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
}
.summary-stat .label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}
.summary-stat.success { background: #d1fae5; }
.summary-stat.success .value { color: var(--success); }
.summary-stat.warning { background: #fef3c7; }
.summary-stat.warning .value { color: var(--warning); }
.summary-stat.danger { background: #fee2e2; }
.summary-stat.danger .value { color: var(--danger); }

.summary-section {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.summary-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}
.summary-section.strong { background: #d1fae5; }
.summary-section.weak { background: #fee2e2; }

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.topic-item:last-child { border-bottom: none; }
.topic-item .name { font-size: 13px; color: var(--gray-600); }
.topic-item .change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}
.topic-item .change.positive { background: #d1fae5; color: var(--success); }
.topic-item .change.negative { background: #fee2e2; color: var(--danger); }

.summary-plan {
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}
.summary-plan h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}
.summary-plan p {
    font-size: 13px;
    color: var(--gray-600);
    margin: 4px 0;
}

.summary-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.summary-actions .btn {
    flex: 1;
    min-width: 140px;
}
.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: #059669;
}

/* Resume Dialog */
.resume-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
}
.resume-dialog {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s ease-out;
}
.resume-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.resume-dialog h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 8px;
}
.resume-info {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 20px;
}
.resume-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}
.resume-stat {
    text-align: center;
}
.resume-stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.resume-stat .label {
    font-size: 12px;
    color: var(--gray-500);
}
.resume-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.resume-actions .btn {
    min-width: 130px;
}

/* Session Progress Bar */
.session-progress {
    background: var(--gray-200);
    height: 6px;
    border-radius: 3px;
    margin: 8px 0;
    overflow: hidden;
}
.session-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .header { flex-direction: column; text-align: center; }
    .mode-banner { text-align: center; }
    .mode-banner .progress-info { text-align: center; width: 100%; }
    .tab-btn { padding: 10px 12px; font-size: 13px; }
    .tab-btn span { display: none; }
    .knowledge-map-header { flex-direction: column; }
    .legend { justify-content: center; }
}

/* ============================================
   ANALİZ SAYFASI STİLLERİ
   ============================================ */
.analytics-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.analytics-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.analytics-period-selector {
    display: flex;
    gap: 8px;
    background: white;
    padding: 6px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.period-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s;
}

.period-btn:hover {
    background: var(--gray-100);
}

.period-btn.active {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
}

/* Overview Cards */
.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.overview-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.overview-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.overview-info {
    flex: 1;
}

.overview-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.overview-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Analytics Cards */
.analytics-charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.analytics-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.analytics-card.full-width {
    grid-column: 1 / -1;
}

.analytics-card .card-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.analytics-card .card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.chart-container {
    position: relative;
    height: 280px;
}

/* Strength/Weakness List */
.strength-weakness-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.3s;
}

.sw-item.strength {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-left: 4px solid #10b981;
}

.sw-item.weakness {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-left: 4px solid #ef4444;
}

.sw-item:hover {
    transform: translateX(4px);
}

.sw-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sw-item.strength .sw-icon {
    background: #10b981;
    color: white;
}

.sw-item.weakness .sw-icon {
    background: #ef4444;
    color: white;
}

.sw-info {
    flex: 1;
}

.sw-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.sw-detail {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.sw-score {
    font-size: 18px;
    font-weight: 700;
}

.sw-item.strength .sw-score {
    color: #10b981;
}

.sw-item.weakness .sw-score {
    color: #ef4444;
}

/* Activity Heatmap */
.activity-heatmap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.heatmap-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.heatmap-label {
    width: 40px;
    font-size: 11px;
    color: var(--gray-500);
    text-align: right;
    padding-right: 8px;
}

.heatmap-cells {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.heatmap-cell {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: var(--gray-100);
    cursor: pointer;
    transition: transform 0.2s;
}

.heatmap-cell:hover {
    transform: scale(1.3);
}

.heatmap-cell.level-1 { background: #c6f6d5; }
.heatmap-cell.level-2 { background: #68d391; }
.heatmap-cell.level-3 { background: #38a169; }
.heatmap-cell.level-4 { background: #276749; }

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
    font-size: 11px;
    color: var(--gray-500);
}

.heatmap-legend-cells {
    display: flex;
    gap: 3px;
}

/* Insights */
.insights-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.insights-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
}

.insight-item i {
    font-size: 20px;
    color: var(--primary);
    margin-top: 2px;
}

.insight-item p {
    margin: 0;
    font-size: 14px;
    color: var(--dark);
    line-height: 1.6;
}

.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--gray-400);
}

/* Responsive */
@media (max-width: 768px) {
    .analytics-charts-row {
        grid-template-columns: 1fr;
    }
    .analytics-header {
        flex-direction: column;
        align-items: stretch;
    }
    .period-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    .overview-card {
        padding: 16px;
    }
    .overview-value {
        font-size: 22px;
    }
}

/* =====================================================
   ÇALIŞMA PLANI STİLLERİ
   ===================================================== */
.study-plan-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.study-plan-locked {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    margin: 20px 0;
}

.locked-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.study-plan-locked h2 {
    font-size: 1.5rem;
    color: #334155;
    margin-bottom: 12px;
}

.study-plan-locked p {
    color: #64748b;
    margin-bottom: 24px;
}

.map-progress-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 24px auto;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.progress-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.progress-bar-large {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: #64748b;
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.study-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.study-plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-refresh {
    padding: 10px 16px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: #e2e8f0;
}

.btn-pdf {
    padding: 10px 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Güçlendirme Konu Anlatımı Modal */
.lesson-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.lesson-modal-overlay.visible {
    display: flex;
}

.lesson-modal {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.lesson-header {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 24px;
    border-radius: 20px 20px 0 0;
}

.lesson-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}

.lesson-header p {
    opacity: 0.9;
    font-size: 14px;
}

.lesson-progress {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.lesson-step {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.lesson-step.active {
    background: white;
}

.lesson-step.completed {
    background: #10b981;
}

.lesson-content {
    padding: 24px;
}

.lesson-section {
    margin-bottom: 24px;
}

.lesson-section h3 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-text {
    color: #475569;
    line-height: 1.8;
    font-size: 15px;
}

.example-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.example-card h4 {
    color: #6366f1;
    margin-bottom: 12px;
    font-size: 14px;
}

.example-question {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #6366f1;
}

.example-solution {
    background: #ecfdf5;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.example-solution h5 {
    color: #059669;
    margin-bottom: 8px;
    font-size: 13px;
}

.lesson-actions {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.lesson-actions button {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-lesson-skip {
    background: #f1f5f9;
    color: #64748b;
    border: none;
}

.btn-lesson-continue {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    flex: 1;
}

.btn-lesson-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.study-plan-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid;
}

.summary-card.critical { border-color: #ef4444; }
.summary-card.weak { border-color: #f59e0b; }
.summary-card.learning { border-color: #eab308; }
.summary-card.mastered { border-color: #10b981; }

.summary-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.summary-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.estimated-time-box {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #1e40af;
}

.estimated-time-box i {
    font-size: 20px;
}

.study-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.study-step {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-info h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.step-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.step-progress {
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    padding: 6px 12px;
    border-radius: 20px;
}

.step-topics {
    padding: 16px 20px;
    max-height: 300px;
    overflow-y: auto;
}

.step-topic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #f8fafc;
    transition: all 0.2s;
}

.step-topic-item:hover {
    background: #f1f5f9;
}

.step-topic-item.completed {
    background: #ecfdf5;
}

.topic-status-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.topic-status-icon.critical { background: #fef2f2; color: #ef4444; }
.topic-status-icon.weak { background: #fffbeb; color: #f59e0b; }
.topic-status-icon.learning { background: #fefce8; color: #eab308; }
.topic-status-icon.mastered { background: #ecfdf5; color: #10b981; }
.topic-status-icon.review { background: #f3e8ff; color: #8b5cf6; }

.topic-details {
    flex: 1;
    min-width: 0;
}

.topic-name {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.topic-mastery {
    font-weight: 700;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 6px;
}

.topic-mastery.low { background: #fef2f2; color: #dc2626; }
.topic-mastery.medium { background: #fffbeb; color: #d97706; }
.topic-mastery.high { background: #ecfdf5; color: #059669; }

.topic-action-btn {
    padding: 8px 14px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.topic-action-btn:hover {
    background: #4f46e5;
}

.study-plan-actions {
    margin-top: 24px;
    text-align: center;
}

.btn-start-reinforcement {
    padding: 18px 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-start-reinforcement:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.empty-step-message {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 14px;
}

.root-cause-badge {
    background: #fef2f2;
    color: #dc2626;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.affects-count {
    font-size: 11px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .study-plan-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    .step-header {
        flex-wrap: wrap;
    }
    .step-progress {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}

/* =====================================================
   HARİTALAMA MODU STİLLERİ
   Harita %100 olana kadar geri dönüt gizlenir
   ===================================================== */
body.mapping-mode .session-stats {
    display: none !important;
}

body.mapping-mode .solution-box {
    display: none !important;
}

body.mapping-mode #question-variations {
    display: none !important;
}

body.mapping-mode #next-btn {
    display: none !important;
}

body.mapping-mode .option-btn.correct,
body.mapping-mode .option-btn.wrong {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
}

body.mapping-mode .option-btn.correct::before,
body.mapping-mode .option-btn.wrong::before {
    display: none !important;
}

/* Haritalama banner'ı */
.mapping-banner {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mapping-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mapping-banner-icon {
    font-size: 28px;
}

.mapping-banner-text h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.mapping-banner-text p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

.mapping-progress-ring {
    width: 56px;
    height: 56px;
    position: relative;
}

.mapping-progress-ring svg {
    transform: rotate(-90deg);
}

.mapping-progress-ring circle {
    fill: none;
    stroke-width: 5;
}

.mapping-progress-ring .bg {
    stroke: rgba(255,255,255,0.3);
}

.mapping-progress-ring .progress {
    stroke: white;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.mapping-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 700;
}

/* Kilitli Tab Stili */
.tab-locked-overlay {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    margin: 20px;
}

.tab-locked-overlay .locked-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.tab-locked-overlay h2 {
    font-size: 1.5rem;
    color: #334155;
    margin-bottom: 12px;
}

.tab-locked-overlay p {
    color: #64748b;
    margin-bottom: 24px;
}

/* =====================================================
   WELCOME GUIDE MODAL - Giriş Yönergesi
   ===================================================== */
.welcome-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.welcome-guide-overlay.visible {
    display: flex;
}

.welcome-guide-modal {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.welcome-guide-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.welcome-guide-modal h2 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.welcome-guide-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

.welcome-guide-content {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.welcome-guide-content p {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.welcome-guide-content p:last-child {
    margin-bottom: 0;
}

.welcome-guide-content .highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #92400e;
}

.welcome-guide-content .info-box {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    border-left: 4px solid #6366f1;
}

.welcome-guide-content .info-box.mapping {
    border-left-color: #6366f1;
}

.welcome-guide-content .info-box.reinforcement {
    border-left-color: #10b981;
}

.welcome-guide-progress {
    margin-bottom: 24px;
}

.welcome-guide-progress .progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.welcome-guide-progress .progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.welcome-guide-progress .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.welcome-guide-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.welcome-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.welcome-guide-btn.reinforcement {
    background: linear-gradient(135deg, #10b981, #059669);
}

.welcome-guide-btn.reinforcement:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* =====================================================
   SORU KATEGORİSİ BADGE - Zayıf/Ustalaşma/Tekrar
   ===================================================== */
.question-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.question-category-badge.weak {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.question-category-badge.mastery {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    color: #ca8a04;
    border: 1px solid #fde047;
}

.question-category-badge.review {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
    border: 1px solid #6ee7b7;
}

.question-category-badge.scanning {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    border: 1px solid #a5b4fc;
}

.question-category-badge i {
    font-size: 14px;
}

/* Konu Anlatımı Butonu (Ustalaşma/Tekrar için) */
.lesson-hint-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #7dd3fc;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
}

.lesson-hint-btn:hover {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.lesson-hint-btn i {
    font-size: 14px;
}

/* Lesson Modal Sesli Anlatım İyileştirmeleri */
.lesson-audio-controls {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
}

.lesson-audio-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
}

.lesson-audio-btn.voice {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.lesson-audio-btn.voice:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.lesson-audio-btn.silent {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.lesson-audio-btn.silent:hover {
    background: #e2e8f0;
}

/* =====================================================
   SORU GÖRSELİ STİLLERİ
   ===================================================== */
.question-image-container {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.question-image {
    max-width: 100%;
    max-height: 350px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

.question-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-zoom-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.image-zoom-hint i {
    margin-right: 4px;
}

/* Görsel Modal (Büyütme) */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

.image-modal-overlay.visible {
    display: flex;
}

.image-modal-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    animation: scaleIn 0.3s ease;
}

.image-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobilde görsel boyutu */
@media (max-width: 768px) {
    .question-image {
        max-height: 250px;
    }
    
    .image-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
