/* ========================================
   Student Learning Page Styles
   ======================================== */

/* Page Header */
.learning-header {
    padding: 1rem 1.25rem;
}

.learning-header .header-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.learning-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.learning-header .text-muted {
    font-size: 0.875rem;
}

/* Question Text */
.question-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Progress Card - Enhanced rounded corners */
.progress-card .progress {
    border-radius: 10px;
}

.progress-card .progress-bar {
    border-radius: 10px;
}

/* Question Card Header */
.question-card .card-header {
    border-radius: 0.375rem 0.375rem 0 0;
}

/* Feedback Alert - Fade In Animation */
.feedback-alert {
    animation: fadeIn 0.3s ease-in;
}

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

/* Completion Card - Matrix Theme */
.completion-card {
    background: rgba(0, 59, 0, 0.6);
    color: var(--matrix-green-primary);
    border: 2px solid var(--matrix-green-primary);
    box-shadow: 0 0 20px var(--matrix-glow);
}

.completion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.score-display {
    font-size: 2rem;
    font-weight: bold;
}

.score-percentage {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* AI Help Section */
.ai-help-section {
    animation: fadeIn 0.3s ease-in;
}

/* ========================================
   Markdown Content Styling
   ======================================== */

.lesson-markdown,
.markdown-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.lesson-markdown h3,
.lesson-markdown h4,
.lesson-markdown h5,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5 {
    color: var(--matrix-green-primary);
    font-weight: 600;
    text-shadow: 0 0 10px var(--matrix-glow);
}

.lesson-markdown strong,
.markdown-content strong {
    color: var(--matrix-cyan);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.lesson-markdown em,
.markdown-content em {
    color: var(--matrix-green-secondary);
}

.lesson-markdown ul,
.markdown-content ul {
    padding-left: 1.5rem;
    list-style-type: none;
}

.lesson-markdown ul li,
.markdown-content ul li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.lesson-markdown ul li::before,
.markdown-content ul li::before {
    content: ">";
    color: var(--matrix-green-primary);
    font-weight: bold;
    position: absolute;
    left: -1rem;
    text-shadow: 0 0 5px var(--matrix-glow);
}

.lesson-markdown blockquote,
.markdown-content blockquote {
    background-color: rgba(0, 59, 0, 0.3);
    border-radius: 0;
    border-left: 3px solid var(--matrix-cyan);
    padding: 0.75rem 1rem;
    font-style: italic;
    color: var(--matrix-green-secondary);
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.1);
}

/* ========================================
   Visualization Container
   ======================================== */

.visualization-container .card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.visualization-container .card-header {
    border-bottom: none;
}

.visualization-container .card-body {
    padding: 1.5rem;
}

/* Lesson Text Styling */
.lesson-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--matrix-green-secondary);
}

.lesson-text p {
    margin-bottom: 1rem;
}

/* Image in Lesson Content */
.lesson-image {
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    object-fit: contain;
}

/* ========================================
   Progress Bar - Matrix Theme Override
   ======================================== */
.progress-card .progress-bar {
    background-color: var(--matrix-primary) !important;
    color: #000 !important;
    font-weight: bold;
    text-shadow: none;
}

.progress-card .progress {
    background-color: rgba(0, 20, 0, 0.8) !important;
    border: 1px solid var(--matrix-primary);
}

/* ========================================
   Hint Alert - Matrix Theme Override
   ======================================== */
.alert-secondary {
    background: rgba(0, 59, 0, 0.5) !important;
    border: 1px solid var(--matrix-cyan) !important;
    border-left: 4px solid var(--matrix-cyan) !important;
    color: var(--matrix-primary) !important;
}

.alert-secondary small {
    color: var(--matrix-primary) !important;
    opacity: 1;
}

/* ========================================
   Voortgang Text Colors
   ======================================== */
.progress-card .text-muted {
    color: var(--matrix-cyan) !important;
    opacity: 0.9;
}

.progress-card .text-success {
    color: var(--matrix-primary) !important;
}

/* ========================================
   Geoptimaliseerde Layout
   ======================================== */
.student-learning-container {
    max-width: 1400px;
    margin: 0 auto;
}

.visualization-column {
    max-width: 800px;
}

.question-column {
    max-width: 500px;
    min-width: 350px;
}

/* Mobile: full width */
@media (max-width: 767px) {
    .visualization-column,
    .question-column {
        max-width: 100%;
        min-width: 100%;
    }
}

/* ========================================
   Progress Saved Indicator
   ======================================== */
.progress-saved-badge {
    animation: fadeInOut 2s ease-in-out;
    font-size: 0.75rem;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-5px);
    }
}

/* ========================================
   Question Speech Bubble Styling - Matrix Theme
   ======================================== */
.question-speech-bubble {
    position: relative;
    background: rgba(0, 59, 0, 0.4);
    border: 2px solid var(--matrix-cyan);
    border-radius: 0;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    animation: bubbleFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.question-speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 30px;
    width: 24px;
    height: 24px;
    background: rgba(0, 59, 0, 0.4);
    border-right: 2px solid var(--matrix-cyan);
    border-bottom: 2px solid var(--matrix-cyan);
    transform: rotate(45deg);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.question-speech-bubble .question-text {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--matrix-green-primary);
    font-weight: 500;
    text-shadow: 0 0 5px var(--matrix-glow);
}

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

/* Matrix theme is always dark - no separate dark mode needed */
