/**
 * ORION LAB - Oyun Tabanlı Test Sistemi Stilleri
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Renk Paleti - Çocuk Dostu Tema */
    --primary: #8b5cf6; /* Playful Purple */
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #10b981; /* Emerald Green */
    --accent: #f59e0b; /* Amber Orange */
    --danger: #ef4444;
    
    /* Açık Tema Tonları */
    --bg-dark: #f0f9ff; /* Light Sky Blue Background */
    --bg-card: #ffffff; /* White Cards */
    --bg-card-hover: #f8fafc; /* Very Light Gray Hover */
    --text-primary: #1e293b; /* Dark Slate Text */
    --text-secondary: #475569; /* Medium Slate Text */
    --text-muted: #94a3b8; /* Light Slate Text */
    
    /* Boyutlar */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    
    /* Gölgeler - Daha Yumuşak */
    --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.1);
    --shadow-md: 0 4px 16px rgba(139, 92, 246, 0.15);
    --shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.2);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* ===== ZEN MODE & ACCESSIBILITY ===== */
/* OpenDyslexic Font */
@font-face {
    font-family: 'OpenDyslexic';
    src: url('https://cdn.jsdelivr.net/npm/opendyslexic@1.0.3/open-dyslexic-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body.dyslexic-mode {
    font-family: 'OpenDyslexic', 'Comic Sans MS', 'Chalkboard SE', sans-serif !important;
}

body.dyslexic-mode * {
    font-family: 'OpenDyslexic', 'Comic Sans MS', 'Chalkboard SE', sans-serif !important;
    line-height: 1.6 !important;
    letter-spacing: 0.05em !important;
}

/* High Contrast Mode */
body.high-contrast {
    --primary: #000000;
    --primary-dark: #000000;
    --primary-light: #333333;
    --secondary: #000000;
    --accent: #000000;
    --danger: #000000;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-muted: #000000;
    background: #ffffff !important;
    color: #000000 !important;
}

body.high-contrast * {
    border-color: #000000 !important;
    box-shadow: none !important;
}

body.high-contrast .grid-cell,
body.high-contrast .option-card,
body.high-contrast .draggable-item,
body.high-contrast .btn-primary,
body.high-contrast .access-btn {
    border: 2px solid #000000 !important;
    color: #000000 !important;
}

body.high-contrast .btn-primary {
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: bold !important;
}

body.high-contrast .access-btn.active {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Reduced Motion */
body.reduced-motion * {
    animation: none !important;
    transition: none !important;
}

/* Zen Mode Settings Panel */
.zen-settings-btn {
    position: fixed;
    bottom: 20px; /* Changed from top to bottom to avoid conflict with lang toggle */
    right: 20px;
    z-index: 9999; /* Increased z-index significantly */
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 50px; /* Slightly larger */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease;
}

.zen-settings-btn:hover {
    transform: scale(1.1);
}
    transition: transform 0.2s;
}

.zen-settings-btn:hover {
    transform: scale(1.1);
}

.zen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.zen-modal.active {
    display: flex;
}

.zen-modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.zen-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.zen-modal-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
}

.zen-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.zen-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-card-hover);
}

.zen-option:last-child {
    border-bottom: none;
}

.zen-label {
    font-weight: 600;
    color: var(--text-primary);
}

.zen-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); /* Gradient Background */
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5; /* Reduced line height slightly */
}

/* ===== APP CONTAINER ===== */
.app-container {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
}

/* ===== SCREENS ===== */
.screen {
    display: none;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== WELCOME SCREEN ===== */
.welcome-content {
    text-align: center;
    padding: 10px 0; /* Reduced from 20px */
}

.logo-section {
    margin-bottom: 15px; /* Reduced from 30px */
}

.logo-icon {
    font-size: 48px; /* Reduced from 64px */
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); /* Reduced from -10px */ }
}

.logo-section h1 {
    font-size: 2rem; /* Reduced from 2.5rem */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 5px 0; /* Reduced from 10px */
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem; /* Reduced from 1.1rem */
}

.welcome-text {
    margin-bottom: 15px; /* Reduced from 30px */
}

.welcome-text h2 {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    margin-bottom: 5px; /* Reduced from 10px */
    color: var(--primary-dark);
}

.welcome-text p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* Game Preview */
.game-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* Reduced from 15px */
    margin: 15px 0; /* Reduced from 30px */
}

.preview-item {
    background: var(--bg-card);
    padding: 10px; /* Reduced from 15px */
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced from 12px */
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.05); /* Added subtle border */
}

