/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header */
header {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

header h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.eyebrow-text {
    text-align: center;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.intro-copy {
    text-align: left;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
    font-weight: normal;
}

/* Progress Bar - now integrated into step progress */

/* Step Progress Navigation */
.step-progress-nav {
    margin-bottom: 2rem;
    padding: 3rem 2rem 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}



.step-progress-container {
    position: relative;
    padding: 2rem 0 0 0;
}

.step-progress-bar {
    position: relative;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin: 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.step-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d64d9a, #b84490);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(214, 77, 154, 0.3);
    position: relative;
    overflow: hidden;
}

.step-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-progress-fill:not([style*="width: 0%"])::after {
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.step-markers {
    position: absolute;
    top: -35px;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 10px;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 3px solid #fff;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-marker.active .step-dot {
    background-color: #d64d9a;
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(214, 77, 154, 0.2);
}

.step-marker.completed .step-dot {
    background-color: #b84490;
}

.step-label {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6c757d;
    transition: color 0.3s ease;
    text-align: center;
    max-width: 120px;
    line-height: 1.1;
    word-wrap: break-word;
    hyphens: auto;
    overflow: hidden;
}

.step-marker.active .step-label {
    color: #d64d9a;
    font-weight: 600;
}

.step-marker.completed .step-label {
    color: #b84490;
}

.step-marker:hover .step-dot {
    transform: scale(1.1);
}

.step-marker:hover .step-label {
    color: #d64d9a;
}

/* Main Content */
.content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.step-content {
    display: none;
    padding: 2rem;
    min-height: 500px;
}

.step-content.active {
    display: block;
}

.step-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid #d64d9a;
    padding-bottom: 0.5rem;
}

.content-area {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.content-area p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.content-area ul, .content-area ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-area li {
    margin-bottom: 0.5rem;
}

/* Path Selection */
.path-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.adventure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.path-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.path-btn:hover {
    border-color: #d64d9a;
    box-shadow: 0 4px 15px rgba(214, 77, 154, 0.2);
    transform: translateY(-2px);
}

.path-btn h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.path-btn p {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}

/* Prompt Boxes */
.prompt-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.prompt-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.copy-btn {
    background: #d64d9a;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #b84490;
}

.copy-btn.copied {
    background: #d64d9a;
}

.prompt-content {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #d64d9a;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #d64d9a;
    color: white;
}

.btn-primary:hover {
    background: #b84490;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #d64d9a;
    color: white;
}

.btn-success:hover {
    background: #b84490;
}

/* Info Boxes */
.info-box {
    background: #e7f3ff;
    border: 2px solid #b3d9ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.info-box.success {
    background: #fef7fb;
    border-color: #f0c4d8;
}

.info-box.danger {
    background: #f8d7da;
    border-color: #dc3545;
}

.info-box h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .step-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        width: 100%;
        text-align: center;
        max-width: 200px;
    }
    
    .step-content {
        padding: 1.5rem;
    }
    
    .step-content h2 {
        font-size: 1.5rem;
    }
    
    .adventure-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
    
    .prompt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .copy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .step-content {
        padding: 1rem;
    }
    
    .prompt-box {
        padding: 1rem;
    }
    
    .path-btn {
        padding: 1rem;
    }
    
    .step-progress-nav {
        padding: 3rem 1rem 4rem 1rem;
    }
    
    .step-progress-container {
        padding: 2rem 0 0 0;
    }
    
    .step-label {
        font-size: 0.6rem;
        margin-top: 0.5rem;
        max-width: 70px;
    }
    
    .step-dot {
        width: 12px;
        height: 12px;
    }
    
    .step-markers {
        top: -35px;
        height: 70px;
        padding: 0 5px;
    }
}

/* Animation for transitions */
.step-content {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.step-content.active {
    opacity: 1;
    transform: translateX(0);
}

/* Success completion styling */
#completion {
    text-align: center;
}

#completion h2 {
    color: #b84490;
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* Worksheet Styles */
.worksheet-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.question-group {
    margin-bottom: 2rem;
}

.question-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.question-group small {
    display: block;
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.question-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.question-group textarea:focus {
    outline: none;
    border-color: #d64d9a;
    box-shadow: 0 0 0 3px rgba(214, 77, 154, 0.1);
}

.question-group textarea::placeholder {
    color: #adb5bd;
}

.worksheet-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.worksheet-actions .btn {
    min-width: 150px;
} 

/* Align Get Started button to the right in intro section */
#intro .navigation-buttons {
    justify-content: flex-end;
}


/* Path option container with recommended badge - styles added as needed */

/* Sidebar hover effects for better UX */
.sliding-sidebar:hover {
    box-shadow: -6px 0 16px rgba(0,0,0,0.15);
}

.sliding-sidebar div[id$="Toggle"]:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
