/* Learn Page Styles - Inspired by W3Schools, Codecademy, GeeksforGeeks */

:root {
    --primary-color: #0d6efd; --secondary-color: #6c757d; --success-color: #198754; --danger-color: #dc3545; --warning-color: #ffc107; --info-color: #0dcaf0; --dark-bg: #1e1e1e; --light-bg: #ffffff; --code-bg: #f8f9fa; --border-color: #dee2e6; --text-primary: #212529; --text-secondary: #6c757d; }

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-primary); background: var(--light-bg); }

.container {
    max-width: 1200px; }

/* Navigation */
.learn-nav {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }

.nav-container {
    display: flex; justify-content: space-between; align-items: center; }

.nav-logo {
    font-size: 1.5rem; font-weight: bold; text-decoration: none; gap: 10px; }

.nav-links a {
    transition: color 0.3s; }

/* Hero Section */
.learn-hero {
    text-align: center; }

.hero-content h1 {
    margin-bottom: 1rem; }

.hero-content p {
    opacity: 0.9; }

.hero-stats {
    margin-top: 2rem; }

.stat {
    flex-direction: column; }

.paths-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.path-card {
    border-radius: 10px; }

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

.progress-bar {
    width: 100%; height: 8px; overflow: hidden; }

.tab-btn {
    border: 2px solid var(--border-color); cursor: pointer; }

.tab-btn.active {
    border-color: var(--primary-color); }

.playground-container {
    min-height: 500px; }

.editor-wrapper,
.output-wrapper {
    flex: 1; }

.code-editor {
    resize: none; }

.console-output {
    max-height: 200px; overflow-y: auto; }

.template-buttons {
    flex-wrap: wrap; }

.exercise-options {
    list-style: none; }

.search-box i {
    left: 1rem; }

.snippet-card pre {
    overflow-x: auto; }

.quiz-card-footer {
    border-top: 1px solid var(--border-color); }

.quiz-modal-header {
    border-bottom: 2px solid var(--border-color); }

.option-letter {
    flex-shrink: 0; }

.question-explanation {
    border-left: 4px solid var(--info-color); }

/* Responsive */
@media (max-width: 768px) {

    .quiz-language-filters {
        padding-bottom: 0.5rem; }
}


/* Focus styles for accessibility - Auto-added */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0066cc; outline-offset: 2px; }
