/* ============================
   Data4All - Modern CSS
   Impara Python giocando!
   ============================ */

/* CSS Variables & Reset */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #22c55e;
    --secondary-dark: #16a34a;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    --shadow-hover: 0 8px 30px rgba(99, 102, 241, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; margin-bottom: 24px; }
h3 { font-size: 24px; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.text-center {
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

/* ============================
   Header & Navigation
   ============================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

header.scrolled .logo {
    color: var(--primary);
}

.logo-icon {
    font-size: 32px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    color: white;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
}

header.scrolled nav a {
    color: var(--text-primary);
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

header.scrolled .mobile-menu-btn {
    color: var(--text-primary);
}

/* ============================
   Hero Section
   ============================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6366f1 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 120px 24px 80px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 22px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 40px;
}

.hero-breadcrumb span {
    color: var(--accent);
}

/* ============================
   Features Section
   ============================ */
.features {
    background: var(--background);
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 22px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ============================
   Why Python Section
   ============================ */
.why-python {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.why-python::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.why-python h2 {
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.why-python .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    position: relative;
    z-index: 1;
}

.python-list {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.python-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: var(--transition);
}

.python-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.python-item .check-icon {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.python-item p {
    font-size: 18px;
    font-weight: 600;
}

.python-item strong {
    color: var(--accent);
}

/* ============================
   Blog Section
   ============================ */
.blog-section {
    background: var(--background);
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--primary);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.post-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.post-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    position: relative;
}

.post-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.post-content {
    padding: 24px;
}

.post-date {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.post-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 20px;
}

.post-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    gap: 10px;
}

/* ============================
   Lessons Section
   ============================ */
.lessons-section {
    background: white;
    padding: 100px 0;
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.lesson-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.lesson-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.lesson-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lesson-number {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.lesson-icon {
    font-size: 40px;
}

.lesson-body {
    padding: 24px;
}

.lesson-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 20px;
}

.lesson-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
}

.lesson-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.lesson-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.difficulty-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.difficulty-beginner {
    background: #dcfce7;
    color: #16a34a;
}

.difficulty-intermediate {
    background: #fef3c7;
    color: #d97706;
}

.difficulty-advanced {
    background: #fecaca;
    color: #dc2626;
}

/* ============================
   Lesson Detail Page
   ============================ */
.lesson-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 120px 24px 60px;
}

.lesson-hero-intermediate {
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

.lesson-hero-advanced {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.lesson-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lesson-hero h1 {
    color: white;
    margin-bottom: 16px;
}

.lesson-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: rgba(255,255,255,0.9);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.lesson-content-section {
    padding: 60px 0;
    background: var(--background);
    min-height: 60vh;
}

.lesson-body {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.lesson-body h2 {
    color: var(--primary);
    margin-bottom: 16px;
}

.lesson-body h3 {
    color: var(--text-primary);
    margin: 32px 0 16px;
    font-size: 22px;
}

.lesson-body h4 {
    color: var(--text-primary);
    margin: 24px 0 12px;
    font-size: 18px;
}

.lesson-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.8;
}

.lesson-body .lead {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 24px;
}

.lesson-body ul,
.lesson-body ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.lesson-body li {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.6;
}

.lesson-body a {
    color: var(--primary);
    font-weight: 600;
}

.lesson-body a:hover {
    text-decoration: underline;
}

.lesson-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 18px;
}

.lesson-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 15px;
    line-height: 1.6;
}

.lesson-body code {
    font-family: 'Consolas', 'Monaco', monospace;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 15px;
    color: var(--primary);
}

.lesson-body pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
}

.info-box {
    display: flex;
    gap: 16px;
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
}

.info-box i {
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.info-box strong {
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.info-box p {
    margin: 0;
}

.exercise-box {
    display: flex;
    gap: 16px;
    background: #fef3c7;
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 32px 0;
}

.exercise-box i {
    color: var(--accent);
    font-size: 24px;
    flex-shrink: 0;
}

.exercise-box strong {
    color: var(--accent-hover);
    display: block;
    margin-bottom: 8px;
}

.exercise-box p {
    margin-bottom: 12px;
}

.exercise-box pre {
    background: #1e293b;
    margin: 12px 0 0 !important;
}

.congrats-box {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-left: 4px solid var(--secondary);
    padding: 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 32px 0;
}

.congrats-box i {
    color: var(--secondary);
    font-size: 40px;
    flex-shrink: 0;
}

.congrats-box h3 {
    color: var(--secondary-dark);
    margin-bottom: 8px;
}

.congrats-box p {
    margin-bottom: 8px;
}

.check-list {
    list-style: none;
    margin: 24px 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-secondary);
}

.check-list i {
    color: var(--secondary);
    font-size: 18px;
}

.feature-list {
    list-style: none;
    margin: 16px 0;
}

.feature-list li {
    padding: 8px 0;
    font-size: 16px;
    color: var(--text-secondary);
}

.feature-list code {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--primary);
    margin-right: 8px;
}

.lesson-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 24px;
}

.back-link:hover {
    gap: 12px;
}

/* ============================
   Footer
   ============================ */
footer {
    background: #1e1b4b;
    color: white;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about .logo {
    margin-bottom: 16px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-contact i {
    color: var(--accent);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ============================
   Loading & Animations
   ============================ */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 18px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 12px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 40px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    color: #dc2626;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    
    header .container {
        flex-wrap: wrap;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 16px;
    }
    
    nav a {
        color: var(--text-primary);
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .features-grid,
    .post-grid,
    .lesson-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .lesson-nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .lesson-body {
        padding: 24px;
    }
    
    .python-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================
   Python Editor
   ============================ */
.python-editor-wrapper {
    background: #1e1e1e;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

.editor-title {
    color: #ffd43b;
    font-weight: 600;
    font-size: 14px;
}

.editor-title i {
    margin-right: 8px;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

.editor-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.run-btn {
    background: #22c55e;
    color: white;
}

.run-btn:hover {
    background: #16a34a;
}

.clear-btn {
    background: #64748b;
    color: white;
}

.clear-btn:hover {
    background: #475569;
}

.reset-btn {
    background: #f59e0b;
    color: white;
}

.reset-btn:hover {
    background: #d97706;
}

.editor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 250px;
}

.code-input-area {
    background: #1e1e1e;
    padding: 0;
}

.code-input {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: #1e1e1e;
    color: #d4d4d4;
    border: none;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
}

.code-input::placeholder {
    color: #6a6a6a;
}

.output-area {
    background: #0d0d0d;
    border-left: 1px solid #404040;
    display: flex;
    flex-direction: column;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    font-size: 13px;
    color: #888;
}

.output-header i {
    margin-right: 6px;
}

.loading-indicator {
    font-size: 12px;
}

.loading-indicator i {
    margin-right: 4px;
}

.code-output {
    flex: 1;
    margin: 0;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #22c55e;
    background: transparent;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .editor-content {
        grid-template-columns: 1fr;
    }
    
    .output-area {
        border-left: none;
        border-top: 1px solid #404040;
    }
    
    .editor-toolbar {
        flex-direction: column;
        gap: 12px;
    }
    
    .editor-actions {
        width: 100%;
        justify-content: space-between;
    }
}
