/* Lesson 1 CSS - External CSS Example */

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    background: #f8fafc;
}

/* Example container */
.example-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header styling */
.example-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.example-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.lesson-subtitle {
    margin: 0 0 2rem 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
.example-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Content area */
.example-content {
    padding: 2rem;
}

.demo-section, .interactive-section, .concept-section {
    margin-bottom: 3rem;
}

.demo-section h2, .interactive-section h2, .concept-section h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* CSS method demonstrations */
.css-method {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.css-method h3 {
    color: #374151;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

/* External CSS styled paragraph */
.external-style {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
}

/* Code examples */
.code-example {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.code-example pre {
    margin: 0;
}

.code-example code {
    color: inherit;
    background: none;
}

/* Exercise box */
.exercise-box {
    background: linear-gradient(135deg, #fef3c7, #fcd34d);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 2rem;
}

.exercise-box h4 {
    margin: 0 0 1rem 0;
    color: #92400e;
    font-size: 1.25rem;
}

/* Footer */
.example-footer {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 2rem;
    text-align: center;
}

.example-footer p {
    margin: 0 0 1rem 0;
    color: #475569;
}

/* Code elements */
code {
    background: #f1f5f9;
    color: #1e293b;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 768px) {
    .example-header {
        padding: 1.5rem 1rem;
    }
    
    .example-header h1 {
        font-size: 2rem;
    }
    
    .example-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .example-content {
        padding: 1rem;
    }
    
    .css-method {
        padding: 1rem;
    }
}
