/* Progressive Learning Path UI Styles */

/* Breadcrumb Navigation */
.learning-breadcrumbs {
    background: rgba(45, 45, 45, 0.95);
    border-bottom: 1px solid rgba(247, 147, 26, 0.3);
    padding: 1rem 0;
    margin-top: 80px; /* Account for fixed header */
    position: sticky;
    top: 80px;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.breadcrumb-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb-nav {
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-orange);
}

.breadcrumb-item.active span {
    color: var(--primary-orange);
    font-weight: bold;
}

.breadcrumb-separator {
    color: var(--text-dim);
    margin: 0 0.5rem;
}

/* Learning Progress Indicator */
.learning-progress-indicator {
    background: var(--secondary-dark);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 15px;
    margin: 2rem 0;
    padding: 0;
    overflow: hidden;
}

.progress-wrapper {
    padding: 2rem;
}

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

.progress-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-orange);
}

.progress-stats {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f7931a, #ffa500);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

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

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

.progress-percentage {
    font-weight: bold;
    color: var(--primary-orange);
    min-width: 50px;
    text-align: right;
}

.progress-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.progress-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-orange);
    border-radius: 25px;
    background: transparent;
    color: var(--primary-orange);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 120px;
}

.progress-btn:hover:not(:disabled) {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

.progress-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--text-dim);
    color: var(--text-dim);
}

.progress-btn.primary {
    background: var(--primary-orange);
    color: white;
}

.progress-btn.primary:hover:not(:disabled) {
    background: #ff7b00;
    box-shadow: 0 5px 15px rgba(247, 147, 26, 0.4);
}

/* Step Navigation Timeline */
.step-navigation {
    margin: 2rem 0;
}

.step-nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.step-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(45, 45, 45, 0.6);
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.step-item:hover:not(.locked) {
    border-color: rgba(247, 147, 26, 0.5);
    transform: translateX(10px);
    background: rgba(45, 45, 45, 0.8);
}

.step-item.current {
    border-color: var(--primary-orange);
    background: rgba(247, 147, 26, 0.1);
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.2);
}

.step-item.completed {
    border-color: var(--success-green);
    background: rgba(76, 175, 80, 0.1);
}

.step-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-indicator {
    flex-shrink: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(247, 147, 26, 0.2);
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.step-item.completed .step-number {
    background: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

.step-item.current .step-number {
    background: var(--primary-orange);
    color: white;
    animation: pulse 2s infinite;
}

.step-item.locked .step-number {
    background: rgba(153, 153, 153, 0.2);
    color: var(--text-dim);
    border-color: var(--text-dim);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.7); }
    50% { box-shadow: 0 0 20px 10px rgba(247, 147, 26, 0); }
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.step-item.current .step-title {
    color: var(--primary-orange);
}

.step-description {
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.step-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.step-duration {
    color: var(--text-dim);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.step-duration::before {
    content: '⏱️';
    margin-right: 0.5rem;
}

.step-type {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.step-type-reading {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.step-type-interactive-demo {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.step-type-calculator {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.step-type-analysis-tool {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.step-type-coding {
    background: rgba(63, 81, 181, 0.2);
    color: #3f51b5;
}

.step-type-hands-on {
    background: rgba(255, 87, 34, 0.2);
    color: #ff5722;
}

.step-type-planning {
    background: rgba(96, 125, 139, 0.2);
    color: #607d8b;
}

.checkpoint-badge {
    background: linear-gradient(45deg, #ffa500, #ff7b00);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.checkpoint-badge::before {
    content: '🏁';
    margin-right: 0.25rem;
}

/* Achievement System */
.achievement-system {
    margin-top: 2rem;
}

.achievement-wrapper {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
}

.achievement-title {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    border-color: var(--primary-orange);
    background: rgba(0, 0, 0, 0.5);
}

.achievement-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-title {
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.achievement-description {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.achievement-points {
    background: linear-gradient(45deg, #ffa500, #f7931a);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.no-achievements {
    text-align: center;
    color: var(--text-dim);
    padding: 2rem;
    font-style: italic;
}

/* Achievement Notifications */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.achievement-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.achievement-popup {
    background: linear-gradient(135deg, #f7931a, #ffa500);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(247, 147, 26, 0.4);
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.achievement-icon-large {
    font-size: 3rem;
    flex-shrink: 0;
}

.achievement-details {
    flex: 1;
}

.achievement-unlocked {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.achievement-desc {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.achievement-points {
    font-size: 0.9rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
}

/* Contextual Help System */
.contextual-help {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.help-toggle {
    background: var(--secondary-dark);
    border: 2px solid var(--primary-orange);
    border-radius: 25px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-orange);
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.help-toggle:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(247, 147, 26, 0.4);
}

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

.help-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 1rem;
    background: var(--secondary-dark);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contextual-help.active .help-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.help-content h4 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.help-content p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.help-content strong {
    color: var(--primary-orange);
}

.help-actions {
    margin-top: 1rem;
    text-align: right;
}

.help-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .learning-breadcrumbs {
        margin-top: 70px;
        top: 70px;
    }
    
    .breadcrumb-wrapper {
        padding: 0 1rem;
    }
    
    .breadcrumb-list {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .progress-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .progress-btn {
        width: 100%;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-meta {
        justify-content: center;
    }
    
    .achievement-popup {
        flex-direction: column;
        text-align: center;
        max-width: 280px;
    }
    
    .contextual-help {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .help-panel {
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: 80px;
        min-width: auto;
        max-width: none;
    }
    
    .help-toggle {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 0.8rem;
    }
    
    .progress-wrapper {
        padding: 1rem;
    }
    
    .progress-title {
        font-size: 1.1rem;
    }
    
    .step-item {
        padding: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .achievement-notification {
        left: 1rem;
        right: 1rem;
        top: 10px;
    }
    
    .achievement-popup {
        padding: 1rem;
    }
}