.preview-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preview-icon {
    font-size: 1.2rem; /* Reduced from 1.5rem */
}

.preview-text {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    color: var(--text-primary);
    font-weight: 500;
}

/* Info Box */
.info-box {
    background: rgba(139, 92, 246, 0.1); /* Updated to match new primary */
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 10px; /* Reduced from 15px */
    margin: 15px 0; /* Reduced from 20px */
    display: flex;
    align-items: center; /* Changed from flex-start */
    gap: 10px;
    text-align: left;
}

.info-icon {
    font-size: 1.1rem; /* Reduced from 1.2rem */
    color: var(--primary);
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.85rem; /* Reduced from 0.9rem */
    margin: 0;
}

/* Form */
.form-group {
    margin: 15px 0; /* Reduced from 20px */
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px; /* Reduced from 8px */
    color: var(--text-secondary);
    font-size: 0.85rem; /* Reduced from 0.9rem */
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px 12px; /* Reduced from 14px 16px */
    background: var(--bg-card);
    border: 2px solid var(--bg-card-hover); /* Changed border */
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem; /* Reduced from 1rem */
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* ===== AGE GROUP SELECTOR ===== */
.age-group-selector {
    margin: 15px 0; /* Reduced from 24px */
}

.age-group-selector > label {
    display: block;
    text-align: center;
    margin-bottom: 10px; /* Reduced from 16px */
    color: var(--text-secondary);
    font-size: 0.9rem; /* Reduced from 1rem */
    font-weight: 600;
}

.age-group-options {
    display: flex;
    justify-content: center;
    gap: 10px; /* Reduced from 12px */
    flex-wrap: wrap;
}

.age-option {
    cursor: pointer;
}

.age-option input[type="radio"] {
    display: none;
}

.age-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px; /* Reduced from 16px 24px */
    background: var(--bg-card);
    border: 2px solid var(--bg-card-hover);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    min-width: 80px; /* Reduced from 100px */
}

