/* 
  Cognispace | Framework Page Specific Styles
  Interactive Triadic Explorer Components
*/

.framework-hero {
    padding-top: var(--sp-40);
    padding-bottom: var(--sp-24);
}

.eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    margin-bottom: var(--sp-4);
}

/* Explorer Section */
.explorer-section {
    padding: var(--sp-24) 0;
}

.toggle-container {
    display: inline-flex;
    background-color: rgba(0,0,0,0.05);
    padding: 4px;
    border-radius: 8px;
    margin-bottom: var(--sp-12);
}

.toggle-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.toggle-btn.active {
    background-color: white;
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.explorer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-16);
    margin-top: var(--sp-8);
}

/* Triadic Diagram */
.diagram-viewport {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

.triadic-diagram {
    width: 100%;
    height: auto;
    max-width: 400px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.03));
}

.node-group {
    cursor: pointer;
    transition: transform var(--transition-smooth);
}

.node-group:hover {
    transform: translateY(-2px);
}

.node-bg {
    fill: white;
    stroke: rgba(0,0,0,0.03);
    stroke-width: 1;
}

.node-ring {
    fill: none;
    stroke-width: 4;
    transition: stroke-width var(--transition-fast), filter var(--transition-fast);
}

.eval-color { stroke: #5BA4E0; }
.impulse-color { stroke: #9B59D0; }
.persona-color { stroke: #F5A623; }

.node-label {
    font-size: 14px;
    font-weight: 500;
    fill: var(--text-secondary);
    text-anchor: middle;
    pointer-events: none;
    transition: fill var(--transition-fast);
}

.rel-line {
    stroke: rgba(0,0,0,0.06);
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke var(--transition-smooth), stroke-width var(--transition-smooth), opacity var(--transition-smooth);
}

/* Active States */
.node-group.active .node-ring {
    stroke-width: 6;
    filter: drop-shadow(0 0 8px currentColor);
}

.node-group.active .node-label {
    fill: var(--text-primary);
    font-weight: 600;
}

.node-group.dimmed {
    opacity: 0.4;
}

.rel-line.active {
    stroke-width: 3;
    stroke-opacity: 0.8;
}

.line-impulse-eval.highlight-impulse, .line-impulse-eval.highlight-evaluation { stroke: #7C89DA; stroke-opacity: 0.4; stroke-width: 3; }
.line-impulse-persona.highlight-impulse, .line-impulse-persona.highlight-persona { stroke: #C8807A; stroke-opacity: 0.4; stroke-width: 3; }
.line-eval-persona.highlight-evaluation, .line-eval-persona.highlight-persona { stroke: #A8A582; stroke-opacity: 0.4; stroke-width: 3; }

/* Info Panel */
.info-panel {
    flex: 1;
    max-width: 440px;
    min-height: 280px;
    padding: var(--sp-12);
    background-color: var(--bg-panel);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-content h2 {
    margin-bottom: var(--sp-4);
    font-size: 1.75rem;
}

.panel-content p {
    font-size: 1.125rem;
    margin-bottom: var(--sp-8);
    color: var(--text-secondary);
}

.sub-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.sub-content span {
    background-color: var(--bg-alt);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

@media (max-width: 860px) {
    .explorer-container {
        flex-direction: column;
        align-items: center;
    }
    .info-panel {
        max-width: 100%;
        width: 100%;
    }
}
