/**
 * BLUEPRINT FLOW SYSTEM STYLES
 * Styles for Info → Agreement → Assessment → Engagement → Evaluation → Graduation → Future Action Planning
 */

/* Flow Indicator */
.blueprint-flow-indicator {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.flow-stages {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0.5rem;
}

.flow-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 100px;
}

.flow-stage:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.flow-stage.completed {
    opacity: 1;
}

.flow-stage.current {
    background: rgba(81, 45, 168, 0.2);
    border: 2px solid var(--primary-purple, #512DA8);
}

.flow-stage.locked {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.stage-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stage-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stage-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: rgba(81, 45, 168, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Stage Sections */
.blueprint-stage-section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: translateY(20px);
}

.blueprint-stage-section.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Stage */
.info-stage {
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: var(--glass-bg, rgba(17, 24, 39, 0.85));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.info-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple, #512DA8), var(--accent-gold, #FFC107));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-content {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.info-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-gold, #FFC107);
    border-radius: 8px;
}

/* Agreement Stage */
.agreement-stage {
    max-width: 900px;
    margin: 0 auto;
}

.agreement-card {
    background: var(--glass-bg, rgba(17, 24, 39, 0.85));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.consent-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-purple, #512DA8);
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-top: 0.25rem;
}

.consent-text {
    flex: 1;
    line-height: 1.6;
}

/* Assessment Stage */
.assessment-stage {
    max-width: 900px;
    margin: 0 auto;
}

.assessment-card {
    background: var(--glass-bg, rgba(17, 24, 39, 0.85));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
}

/* Engagement Stage */
.engagement-stage {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Hide course content when not in engagement stage */
.blueprint-stage-section:not(.engagement-stage) #course-content-container,
.blueprint-stage-section:not(.engagement-stage.active) #course-content-container {
    display: none !important;
}

/* Show course content in engagement stage */
.engagement-stage.active #course-content-container {
    display: block !important;
    width: 100%;
    min-height: 100vh;
}

/* Ensure course content elements are visible in engagement stage */
.engagement-stage.active #app,
.engagement-stage.active #intro-section,
.engagement-stage.active #story-content,
.engagement-stage.active #story-nav,
.engagement-stage.active .main-content,
.engagement-stage.active .course-container {
    display: block !important;
}

.engagement-stage.active #intro-section {
    display: flex !important;
}

/* Evaluation Stage */
.evaluation-stage {
    max-width: 900px;
    margin: 0 auto;
}

/* Graduation Stage */
.graduation-stage {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.graduation-celebration {
    background: var(--glass-bg, rgba(17, 24, 39, 0.85));
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-gold, #FFC107);
    border-radius: 30px;
    padding: 4rem 3rem;
    margin-bottom: 2rem;
    animation: celebrationPulse 2s ease-in-out infinite;
}

@keyframes celebrationPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 193, 7, 0.6); }
}

.graduation-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Future Action Planning Stage */
.future-action-stage {
    max-width: 1200px;
    margin: 0 auto;
}

.action-planning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.individual-planning,
.collaborative-planning {
    background: var(--glass-bg, rgba(17, 24, 39, 0.85));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 2.5rem;
}

.planning-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-gold, #FFC107);
}

.action-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-purple, #512DA8);
}

/* Buttons */
.blueprint-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blueprint-btn-primary {
    background: linear-gradient(135deg, var(--primary-purple, #512DA8), var(--accent-blue, #2196F3));
    color: white;
    box-shadow: 0 10px 30px rgba(81, 45, 168, 0.4);
}

.blueprint-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(81, 45, 168, 0.6);
}

.blueprint-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.2));
}

.blueprint-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Completion Animation */
.blueprint-completion-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.completion-content {
    background: var(--glass-bg, rgba(17, 24, 39, 0.95));
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-gold, #FFC107);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.4);
}

.completion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.completion-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold, #FFC107);
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Locked Message */
.blueprint-locked-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-gold, #FFC107);
    border-radius: 15px;
    padding: 2rem;
    z-index: 10000;
    color: white;
    font-weight: 600;
    animation: fadeInUp 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blueprint-flow-indicator {
        top: 60px;
        padding: 0.75rem 1rem;
    }

    .flow-stages {
        gap: 0.25rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .flow-stage {
        min-width: 80px;
        padding: 0.5rem;
    }

    .stage-label {
        font-size: 0.65rem;
    }

    .stage-icon {
        font-size: 1.2rem;
    }

    .blueprint-stage-section {
        padding: 6rem 1rem 2rem;
    }

    .action-planning-grid {
        grid-template-columns: 1fr;
    }
}

