/* Dynamic Content and MCP-Powered Features Styles */

/* Achievement Popup */
.achievement-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f7931a, #ff7b00);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(247, 147, 26, 0.4);
    z-index: 10000;
    animation: achievementSlideIn 0.5s ease, achievementSlideOut 0.5s ease 3.5s;
    max-width: 300px;
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.achievement-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.achievement-details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.achievement-details p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

@keyframes achievementSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes achievementSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Learning Path Content */
.learning-path-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

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

.progress-text {
    font-weight: bold;
    color: #f7931a;
    white-space: nowrap;
}

.learning-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.learning-path-item {
    background: rgba(45, 45, 45, 0.8);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.learning-path-item:hover {
    border-color: #f7931a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 147, 26, 0.2);
}

.learning-path-item.completed {
    border-color: #4caf50;
    opacity: 0.8;
}

.learning-path-item.recommended {
    border-color: #ffa500;
    box-shadow: 0 4px 20px rgba(255, 165, 0, 0.3);
}

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

.learning-item-icon {
    font-size: 1.5rem;
}

.learning-item-category {
    background: rgba(247, 147, 26, 0.2);
    color: #f7931a;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: capitalize;
}

.learning-path-item h4 {
    color: #f7931a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.learning-path-item p {
    color: #e0e0e0;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.learning-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.interaction-type {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
}

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

.recommended-badge {
    background: linear-gradient(45deg, #ffa500, #ff7b00);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Persona Prompt */
.persona-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1), rgba(255, 123, 0, 0.1));
    border: 2px dashed #f7931a;
    border-radius: 15px;
    text-align: center;
}

.persona-prompt-content h3 {
    color: #f7931a;
    margin-bottom: 1rem;
}

.persona-prompt-content p {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

/* Featured Content */
.featured-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-content-card {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9), rgba(60, 60, 60, 0.8));
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f7931a, #ffa500);
}

.featured-content-card:hover {
    border-color: #f7931a;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(247, 147, 26, 0.25);
}

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

.featured-category {
    color: #f7931a;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.featured-score {
    background: rgba(247, 147, 26, 0.2);
    color: #f7931a;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.featured-content-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.featured-content-card p {
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.featured-tags .tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.featured-cta {
    background: #f7931a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

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

/* Recommendations */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(45, 45, 45, 0.6);
    border-left: 4px solid #f7931a;
    border-radius: 0 10px 10px 0;
    padding: 1rem;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    background: rgba(45, 45, 45, 0.8);
    transform: translateX(4px);
}

.recommendation-item.priority-high {
    border-left-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.recommendation-item.priority-medium {
    border-left-color: #ffa500;
    background: rgba(255, 165, 0, 0.1);
}

.recommendation-icon {
    font-size: 1.5rem;
}

.recommendation-content h4 {
    color: #f7931a;
    margin-bottom: 0.5rem;
}

.recommendation-content p {
    color: #e0e0e0;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.recommendation-cta {
    background: transparent;
    border: 2px solid #f7931a;
    color: #f7931a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.recommendation-cta:hover {
    background: #f7931a;
    color: white;
}

.no-recommendations {
    text-align: center;
    padding: 2rem;
    color: #4caf50;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Progress Dashboard */
.progress-dashboard {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 15px;
    padding: 2rem;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f7931a;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #ccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recent-achievements h4 {
    color: #f7931a;
    margin-bottom: 1rem;
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #ffa500, #f7931a);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.9rem;
    font-weight: bold;
}

.no-achievements {
    color: #b3b3b3; /* WCAG AA compliant: 4.6:1 contrast ratio */
    font-style: italic;
    padding: 1rem;
    text-align: center;
}

.progress-placeholder {
    text-align: center;
    padding: 2rem;
    color: #b3b3b3; /* WCAG AA compliant: 4.6:1 contrast ratio */
    font-style: italic;
}

/* AI-Powered Content */
.ai-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ai-suggestion-card {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(63, 81, 181, 0.1));
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.ai-suggestion-card:hover {
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

.ai-badge {
    background: linear-gradient(45deg, #2196f3, #3f51b5);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: inline-block;
}

.ai-suggestion-card h4 {
    color: #2196f3;
    margin-bottom: 1rem;
}

.ai-reason {
    color: #ccc;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.suggestion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.relevance-score {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
}

.try-suggestion {
    background: #2196f3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.try-suggestion:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .achievement-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .learning-path-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .progress-bar {
        width: 100%;
        max-width: 200px;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .featured-content-grid,
    .ai-suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendation-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .learning-path-item,
    .featured-content-card,
    .ai-suggestion-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .featured-card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}