.age-option input[type="radio"]:checked + .age-card {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.age-option:hover .age-card {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.age-emoji {
    font-size: 24px; /* Reduced from 32px */
    margin-bottom: 4px; /* Reduced from 8px */
}

.age-range {
    font-size: 1.1rem; /* Reduced from 1.3rem */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.age-label {
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: var(--text-secondary);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 12px 20px; /* Reduced from 16px 24px */
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    padding: 14px 24px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    color: var(--primary-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ===== GAME SCREEN ===== */
.game-header-bar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 10px 15px; /* Reduced from 15px 20px */
    margin-bottom: 15px; /* Reduced from 20px */
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px; /* Reduced from 5px */
    opacity: 0.4;
    transition: opacity 0.3s;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.8;
}

.step.completed .step-icon {
    background: var(--secondary);
}

.step-icon {
    font-size: 1.2rem; /* Reduced from 1.5rem */
    width: 40px; /* Reduced from 50px */
    height: 40px; /* Reduced from 50px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-hover);
    border-radius: 50%;
}

.step.active .step-icon {
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Game Container */
.game-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 20px; /* Reduced from 30px */
    min-height: 400px; /* Reduced from 500px */
}

/* ===== GAME COMMON STYLES ===== */
.game-header {
    text-align: center;
    margin-bottom: 15px; /* Reduced from 25px */
}

.game-header h2 {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    margin-bottom: 5px; /* Reduced from 8px */
}

.game-header p {
    color: var(--text-secondary);
    font-size: 0.9rem; /* Added font size reduction */
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 20px; /* Reduced from 30px */
    margin-bottom: 15px; /* Reduced from 25px */
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.7rem; /* Reduced from 0.75rem */
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.2rem; /* Reduced from 1.5rem */
    font-weight: 700;
    color: var(--primary-light);
}

.game-actions {
    display: flex;
    gap: 10px; /* Reduced from 15px */
    margin-top: 15px; /* Reduced from 25px */
    justify-content: center;
}

/* ===== SHAPE FINDER GAME ===== */
.shape-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.grid-row {
    display: flex;
    gap: 8px;
}

.grid-cell {
    width: 45px; /* Reduced from 60px */
    height: 45px; /* Reduced from 60px */
    background: var(--bg-card-hover);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Reduced from 1.5rem */
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.grid-cell:hover:not(.revealed) {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.grid-cell.revealed.shape {
    background: rgba(16, 185, 129, 0.3);
    border-color: var(--secondary);
    color: var(--secondary);
}

.grid-cell.revealed.empty {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: var(--danger);
    opacity: 0.6;
}

.grid-cell.hint-highlight {
    animation: hintPulse 0.5s ease 4;
}

@keyframes hintPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 20px 5px rgba(245, 158, 11, 0.8); }
}

.btn-hint {
    padding: 12px 24px;
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-hint:hover {
    background: rgba(245, 158, 11, 0.3);
}

.btn-submit {
    padding: 12px 24px;
    background: var(--secondary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shape-preview {
    margin-top: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.shape-icon {
    margin-top: 10px;
}

.mini-shape {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
}

.mini-cell {
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 3px;
}

.l-shape {
    width: 36px;
}

.i-shape {
    flex-wrap: nowrap;
}

.o-shape {
    width: 36px;
}

/* ===== LOGIC PUZZLE GAME ===== */
.hints-panel {
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 20px;
}

.hints-panel h4 {
    margin-bottom: 10px;
    color: var(--primary-light);
}

.hints-list {
    list-style: none;
}

.hint-item {
    padding: 8px 12px;
    margin: 5px 0;
    background: var(--bg-card-hover);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.hint-item:hover {
    background: rgba(99, 102, 241, 0.2);
}

.hint-item.hint-viewed {
    border-left: 3px solid var(--primary);
}

/* ========== SEMBOLİK MOD STİLLERİ (6-8 Yaş) ========== */

.symbolic-hints .hints-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.hint-item.visual-hint {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 2px solid #F59E0B;
    padding: 8px 15px; /* Reduced from 15px 25px */
    border-radius: 12px; /* Reduced from 15px */
    font-size: 1.5rem; /* Reduced from 2rem */
    text-align: center;
    min-width: 80px; /* Reduced from 120px */
}

.hint-item.visual-hint .hint-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Reduced from 10px */
    font-size: 1.8rem; /* Reduced from 2.5rem */
}

.hint-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px; /* Reduced from 5px */
}

.hint-row {
    font-size: 1.8rem; /* Reduced from 2.5rem */
    line-height: 1.1; /* Reduced from 1.2 */
}

.symbolic-mode .house {
    width: 120px; /* Reduced from 160px */
}

.symbolic-mode .house.symbolic-house .house-roof {
    font-size: 1.2rem; /* Reduced from 1.5rem */
    padding: 8px; /* Reduced from 15px */
}

.symbolic-mode .slot {
    min-height: 50px; /* Reduced from 70px */
    font-size: 1.8rem; /* Reduced from 2.5rem */
    display: flex;
    align-items: center;
    justify-content: center;
}

.symbolic-mode .placed-item {
    font-size: 1.8rem; /* Reduced from 2.5rem */
}

.symbolic-mode .symbolic-placeholder {
    font-size: 1.5rem; /* Reduced from 2rem */
    opacity: 0.5;
}

.symbolic-mode .draggable-item {
    font-size: 1.5rem; /* Reduced from 2rem */
    padding: 8px 12px; /* Reduced from 15px 20px */
    min-width: 60px; /* Reduced from 80px */
    text-align: center;
}

.symbolic-mode .pool-category {
    text-align: center;
}

.symbolic-mode .pool-items {
    display: flex;
    justify-content: center;
    gap: 10px; /* Reduced from 15px */
}

/* ========== MANTIK OYUNU TEMEL STİLLER ========== */

.logic-game-area {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced from 25px */
}

.houses-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Reduced from 15px */
}

.house {
    width: 100px; /* Reduced from 110px */
}

.house-roof {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 5px; /* Reduced from 8px */
    text-align: center;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-weight: 600;
    font-size: 0.85rem; /* Reduced from 0.9rem */
}

.house-body {
    background: var(--bg-card-hover);
    padding: 8px; /* Reduced from 10px */
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.slot {
    min-height: 35px; /* Reduced from 40px */
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed var(--text-muted);
    border-radius: var(--radius-sm);
    margin: 4px 0; /* Reduced from 6px */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slot.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
}

.slot.correct {
    border-color: var(--secondary);
    background: rgba(16, 185, 129, 0.2);
}

.slot.wrong {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.2);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.slot-label {
    font-size: 0.7rem; /* Reduced from 0.75rem */
    color: var(--text-muted);
}

.placed-item {
    padding: 6px 10px; /* Reduced from 8px 12px */
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem; /* Reduced from 0.85rem */
    cursor: pointer;
    transition: transform 0.2s;
}

.placed-item:hover {
    transform: scale(1.05);
}

.items-pool {
    background: var(--bg-card-hover);
    padding: 10px; /* Reduced from 15px */
    border-radius: var(--radius-md);
}

.items-pool h4 {
    margin-bottom: 8px; /* Reduced from 10px */
    color: var(--text-secondary);
    font-size: 0.85rem; /* Reduced from 0.9rem */
}

.pool-categories {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced from 10px */
}

.pool-category {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced from 5px */
}

.pool-title {
    font-size: 0.7rem; /* Reduced from 0.75rem */
    color: var(--text-muted);
}

.pool-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Reduced from 6px */
}

.draggable-item {
    padding: 6px 10px; /* Reduced from 8px 12px */
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    cursor: grab;
    transition: all 0.2s;
    font-size: 0.8rem; /* Reduced from 0.85rem */
    animation: bounce-intro 1.5s ease-in-out 1; /* Added bounce animation */
}

@keyframes bounce-intro {
    0% { transform: translateY(0); }
    30% { transform: translateY(-15px); }
    50% { transform: translateY(0); }
    70% { transform: translateY(-7px); }
    100% { transform: translateY(0); }
}

.draggable-item:hover:not(.used) {
    background: rgba(99, 102, 241, 0.2);
}

.draggable-item.used {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--text-muted);
}

.draggable-item.dragging {
    opacity: 0.5;
    transform: scale(1.1);
}

.btn-check {
    padding: 12px 30px;
    background: var(--secondary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.btn-reset {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--text-muted);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
}

.game-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-weight: 600;
    animation: slideUp 0.3s ease;
    z-index: 100;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===== PATTERN GAME ===== */
.pattern-question {
    text-align: center;
    margin-bottom: 10px; /* Reduced from 20px */
}

.pattern-question p {
    font-size: 1rem; /* Reduced from 1.1rem */
    color: var(--text-secondary);
}

.progress-indicator {
    background: var(--bg-card-hover);
    padding: 5px 10px; /* Reduced from 8px 15px */
    border-radius: var(--radius-sm);
    font-size: 0.8rem; /* Reduced from 0.9rem */
    color: var(--primary-light);
}

/* New Wrapper for Side-by-Side Layout */
.pattern-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    width: 100%;
}

.pattern-display {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin: 0 !important;
    padding-right: 20px;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.pattern-options {
    flex: 1;
    margin-top: 0 !important;
    padding-left: 20px;
    display: flex;
    justify-content: flex-start;
}

/* Responsive fallback */
@media (max-width: 768px) {
    .pattern-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .pattern-display {
        justify-content: center;
        padding-right: 0;
        border-right: none;
    }
    
    .pattern-options {
        justify-content: center;
        padding-left: 0;
        width: 100%;
    }
}

.rotation-sequence,
.number-sequence,
.color-sequence,
.shape-progression {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced from 15px */
}

.rotation-item,
.sequence-item,
.color-item,
.progression-item {
    width: 40px; /* Reduced from 50px */
    height: 40px; /* Reduced from 50px */
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Reduced from 1.5rem */
}

.sequence-item.question-mark,
.color-item.question-mark,
.progression-item.question-mark {
    border: 2px dashed var(--primary); /* Reduced from 3px */
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.arrow {
    font-size: 1rem; /* Reduced from 1.2rem */
    color: var(--text-muted);
}

.pattern-matrix {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Reduced from 8px */
}

.matrix-row {
    display: flex;
    gap: 5px; /* Reduced from 8px */
}

.matrix-cell {
    width: 80px; /* Increased from 40px (2x) */
    height: 80px; /* Increased from 40px (2x) */
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem; /* Increased from 1.2rem (2x) */
}

.matrix-cell.question-mark {
    border: 2px dashed var(--primary); /* Reduced from 3px */
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Color-Shape Matrix */
.color-shape-matrix {
    background: var(--bg-card);
    padding: 20px; /* Increased from 10px */
    border-radius: var(--radius-lg);
    display: inline-flex;
    flex-direction: column;
    gap: 8px; /* Increased from 4px */
    box-shadow: var(--shadow-md);
}

.color-shape-matrix .matrix-cell {
    width: 90px; /* Increased from 45px (2x) */
    height: 90px; /* Increased from 45px (2x) */
    background: var(--bg-card-hover);
    border: 2px solid var(--border-light, rgba(0,0,0,0.1));
    font-size: 3rem; /* Increased from 1.5rem (2x) */
}

.color-shape-options {
    max-width: 500px;
}

.color-shape-options .option-card {
    padding: 8px 10px; /* Reduced from 15px 12px */
}

.color-shape-options .option-content {
    font-size: 3rem; /* Increased from 1.5rem (2x) */
    line-height: 1;
    display: block;
}

.pattern-options {
    margin-top: 10px; /* Reduced from 20px */
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 350px;
    /* margin: 0 auto; Removed to allow left alignment in flex container */
}

@media (max-width: 768px) {
    .options-grid {
        margin: 0 auto; /* Center on mobile */
    }
}

.option-card {
    padding: 5px; /* Reduced padding to keep button size similar while icon grows */
    background: var(--bg-card-hover);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    height: 80px; /* Fixed height to control button size */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.option-card:hover {
    border-color: var(--primary);
}

.option-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
}

.option-card.correct {
    border-color: var(--secondary);
    background: rgba(16, 185, 129, 0.3);
}

.option-card.wrong {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.2);
}

.option-letter {
    display: block;
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: var(--text-muted);
    margin-bottom: 3px; /* Reduced from 5px */
}

.option-content {
    font-size: 1.2rem; /* Reduced from 1.5rem */
}

.btn-confirm {
    padding: 10px 30px; /* Reduced from 12px 40px */
    background: var(--secondary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== MEMORY GAME ===== */
.mode-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* Reduced from 20px */
    margin: 20px 0; /* Reduced from 30px */
}

.mode-card {
    padding: 20px 15px; /* Reduced from 30px 20px */
    background: var(--bg-card-hover);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.mode-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px); /* Reduced from -5px */
}

.mode-icon {
    font-size: 2.5rem; /* Reduced from 3rem */
    margin-bottom: 10px; /* Reduced from 15px */
}

.mode-card h3 {
    margin-bottom: 5px; /* Reduced from 10px */
    font-size: 1.1rem; /* Added font size reduction */
}

.mode-card p {
    color: var(--text-secondary);
    font-size: 0.85rem; /* Reduced from 0.9rem */
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; /* Reduced from 12px */
    max-width: 300px; /* Reduced from 350px */
    margin: 0 auto;
}

.memory-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.memory-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.2rem; /* Reduced from 1.5rem */
}

.card-front {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.card-back {
    background: var(--bg-card-hover);
    transform: rotateY(180deg);
    font-size: 1.5rem; /* Reduced from 2rem */
}

.memory-card.matched .card-inner {
    transform: rotateY(180deg);
}

.memory-card.matched .card-back {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid var(--secondary);
}

/* Sequence Game */
.sequence-status {
    text-align: center;
    font-size: 1rem; /* Reduced from 1.2rem */
    color: var(--primary-light);
    margin: 10px 0; /* Reduced from 20px */
}

.sequence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* Reduced from 15px */
    max-width: 250px; /* Reduced from 300px */
    margin: 0 auto;
}

.sequence-btn {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Reduced from 2rem */
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.sequence-btn.active {
    opacity: 1;
    transform: scale(1.05); /* Reduced from 1.1 */
    box-shadow: 0 0 20px currentColor; /* Reduced from 30px */
}

.sequence-btn.clicked {
    transform: scale(0.95);
}

.sequence-progress {
    margin-top: 15px; /* Reduced from 20px */
    height: 6px; /* Reduced from 8px */
    background: var(--bg-card-hover);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--secondary);
    transition: width 0.3s ease;
}

/* ===== GAME RESULT ===== */
.game-result {
    text-align: center;
    padding: 20px; /* Reduced from 30px */
}

.game-result .result-icon {
    font-size: 3rem; /* Reduced from 4rem */
    margin-bottom: 10px; /* Reduced from 15px */
}

.game-result h3 {
    font-size: 1.4rem; /* Reduced from 1.8rem */
    margin-bottom: 5px; /* Reduced from 10px */
}

.game-result p {
    color: var(--text-secondary);
    margin-bottom: 15px; /* Reduced from 25px */
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
}

.result-stat .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.result-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.result-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-next-game {
    padding: 10px 30px; /* Reduced from 14px 40px */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-next-game:hover {
    transform: translateY(-3px);
}

/* ===== PROCESSING SCREEN ===== */
.processing-content {
    text-align: center;
    padding: 30px 15px; /* Reduced from 50px 20px */
}

.processing-animation {
    position: relative;
    width: 100px; /* Reduced from 150px */
    height: 100px; /* Reduced from 150px */
    margin: 0 auto 20px; /* Reduced from 30px */
}

.brain-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem; /* Reduced from 4rem */
    z-index: 2;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.processing-rings {
    position: absolute;
    inset: 0;
}

.ring {
    position: absolute;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.ring-1 {
    inset: 0;
    animation-duration: 2s;
}

.ring-2 {
    inset: 10px; /* Reduced from 15px */
    border-top-color: var(--secondary);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.ring-3 {
    inset: 20px; /* Reduced from 30px */
    border-top-color: var(--accent);
    animation-duration: 1s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-content h2 {
    margin-bottom: 20px; /* Reduced from 30px */
    color: var(--primary-light);
    font-size: 1.3rem; /* Added font size reduction */
}

.processing-steps {
    max-width: 250px; /* Reduced from 300px */
    margin: 0 auto;
}

.p-step {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced from 12px */
    padding: 8px; /* Reduced from 12px */
    margin: 5px 0; /* Reduced from 8px */
    background: var(--bg-card);
    border-radius: var(--radius-md);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.p-step.active {
    opacity: 1;
}

.p-step.completed {
    opacity: 0.7;
}

.p-step.completed .p-icon {
    color: var(--secondary);
}

.p-icon {
    font-size: 1rem; /* Reduced from 1.2rem */
}

.p-text {
    color: var(--text-secondary);
    font-size: 0.85rem; /* Reduced from 0.9rem */
}

/* ===== RESULTS SCREEN ===== */
.results-container {
    padding-bottom: 20px; /* Reduced from 40px */
}

.results-header {
    text-align: center;
    margin-bottom: 20px; /* Reduced from 30px */
}

.results-header h1 {
    font-size: 1.6rem; /* Reduced from 2rem */
    margin-bottom: 5px; /* Reduced from 10px */
}

#student-display {
    color: var(--text-secondary);
    font-size: 0.9rem; /* Added font size reduction */
}

/* Archetype Card */
.archetype-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.1));
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 20px; /* Reduced from 30px */
    text-align: center;
    margin-bottom: 15px; /* Reduced from 25px */
}

.archetype-icon {
    font-size: 3rem; /* Reduced from 4rem */
    margin-bottom: 10px; /* Reduced from 15px */
}

.archetype-card h2 {
    font-size: 1.4rem; /* Reduced from 1.8rem */
    margin-bottom: 5px; /* Reduced from 10px */
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#archetype-desc {
    color: var(--text-secondary);
    margin-bottom: 15px; /* Reduced from 20px */
    font-size: 0.9rem; /* Added font size reduction */

}

.archetype-traits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
}

.trait-section h4 {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.trait-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trait-tag {
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* Skills Section */
.skills-section,
.holland-section,
.grit-section,
.insights-section,
.careers-section,
.games-summary {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 20px;
}

.skills-section h3,
.holland-section h3,
.grit-section h3,
.insights-section h3,
.careers-section h3,
.games-summary h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.chart-container {
    max-width: 350px;
    margin: 0 auto;
}

/* Holland Bars */
.holland-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.holland-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.holland-label {
    width: 30px;
    font-weight: 600;
    color: var(--primary-light);
}

.holland-name {
    width: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bar-container {
    flex: 1;
    height: 20px;
    background: var(--bg-card-hover);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.bar-fill.R { background: linear-gradient(90deg, #f97316, #ea580c); }
.bar-fill.I { background: linear-gradient(90deg, #6366f1, #4f46e5); }
.bar-fill.A { background: linear-gradient(90deg, #a855f7, #9333ea); }
.bar-fill.S { background: linear-gradient(90deg, #10b981, #059669); }
.bar-fill.E { background: linear-gradient(90deg, #f59e0b, #d97706); }
.bar-fill.C { background: linear-gradient(90deg, #06b6d4, #0891b2); }

.bar-value {
    width: 40px;
    text-align: right;
    font-weight: 600;
}

.holland-profile {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    text-align: center;
}

.holland-profile .profile-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 4px;
}

/* Grit Section */
.grit-display {
    text-align: center;
    margin-bottom: 20px;
}

.grit-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary);
}

.grit-level {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.grit-components {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.grit-component {
    padding: 15px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
}

.grit-component .comp-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.grit-component .comp-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Insights */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-item {
    padding: 15px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.insight-item.positive {
    border-left-color: var(--secondary);
}

.insight-item.developmental {
    border-left-color: var(--accent);
}

.insight-text {
    color: var(--text-secondary);
}

.insight-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Careers */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.career-card {
    padding: 15px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.2s;
}

.career-card:hover {
    transform: translateY(-3px);
}

.career-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.career-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Games Summary */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.game-summary-card {
    padding: 15px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
}

.game-summary-card .game-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.game-summary-card .game-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.score-tag {
    padding: 4px 8px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 10px; /* Reduced from 15px */
    margin-top: 20px; /* Reduced from 30px */
}

.results-actions button {
    flex: 1;
}

/* ============================================
   DETAYLI KARİYER ÖNERİLERİ STİLLERİ
   ============================================ */

/* Ana Kariyer Bölümü */
.career-primary-section {
    margin-bottom: 20px; /* Reduced from 32px */
}

.career-section-header {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced from 12px */
    margin-bottom: 5px; /* Reduced from 8px */
}

.career-section-header .section-icon {
    font-size: 1.3rem; /* Reduced from 1.5rem */
}

.career-section-header h3 {
    font-size: 1.2rem; /* Reduced from 1.4rem */
    font-weight: 600;
    color: var(--text-primary);
}

.career-section-subtitle {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    color: var(--text-muted);
    margin-bottom: 15px; /* Reduced from 20px */

}

/* Ana Kariyer Kartı */
.primary-career-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.career-main-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.career-emoji {
    font-size: 3rem;
    line-height: 1;
}

.career-title-area h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.match-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary) 0%, #7c3aed 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.primary-career-card > .career-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Neden Bu Kariyer? Bölümü */
.why-career-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
}

.why-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.why-icon {
    font-size: 1.3rem;
}

.why-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.why-reasons-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.why-reason-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 16px;
    border-left: 3px solid var(--secondary);
    transition: all 0.3s ease;
}

.why-reason-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.why-reason-item.strong {
    border-left-color: var(--primary);
}

.reason-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.reason-check {
    width: 24px;
    height: 24px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.reason-trait {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.reason-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Alternatif Kariyer Yolları */
.career-alternatives-section {
    margin-top: 32px;
}

.alternatives-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.alternative-career-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.alternative-career-card:hover {
    border-color: var(--primary-light);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.alt-career-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.alt-emoji {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.alt-info {
    flex: 1;
}

.alt-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.alt-reason {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.alt-match-badge {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Holland Tipi Bilgisi */
.holland-career-info {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.holland-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.holland-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.holland-code {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 3px;
}

.holland-interpretation {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .app-container {
        padding: 15px;
    }
    
    .logo-section h1 {
        font-size: 2rem;
    }
    
    .game-preview {
        grid-template-columns: 1fr;
    }
    
    .houses-container {
        flex-direction: column;
        align-items: center;
    }
    
    .house {
        width: 100%;
        max-width: 200px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .mode-selection {
        grid-template-columns: 1fr;
    }
    
    .archetype-traits {
        grid-template-columns: 1fr;
    }
    
    .grit-components {
        grid-template-columns: 1fr;
    }
    
    .careers-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    /* Kariyer responsive */
    .career-main-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .alt-career-header {
        flex-wrap: wrap;
    }
    
    .alt-match-badge {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
    
    .sub-fields-container {
        grid-template-columns: 1fr;
    }
    
    .job-header {
        flex-wrap: wrap;
    }
}

/* ============================================
   3 ANA ALAN + ALT DALLAR KARİYER STİLLERİ
   ============================================ */

.career-areas-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Ana Kariyer Alanı Kartı */
.career-area-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-normal);
}

.career-area-card.primary-area {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-card) 100%);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Alan Başlığı */
.area-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.area-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.area-icon {
    font-size: 2rem;
}

.area-title h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.top-match-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.area-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Alt Dallar Container */
.sub-fields-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* Alt Dal Kartı */
.sub-field-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition-normal);
}

.sub-field-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-light);
}

.sub-field-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-field-icon {
    font-size: 1.4rem;
}

.sub-field-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
    margin: 0;
}

/* Meslekler Listesi */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: var(--transition-fast);
}

.job-item:hover {
    background: rgba(0, 0, 0, 0.3);
}

.job-item.top-job {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--secondary);
}

.job-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.job-rank {
    width: 22px;
    height: 22px;
    background: var(--bg-card-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.job-item.top-job .job-rank {
    background: var(--secondary);
    color: white;
}

.job-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.job-match {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.job-item.top-job .job-match {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
}

.job-reason {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Profil Bilgisi */
.career-profile-info {
    margin-top: 20px;
    padding: 16px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* Neuro Metrics Section */
.neuro-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.neuro-metric-item {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.neuro-metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.neuro-metric-label {
    font-weight: 600;
    color: var(--text-primary);
}

.neuro-metric-value {
    font-weight: 700;
    color: var(--primary);
}

.neuro-metric-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.neuro-metric-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.neuro-metric-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}


/* Neuro-Inclusive Accessibility Bar */
.neuro-access-bar {
    position: absolute; /* Changed from fixed to absolute to stay within welcome screen */
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.access-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid transparent;
    user-select: none; /* Prevent text selection */
}

.access-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.access-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.access-icon {
    font-size: 16px;
}

/* Mobile Responsive for Access Bar */
@media (max-width: 768px) {
    .neuro-access-bar {
        top: auto;
        bottom: 20px;
        width: 90%;
        justify-content: space-around;
    }
    
    .access-label {
        display: none;
    }
    
    .access-btn {
        padding: 10px;
        border-radius: 50%;
    }
}


/* Compact Layout for Welcome Screen */
.welcome-content.compact-mode {
    max-width: 1000px;
    padding: 1rem;
}

.welcome-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1rem;
}

.welcome-left-col {
    text-align: left;
}

.welcome-right-col {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.welcome-content.compact-mode .logo-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.welcome-content.compact-mode .welcome-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.welcome-content.compact-mode .welcome-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.welcome-content.compact-mode .game-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.welcome-content.compact-mode .preview-item {
    padding: 0.8rem;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-grid-layout {
        grid-template-columns: 1fr;
    }
}


/* Allow wider container for compact mode */
@media (min-width: 1024px) {
    .app-container {
        max-width: 1000px;
    }
}


/* ========================================== */
/* COMPACT GAME LAYOUT (NO SCROLL)            */
/* ========================================== */

@media (min-width: 1024px) {
    /* 1. Main Screen Layout: Sidebar + Content */
    #screen-games.screen.active {
        display: flex !important;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        height: calc(100vh - 40px); /* Full viewport height minus padding */
        overflow: hidden; /* Prevent outer scroll */
    }

    /* 2. Sidebar (Progress Bar) */
    .game-header-bar {
        width: 120px; /* Slim sidebar */
        height: 100%;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 0;
        padding: 10px;
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        overflow-y: auto;
    }

    .progress-steps {
        flex-direction: column;
        gap: 20px;
        height: 100%;
        justify-content: center;
    }

    .step {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .step-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }

    /* 3. Game Container (Right Side) */
    .game-container {
        flex-grow: 1;
        height: 100%;
        overflow-y: auto; /* Scroll inside if needed */
        padding: 15px;
        display: flex;
        flex-direction: column;
    }

    /* 4. Logic Puzzle Specific: Side-by-Side Layout */
    .logic-game-area {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        flex-wrap: wrap;
    }

    .houses-container {
        flex: 2;
        min-width: 300px;
    }

    .items-pool {
        flex: 1;
        min-width: 200px;
        margin-top: 0;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    /* Hints Section Compact */
    .hints-panel {
        /* max-height removed to show all clues */
        margin-bottom: 10px;
        background: rgba(139, 92, 246, 0.05);
        padding: 10px;
        border-radius: var(--radius-md);
    }
    
    .hints-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding-left: 0;
        list-style: none;
    }
    
    .hint-item {
        flex: 1 1 30%; /* Three columns of hints to save vertical space */
        font-size: 0.85rem;
        padding: 5px;
        background: white;
        border-radius: var(--radius-sm);
        border: 1px solid var(--bg-card-hover);
    }
    
    /* Adjust Game Header to be more compact */
    .game-header {
        margin-bottom: 10px;
    }
    
    .game-header h2 {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .game-stats {
        margin-bottom: 10px;
        gap: 15px;
    }
    
    .stat-value {
        font-size: 1rem;
    }
}


    /* Memory Game Fix for Desktop */
    .card-grid {
        width: 100%;
        max-width: 400px; /* Increased from 300px for better visibility */
        margin: 20px auto;
        gap: 15px;
        display: grid; /* Re-assert grid */
        grid-template-columns: repeat(4, 1fr);
    }
    
    .memory-card {
        aspect-ratio: 1 / 1;
        width: 100%; /* Ensure it fills the grid cell */
    }
    
    .card-front, .card-back {
        font-size: 2rem; /* Larger icons for desktop */
    }

