/* Visual Roadmap Mermaid Styling */

.roadmap-description {
    margin-bottom: 24px;
}

.roadmap-description h4 {
    color: #ff6b35;
    margin: 0 0 12px 0;
    font-size: 1.2em;
}

.roadmap-diagram {
    margin-bottom: 24px;
}

/* Mermaid diagram container */
.roadmap-diagram .mermaid {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
}

/* Mermaid diagram styling overrides */
.roadmap-diagram .mermaid svg {
    max-width: 100%;
    height: auto;
    background: transparent;
}

/* Custom styling for different diagram types */
.roadmap-diagram .mermaid .node rect,
.roadmap-diagram .mermaid .node circle,
.roadmap-diagram .mermaid .node ellipse,
.roadmap-diagram .mermaid .node polygon {
    fill: rgba(255, 107, 53, 0.2);
    stroke: #ff6b35;
    stroke-width: 2px;
}

.roadmap-diagram .mermaid .node .label {
    color: #ffffff;
    font-weight: 500;
}

.roadmap-diagram .mermaid .edgePath .path {
    stroke: #ff6b35;
    stroke-width: 2px;
}

.roadmap-diagram .mermaid .edgeLabel {
    background-color: #2a2a2a;
    color: #ffffff;
    border-radius: 4px;
    padding: 2px 6px;
}

/* Gantt chart specific styling */
.roadmap-diagram .mermaid .section0,
.roadmap-diagram .mermaid .section1,
.roadmap-diagram .mermaid .section2,
.roadmap-diagram .mermaid .section3 {
    fill: rgba(255, 107, 53, 0.3);
    stroke: #ff6b35;
}

.roadmap-diagram .mermaid .cScale0,
.roadmap-diagram .mermaid .cScale1,
.roadmap-diagram .mermaid .cScale2 {
    fill: #ff6b35;
}

/* Timeline styling */
.roadmap-diagram .mermaid .timeline-note {
    fill: #2a2a2a;
    stroke: #ff6b35;
}

/* Mindmap styling */
.roadmap-diagram .mermaid .mindmap-node {
    fill: rgba(255, 107, 53, 0.2);
    stroke: #ff6b35;
}

/* Code block styling */
.roadmap-diagram pre {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9em;
    line-height: 1.4;
    color: #e0e0e0;
}

.roadmap-diagram pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Form styling specific to visual roadmap */
.vr-hero {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px 0;
}

/* Detail level dropdown styling */
#detailLevel {
    border: 2px solid rgba(255, 107, 53, 0.5);
    background: rgba(255, 107, 53, 0.05);
}

#detailLevel:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

/* Detail level label emphasis */
label[for="detailLevel"] {
    color: #ff6b35;
    font-weight: 600;
}

.vr-hero h1 {
    color: #ff6b35;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vr-hero .pill {
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.5);
    padding: 4px 12px;
    font-size: 0.7em;
    border-radius: 20px;
    color: #ff6b35;
    font-weight: normal;
}

.vr-hero p {
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Button styling improvements */
.btn-primary {
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Loading animation */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.1em;
    color: #ff6b35;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b35;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .vr-hero h1 {
        font-size: 1.8em;
        flex-direction: column;
        gap: 8px;
    }

    .roadmap-diagram .mermaid {
        padding: 12px;
        min-height: 250px;
    }

    .roadmap-diagram pre {
        font-size: 0.8em;
        padding: 12px;
    }
}