/* ===== VAN 112 İnteraktif Eğitim - CSS ===== */
:root {
    --primary: #dc2626; --primary-dark: #b91c1c;
    --dark: #0f172a; --dark-light: #1e293b; --dark-lighter: #334155;
    --white: #ffffff; --gray: #64748b; --gray-light: #94a3b8;
    --success: #10b981; --warning: #f59e0b; --info: #3b82f6;
    --gradient-1: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-primary: #0f172a; --bg-secondary: #1e293b; --bg-card: #1e293b;
    --text-primary: #ffffff; --text-secondary: #94a3b8;
    --border-color: rgba(255,255,255,0.1);
    --shadow: 0 10px 40px rgba(0,0,0,0.3);
    --radius: 16px;
}
[data-theme="light"] {
    --bg-primary: #f8fafc; --bg-secondary: #ffffff; --bg-card: #ffffff;
    --text-primary: #1e293b; --text-secondary: #64748b;
    --border-color: #e2e8f0; --shadow: 0 10px 40px rgba(0,0,0,0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* Animated BG */
.animated-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.floating-shape {
    position: absolute; border-radius: 50%;
    background: var(--gradient-1); opacity: 0.05;
    animation: float 20s infinite ease-in-out;
}
.shape-1 { width: 500px; height: 500px; top: -150px; right: -150px; }
.shape-2 { width: 300px; height: 300px; bottom: -100px; left: -100px; animation-delay: -7s; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 30%; animation-delay: -14s; background: var(--gradient-2); }
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--bg-secondary); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}
.header .container {
    max-width: 1400px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.back-link {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-secondary); text-decoration: none;
    padding: 8px 16px; border-radius: 20px;
    background: var(--bg-primary); transition: all 0.3s;
}
.back-link:hover { color: var(--primary); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 45px; height: 45px; background: var(--gradient-1);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 20px; color: white;
}
.logo-title { font-size: 18px; font-weight: 700; }
.logo-subtitle { font-size: 11px; color: var(--text-secondary); }
.header-right { display: flex; align-items: center; gap: 20px; }
.user-stats { display: flex; gap: 12px; }
.user-stat {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; background: var(--bg-primary);
    border-radius: 20px; font-size: 13px; font-weight: 500;
}
.user-stat i { color: var(--primary); }
.user-stat.streak i { color: #f59e0b; }
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-primary); border: none;
    color: var(--text-primary); cursor: pointer; transition: all 0.3s;
}
.theme-toggle:hover { transform: scale(1.1); }

/* Main */
.main-content {
    max-width: 1400px; margin: 0 auto;
    padding: 90px 24px 40px; position: relative; z-index: 1;
}

/* Welcome Card */
.welcome-card {
    background: var(--gradient-1); border-radius: var(--radius);
    padding: 30px; display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 30px; color: white;
}
.welcome-content h1 { font-size: 1.8rem; margin-bottom: 8px; }
.welcome-content h1 i { margin-right: 10px; }
.welcome-content p { opacity: 0.9; }
.welcome-stats { display: flex; gap: 30px; }
.ws-item { display: flex; align-items: center; gap: 12px; }
.ws-icon {
    width: 50px; height: 50px; background: rgba(255,255,255,0.2);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 20px;
}
.ws-value { font-size: 24px; font-weight: 700; display: block; }
.ws-label { font-size: 12px; opacity: 0.8; }

