/* Existential Math Curriculum Styling */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    color: #7f8c8d;
}

/* Curriculum Introduction */
.curriculum-intro {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.curriculum-intro h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.core-insight {
    margin-top: 30px;
}

.insight-box {
    background: #e8f5e8;
    padding: 20px;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    margin-top: 15px;
}

.insight-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.foundation {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 15px;
    text-align: center;
}

/* Lessons Grid */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.lesson-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 2px solid #007bff;
}

.lesson-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.lesson-card h3 {
    margin: 10px 0 15px 0;
    color: #2c3e50;
}

.lesson-symbol {
    font-family: 'Times New Roman', serif;
    font-size: 1.4em;
    font-weight: bold;
    color: #007bff;
    margin: 10px 0;
    text-align: center;
    padding: 10px;
    background: #f8f9ff;
    border-radius: 4px;
}

.lesson-objective {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.9em;
    color: #6c757d;
}

/* Getting Started Section */
.getting-started {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.start-button {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.start-button:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* About Course */
.about-course {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.course-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.detail h4 {
    color: #007bff;
    margin-bottom: 10px;
}

/* Navigation */
.lesson-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-button {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: #0056b3;
}

.nav-button.disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.breadcrumb {
    color: #6c757d;
    font-size: 0.9em;
}

/* Exercise Styling */
.exercise {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.exercise h4 {
    color: #856404;
    margin-bottom: 15px;
}

.exercise button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 5px 10px 0;
    transition: background 0.3s ease;
}

.exercise button:hover {
    background: #0056b3;
}

.exercise-result {
    margin-top: 15px;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

.practice-exercise {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.practice-exercise h4 {
    color: #155724;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lessons-grid {
        grid-template-columns: 1fr;
    }

    .course-details {
        grid-template-columns: 1fr;
    }

    .lesson-nav {
        flex-direction: column;
        gap: 15px;
    }

    .header h1 {
        font-size: 2em;
    }
}

/* Hidden utility class */
.hidden {
    display: none;
}

/* Position demonstration styles */
.position-options {
    margin: 15px 0;
}

.position-options button {
    margin-right: 15px;
    margin-bottom: 10px;
}

.transformation-demo {
    margin-top: 20px;
}

.stage {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin: 10px 0;
}

.stage h5 {
    color: #495057;
    margin-bottom: 15px;
}

#wall-stage {
    background: #ffe6e6;
    border-color: #dc3545;
}

#window-stage {
    background: #e8f5e8;
    border-color: #28a745;
}

.two-squares {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.square {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: 5px;
}

.red {
    background: #dc3545;
}

.blue {
    background: #007bff;
}