/* Stage Page Specific Styles */

.stage-nav {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 10px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.back-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Stage Container */
.stage-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Stage Header */
.stage-header {
    text-align: center;
    margin-bottom: 40px;
}

.stage-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stage-badge.day-1 {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-green);
}

.stage-badge.day-2 {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.stage-badge.day-3 {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.stage-badge.day-4 {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-gold);
}

.stage-badge.day-5 {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.stage-badge.bonus {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-gold);
}

.stage-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.stage-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Video Section */
.video-section {
    margin-bottom: 40px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
}

.video-placeholder svg {
    opacity: 0.5;
}

.video-placeholder p {
    font-size: 14px;
}

/* For actual video embeds */
.video-placeholder iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Content Section */
.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 40px;
}

.content-section h2:first-child {
    margin-top: 0;
}

/* Learning Points */
.learning-points {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.learning-points ul {
    list-style: none;
    padding: 0;
}

.learning-points li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.learning-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 18px;
}

.learning-points li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

/* Instructions */
.instructions {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.instruction-step {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.instruction-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.instruction-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.instruction-step p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-left: 44px;
}

/* Key Takeaways */
.key-takeaways {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid var(--accent-blue);
    border-radius: 12px;
    padding: 24px;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-takeaways li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-primary);
    line-height: 1.6;
}

.key-takeaways li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 18px;
}

/* Resources Section */
.resources-section {
    margin-bottom: 40px;
}

.resources-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-card:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.resource-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.resource-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.resource-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Action Section */
.action-section {
    margin-bottom: 60px;
}

.complete-stage-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--accent-green);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.complete-stage-btn:hover {
    background: #1ea049;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

.complete-stage-btn.completed {
    background: var(--bg-card);
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}

.complete-stage-btn.completed:hover {
    background: var(--bg-secondary);
}

/* Navigation Buttons */
.navigation-btns {
    display: flex;
    gap: 12px;
}

.nav-btn {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.prev-btn svg {
    order: -1;
}

.next-btn svg {
    order: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .stage-header h1 {
        font-size: 24px;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .navigation-btns {
        flex-direction: column;
    }
}