/* Progress Overview */
.progress-overview {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 24px; margin-bottom: 30px; border: 1px solid var(--border-color);
}
.progress-overview h3 { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.progress-overview h3 i { color: var(--primary); }
.level-progress { margin-bottom: 20px; }
.level-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.progress-bar { height: 12px; background: var(--bg-primary); border-radius: 6px; overflow: hidden; }
.progress-fill {
    height: 100%; background: var(--gradient-1); border-radius: 6px;
    transition: width 0.5s ease;
}
.category-progress { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.cat-prog-item {
    background: var(--bg-primary); padding: 12px; border-radius: 10px;
    display: flex; align-items: center; gap: 10px;
}
.cat-prog-item i { font-size: 18px; color: var(--primary); }
.cat-prog-info { flex: 1; }
.cat-prog-name { font-size: 12px; color: var(--text-secondary); }
.cat-prog-bar { height: 4px; background: var(--border-color); border-radius: 2px; margin-top: 4px; }
.cat-prog-fill { height: 100%; background: var(--success); border-radius: 2px; }

/* Filters */
.filter-section {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; flex-wrap: wrap; gap: 15px;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
    padding: 10px 20px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: 25px;
    color: var(--text-secondary); cursor: pointer;
    font-family: inherit; font-size: 13px; transition: all 0.3s;
    display: flex; align-items: center; gap: 6px;
}
.filter-tab:hover, .filter-tab.active {
    background: var(--primary); color: white; border-color: var(--primary);
}
.filter-difficulty select {
    padding: 10px 15px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: 10px;
    color: var(--text-primary); font-family: inherit;
}

/* Training Grid */
.training-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}
.training-card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border-color); overflow: hidden;
    cursor: pointer; transition: all 0.3s; position: relative;
}
.training-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.training-card.completed::after {
    content: '✓'; position: absolute; top: 15px; right: 15px;
    width: 30px; height: 30px; background: var(--success);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: white; font-weight: bold;
}
.card-header {
    padding: 20px; display: flex; align-items: center; gap: 15px;
    background: linear-gradient(135deg, rgba(220,38,38,0.1), transparent);
}
.card-icon {
    width: 55px; height: 55px; background: var(--gradient-1);
    border-radius: 14px; display: flex; align-items: center;
    justify-content: center; font-size: 22px; color: white;
}
.card-info h3 { font-size: 1rem; margin-bottom: 4px; }
.card-info p { font-size: 12px; color: var(--text-secondary); }
.card-body { padding: 0 20px 20px; }
.card-meta { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.meta-tag {
    padding: 5px 12px; border-radius: 15px; font-size: 11px; font-weight: 500;
}
.meta-tag.easy { background: rgba(16,185,129,0.15); color: #10b981; }
.meta-tag.medium { background: rgba(245,158,11,0.15); color: #f59e0b; }
.meta-tag.hard { background: rgba(239,68,68,0.15); color: #ef4444; }
.meta-tag.type { background: var(--bg-primary); color: var(--text-secondary); }
.card-progress { margin-bottom: 12px; }
.card-progress-bar { height: 6px; background: var(--bg-primary); border-radius: 3px; }
.card-progress-fill { height: 100%; background: var(--gradient-1); border-radius: 3px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-xp { font-size: 13px; color: var(--primary); font-weight: 600; }
.card-stars { color: #ffc107; font-size: 14px; }

/* Training Area */
.training-area { animation: slideIn 0.4s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } }
.training-header { text-align: center; margin-bottom: 25px; }
.back-btn {
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-primary); padding: 10px 20px; border-radius: 25px;
    cursor: pointer; font-family: inherit; margin-bottom: 15px;
    display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s;
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }
.training-title h2 { font-size: 1.6rem; margin-bottom: 5px; }
.training-title h2 i { margin-right: 10px; color: var(--primary); }
.training-title p { color: var(--text-secondary); }

/* Stats Bar */
.stats-bar {
    display: flex; justify-content: center; gap: 20px;
    margin-bottom: 30px; flex-wrap: wrap;
}
.stats-bar .stat-item {
    background: var(--bg-card); padding: 15px 25px;
    border-radius: 12px; display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--border-color);
}
.stats-bar .stat-item i { font-size: 20px; color: var(--primary); }
.stat-content { text-align: left; }
.stat-label { display: block; font-size: 11px; color: var(--text-secondary); }
.stat-value { font-size: 18px; font-weight: 700; }

/* Sorting Training */
.sorting-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 25px; }
.sorting-column {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 20px; border: 1px solid var(--border-color);
}
.column-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 15px; font-weight: 600;
}
.column-header i { color: var(--primary); }
.hint-btn { margin-left: auto; cursor: pointer; color: #f59e0b; }
.steps-container, .slots-container { display: flex; flex-direction: column; gap: 10px; }
.step-item {
    background: var(--gradient-1); color: white;
    padding: 14px 18px; border-radius: 10px; cursor: grab;
    transition: all 0.3s; user-select: none;
}
.step-item:hover { transform: scale(1.02); }
.step-item.selected { box-shadow: 0 0 0 3px #ffc107; }
.step-item.placed { opacity: 0.4; cursor: default; }
.slot {
    background: var(--bg-primary); border: 2px dashed var(--border-color);
    padding: 14px 18px; border-radius: 10px; min-height: 52px;
    display: flex; align-items: center; gap: 12px; transition: all 0.3s;
}
.slot-num {
    width: 28px; height: 28px; background: var(--gradient-1);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: white; font-weight: 600; font-size: 13px;
}
.slot.filled { border-style: solid; border-color: var(--success); background: rgba(16,185,129,0.1); }
.slot.wrong { border-color: #ef4444; background: rgba(239,68,68,0.1); }
.training-actions { display: flex; justify-content: center; gap: 15px; }
.action-btn {
    padding: 12px 28px; border-radius: 25px; font-family: inherit;
    font-weight: 600; cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; gap: 8px; border: none;
}
.action-btn.hint { background: rgba(245,158,11,0.15); color: #f59e0b; }
.action-btn.check { background: var(--success); color: white; }
.action-btn.reset { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); }
.action-btn:hover { transform: scale(1.05); }

/* Quiz */
.quiz-container { max-width: 700px; margin: 0 auto; }
.quiz-progress { margin-bottom: 25px; text-align: center; }
.quiz-progress-bar { height: 8px; background: var(--bg-card); border-radius: 4px; margin-bottom: 10px; }
.quiz-progress-fill { height: 100%; background: var(--gradient-1); border-radius: 4px; transition: width 0.3s; }
.question-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 30px; border: 1px solid var(--border-color);
}
.question-text { font-size: 1.2rem; margin-bottom: 25px; line-height: 1.6; }
.options-grid { display: flex; flex-direction: column; gap: 12px; }
.option-btn {
    padding: 16px 20px; background: var(--bg-primary);
    border: 2px solid var(--border-color); border-radius: 12px;
    text-align: left; cursor: pointer; transition: all 0.3s;
    font-family: inherit; font-size: 15px; color: var(--text-primary);
}
.option-btn:hover { border-color: var(--primary); }
.option-btn.selected { border-color: var(--primary); background: rgba(220,38,38,0.1); }
.option-btn.correct { border-color: var(--success); background: rgba(16,185,129,0.15); }
.option-btn.wrong { border-color: #ef4444; background: rgba(239,68,68,0.1); }
.quiz-nav { display: flex; justify-content: center; gap: 15px; margin-top: 25px; }
.quiz-nav-btn {
    padding: 12px 25px; border-radius: 25px; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-primary);
    cursor: pointer; font-family: inherit; transition: all 0.3s;
}
.quiz-nav-btn.primary { background: var(--gradient-1); color: white; border: none; }

/* Match */
.match-container { display: flex; gap: 30px; justify-content: center; align-items: flex-start; }
.match-column { display: flex; flex-direction: column; gap: 12px; }
.match-item {
    padding: 14px 20px; border-radius: 10px; cursor: pointer;
    transition: all 0.3s; min-width: 250px; text-align: center;
}
.match-column.left .match-item { background: var(--gradient-1); color: white; }
.match-column.right .match-item { background: var(--bg-card); border: 2px solid var(--border-color); }
.match-item.selected { box-shadow: 0 0 0 3px #ffc107; }
.match-item.matched { opacity: 0.5; pointer-events: none; }

/* Scenario */
.scenario-container { max-width: 800px; margin: 0 auto; }
.scenario-scene {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 30px; margin-bottom: 25px; border: 1px solid var(--border-color);
}
.patient-card { text-align: center; }
.scenario-question {
    font-size: 1.2rem; text-align: center; margin-bottom: 20px;
    padding: 20px; background: rgba(220,38,38,0.1); border-radius: 12px;
}
.scenario-options { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.scenario-option {
    padding: 20px; background: var(--bg-card); border: 2px solid var(--border-color);
    border-radius: 12px; cursor: pointer; transition: all 0.3s; text-align: center;
}
.scenario-option:hover { border-color: var(--primary); }

/* Result Modal */
.result-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    display: none; align-items: center; justify-content: center; z-index: 1000;
}
.result-modal.show { display: flex; }
.result-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 40px; text-align: center; max-width: 450px; width: 90%;
    animation: popIn 0.4s ease;
}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } }
.result-header { margin-bottom: 25px; }
.result-icon { font-size: 50px; color: #ffc107; margin-bottom: 15px; }
.result-stars { font-size: 40px; margin-bottom: 25px; }
.result-stars i { color: #ddd; margin: 0 5px; }
.result-stars i.active { color: #ffc107; }
.result-stats { display: flex; justify-content: center; gap: 30px; margin-bottom: 25px; }
.result-stat { text-align: center; }
.rs-label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 5px; }
.rs-value { font-size: 24px; font-weight: 700; }
.rs-value.xp { color: var(--success); }
.result-actions { display: flex; gap: 12px; justify-content: center; }
.result-btn {
    padding: 12px 24px; border-radius: 25px; border: none;
    cursor: pointer; font-family: inherit; font-weight: 600; transition: all 0.3s;
}
.result-btn.secondary { background: var(--bg-primary); color: var(--text-primary); }
.result-btn.primary { background: var(--gradient-1); color: white; }
.result-btn.success { background: var(--success); color: white; }

/* Toast */
.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 1100; }
.toast {
    background: var(--bg-card); padding: 15px 25px; border-radius: 12px;
    margin-top: 10px; display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow); animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--success);
}
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } }
.toast.error { border-color: #ef4444; }
.toast.warning { border-color: #f59e0b; }

/* Drag & Drop */
.step-item.dragging { opacity: 0.5; cursor: grabbing; }
.slot.drag-over { background: rgba(220,38,38,0.1); border-color: var(--primary); }
.match-item.dragging { opacity: 0.5; transform: scale(1.05); }
.match-column.drag-over { background: rgba(220,38,38,0.05); }

/* Mobile Optimizations */
@media (max-width: 900px) {
    .welcome-card { flex-direction: column; text-align: center; gap: 20px; }
    .welcome-stats { flex-direction: column; width: 100%; }
    .ws-item { justify-content: center; }
    .sorting-columns { grid-template-columns: 1fr; }
    .match-container { flex-direction: column; align-items: stretch; }
    .match-column { width: 100%; }
    .scenario-options { grid-template-columns: 1fr; }
    .result-stats { flex-direction: column; gap: 15px; }
    .result-actions { flex-direction: column; }
    .result-btn { width: 100%; }
}
@media (max-width: 768px) {
    .header .container { height: auto; padding: 12px 15px; flex-wrap: wrap; gap: 10px; }
    .logo { order: 1; }
    .back-link { order: 2; font-size: 13px; padding: 6px 12px; }
    .header-right { order: 3; width: 100%; justify-content: space-between; margin-top: 10px; }
    .user-stats { flex-wrap: wrap; gap: 8px; }
    .user-stat { font-size: 11px; padding: 6px 10px; }
    .main-content { padding: 140px 15px 30px; }
    .welcome-card { padding: 20px; }
    .welcome-content h1 { font-size: 1.3rem; }
    .ws-icon { width: 40px; height: 40px; font-size: 16px; }
    .ws-value { font-size: 20px; }
    .filter-section { flex-direction: column; align-items: stretch; }
    .filter-tabs { justify-content: center; }
    .filter-difficulty { width: 100%; }
    .filter-difficulty select { width: 100%; }
    .training-grid { grid-template-columns: 1fr; gap: 15px; }
    .training-header { margin-bottom: 20px; }
    .training-title h2 { font-size: 1.3rem; }
    .stats-bar { gap: 8px; }
    .stats-bar .stat-item { padding: 10px 12px; flex: 1; min-width: 0; }
    .stat-content { min-width: 0; }
    .stat-label { font-size: 10px; }
    .stat-value { font-size: 14px; }
    .sorting-columns { gap: 20px; }
    .column-header { font-size: 14px; }
    .step-item, .slot { padding: 12px 14px; font-size: 13px; }
    .training-actions { flex-wrap: wrap; }
    .action-btn { flex: 1; min-width: 120px; padding: 10px 20px; font-size: 13px; }
    .quiz-container { padding: 0; }
    .question-card { padding: 20px; }
    .question-text { font-size: 1rem; }
    .option-btn { padding: 12px 16px; font-size: 14px; }
    .match-item { min-width: 100%; padding: 12px 16px; font-size: 14px; }
    .scenario-container { padding: 0; }
    .scenario-scene { padding: 20px; }
    .scenario-question { font-size: 1rem; padding: 15px; }
    .scenario-options { gap: 10px; }
    .scenario-option { padding: 15px; font-size: 14px; }
    .result-card { padding: 25px; width: 95%; }
    .result-icon { font-size: 40px; }
    .result-card h2 { font-size: 1.5rem; }
    .result-stars { font-size: 30px; }
    .toast-container { bottom: 20px; right: 15px; left: 15px; }
    .toast { margin-top: 8px; padding: 12px 18px; font-size: 13px; }
}
@media (max-width: 480px) {
    .logo-text { display: none; }
    .back-link span { display: none; }
    .user-stats { display: none; }
    .theme-toggle { width: 36px; height: 36px; }
    .main-content { padding: 90px 10px 20px; }
    .welcome-card { padding: 15px; }
    .welcome-content h1 { font-size: 1.1rem; }
    .welcome-content p { font-size: 13px; }
    .ws-item { flex-direction: column; text-align: center; gap: 8px; }
    .progress-overview { padding: 15px; }
    .category-progress { grid-template-columns: 1fr; }
    .filter-tab { padding: 8px 14px; font-size: 12px; }
    .card-header { padding: 15px; }
    .card-icon { width: 45px; height: 45px; font-size: 18px; }
    .card-info h3 { font-size: 0.9rem; }
    .card-body { padding: 0 15px 15px; }
    .training-title h2 { font-size: 1.1rem; }
    .stats-bar { flex-direction: column; width: 100%; }
    .stats-bar .stat-item { width: 100%; justify-content: space-between; }
    .step-item, .slot { padding: 10px 12px; font-size: 12px; }
    .slot-num { width: 24px; height: 24px; font-size: 11px; }
    .action-btn { min-width: 100px; padding: 8px 16px; font-size: 12px; }
    .question-text { font-size: 0.9rem; }
    .option-btn { padding: 10px 14px; font-size: 13px; }
    .result-card { padding: 20px; }
    .result-icon { font-size: 35px; }
    .result-card h2 { font-size: 1.3rem; }
    .result-stars { font-size: 25px; margin-bottom: 20px; }
    .rs-value { font-size: 20px; }
    .result-btn { padding: 10px 20px; font-size: 13px; }
}
