/**
 * REAL AI Framework - Framework Outline Component Styles
 * Interactive navigation for the complete framework structure
 */

.framework-outline-container {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
    min-height: 400px; /* Ensure container is visible */
}

.framework-outline-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.framework-outline-section .section-header {
    margin-bottom: 3rem;
}

.framework-outline-section .section-header h2 {
    color: var(--primary-navy);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.framework-outline-section .section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.outline-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.outline-header h2 {
    color: var(--primary-navy);
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.outline-header p {
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

.progress-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.9rem;
}

.outline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 600px;
}

.outline-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.outline-section {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.outline-section:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0,168,107,0.15);
    transform: translateY(-2px);
}

.outline-section.active {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #f8fffe, #f0fdfb);
    box-shadow: 0 8px 24px rgba(0,168,107,0.2);
}

.outline-section.completed {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #f0fdf9, #ecfdf5);
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.section-icon {
    margin-top: 0.25rem;
}

.section-icon i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.completed .section-icon i {
    color: var(--primary-green);
}

.section-info {
    flex: 1;
}

.section-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-navy);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.section-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.section-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-green) 0deg,
        var(--primary-green) calc(var(--progress, 0) * 3.6deg),
        var(--border-color) calc(var(--progress, 0) * 3.6deg),
        var(--border-color) 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: '';
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    position: absolute;
}

.progress-circle span {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.subsections {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: none;
}

.outline-section.active .subsections {
    display: block;
}

.subsection {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.subsection:hover {
    background: white;
    border-color: var(--border-color);
}

.subsection h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-navy);
    font-size: 0.9rem;
    font-weight: 600;
}

.subsection-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item i {
    font-size: 0.7rem;
    color: var(--primary-green);
}

.outline-details {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    overflow-y: auto;
}

.details-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.details-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.section-details {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.details-header h3 {
    margin: 0;
    color: var(--primary-navy);
    font-size: 1.4rem;
    font-weight: 600;
}

.details-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-primary, .btn-secondary {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.btn-secondary {
    background: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.details-content {
    flex: 1;
    overflow-y: auto;
}

.description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.detailed-subsections {
    margin-bottom: 2rem;
}

.detailed-subsections h4 {
    color: var(--primary-navy);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detailed-subsection {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.detailed-subsection h5 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-navy);
    font-size: 1rem;
    font-weight: 600;
}

.deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deliverables-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.deliverables-list i {
    margin-top: 0.2rem;
    color: var(--primary-green);
    font-size: 0.8rem;
}

.implementation-info {
    background: linear-gradient(135deg, #fef3c7, #fef7ed);
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.implementation-info h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-navy);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255,255,255,0.8);
    border-radius: 4px;
}

.info-item strong {
    color: var(--primary-navy);
    font-weight: 600;
}

.info-item span {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left: 4px solid var(--primary-green);
}

.notification.info {
    border-left: 4px solid var(--primary-navy);
}

.notification i {
    font-size: 1.1rem;
}

.notification.success i {
    color: var(--primary-green);
}

.notification.info i {
    color: var(--primary-navy);
}

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

/* Responsive design */
@media (max-width: 968px) {
    .outline-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .outline-details {
        order: 2;
        min-height: 400px;
    }
    
    .details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .details-actions {
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 568px) {
    .framework-outline-container {
        padding: 1rem;
    }
    
    .outline-section {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .section-progress {
        align-self: flex-end;
    }
    
    .progress-circle {
        width: 40px;
        height: 40px;
    }
    
    .progress-circle::before {
        width: 28px;
        height: 28px;
    }
    
    .progress-circle span {
        font-size: 0.6rem;
    }
    
    .outline-details {
        padding: 1rem;
    }
    
    .details-actions {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}