/* ========================================
   REHBERLIK AKADEMİ - MODERN DESIGN
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #0f172a;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #06b6d4;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition-fast: 150ms;
    --transition-normal: 250ms;
    --transition-slow: 350ms;
}

/* Google Fonts - Distinctive Typography */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* General Styles */
body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Navbar Styles */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Card Styles */
.card {
    border-radius: 1rem;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 2rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    box-shadow: 0 4px 6px rgba(var(--bs-primary-rgb), 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 8px rgba(var(--bs-primary-rgb), 0.3);
}

/* Badge Styles */
.badge {
    padding: 0.6em 1em;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 1rem;
}

/* Hero Section */
.hero-icon {
    font-size: 8rem;
    opacity: 0.1;
    position: absolute;
    right: -2rem;
    bottom: -2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Custom Shadows */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

.shadow {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

/* ========================================
   TEST PAGE STYLES
   ======================================== */

/* Test Container */
.test-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Test Header */
.test-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.test-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.test-header h1 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.test-header .test-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Timer */
.test-timer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', monospace;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-timer svg {
    width: 18px;
    height: 18px;
}

/* Progress Bar */
.test-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.test-progress-bar {
    height: 100%;
    background: white;
    border-radius: 3px;
    transition: width var(--transition-normal) ease;
    width: 0%;
}

/* Question Card */
.question-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.question-card:hover {
    box-shadow: var(--shadow-lg);
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.75rem;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.answer-option {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border-color);
    transition: all var(--transition-fast);
}

.answer-option:hover {
    border-color: var(--primary-light);
    background: white;
    transform: translateX(4px);
}

.answer-option:hover::before {
    background: var(--primary-color);
}

.answer-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
}

.answer-option.selected::before {
    background: var(--primary-color);
    width: 5px;
}

.answer-option.correct {
    border-color: var(--accent-success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.answer-option.correct::before {
    background: var(--accent-success);
}

.answer-option.incorrect {
    border-color: var(--accent-danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.03) 100%);
}

.answer-option.incorrect::before {
    background: var(--accent-danger);
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.answer-option:hover .option-letter,
.answer-option.selected .option-letter {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.answer-option.correct .option-letter {
    border-color: var(--accent-success);
    background: var(--accent-success);
    color: white;
}

.answer-option.incorrect .option-letter {
    border-color: var(--accent-danger);
    background: var(--accent-danger);
    color: white;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
    padding-top: 4px;
}

/* Question Navigation */
.question-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.question-nav-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-secondary);
}

.question-nav-item:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.question-nav-item.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.question-nav-item.answered {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: white;
}

.question-nav-item.skipped {
    background: var(--accent-warning);
    border-color: var(--accent-warning);
    color: white;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.nav-btn-primary {
    background: var(--primary-color);
    color: white;
}

.nav-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-btn-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.nav-btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   RESULT PAGE STYLES
   ======================================== */

.result-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Result Header */
.result-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.result-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.result-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.result-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Score Circle */
.score-circle-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 2rem auto;
}

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

.score-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 12;
}

.score-circle-progress {
    fill: none;
    stroke: white;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: 565;
    transition: stroke-dashoffset 1.5s ease-out;
}

.score-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.score-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Result Stats Grid */
.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .result-stats {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

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

.stat-card.correct {
    border-left: 4px solid var(--accent-success);
}

.stat-card.incorrect {
    border-left: 4px solid var(--accent-danger);
}

.stat-card.empty {
    border-left: 4px solid var(--accent-warning);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.stat-card.correct .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
}

.stat-card.incorrect .stat-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

.stat-card.empty .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
}

.stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card.correct .stat-value {
    color: var(--accent-success);
}

.stat-card.incorrect .stat-value {
    color: var(--accent-danger);
}

.stat-card.empty .stat-value {
    color: var(--accent-warning);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Test Info */
.test-info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.test-info-item {
    text-align: center;
}

.test-info-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.test-info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Answer Review */
.answer-review {
    margin-top: 2rem;
}

.answer-review-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.answer-review-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.answer-review-item.correct {
    border-left: 4px solid var(--accent-success);
}

.answer-review-item.incorrect {
    border-left: 4px solid var(--accent-danger);
}

.answer-review-item.empty {
    border-left: 4px solid var(--accent-warning);
}

/* Action Buttons */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.action-btn-primary {
    background: var(--primary-color);
    color: white;
}

.action-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.action-btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.action-btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .test-container,
    .result-container {
        padding: 1rem;
    }

    .question-card {
        padding: 1.25rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .answer-option {
        padding: 0.875rem 1rem;
    }

    .result-title {
        font-size: 1.5rem;
    }

    .score-circle-container {
        width: 160px;
        height: 160px;
    }

    .score-value {
        font-size: 2.5rem;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .result-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
} 