/* =========================================================================
   INTENT ROUTER PROTOTYPE STYLES
   ========================================================================= */

/* 1. Hero Intent Understanding State */
.understanding-state {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ded6ca;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--text);
    font-family: var(--sans);
    flex: 1;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    margin-right: 12px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* 2. Result Shell Layout */
.intent-shell {
    padding: 120px 40px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.intent-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.intent-header h1 {
    font-family: var(--serif);
    font-size: 42px;
    margin: 0 0 8px;
    font-weight: 500;
}

.intent-header p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* 3. Intent Summary Panel */
.intent-summary-panel {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.intent-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.intent-summary-header h3 {
    font-family: var(--serif);
    font-size: 20px;
    margin: 0;
}

.edit-intent-btn {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-decoration: none;
}
.edit-intent-btn:hover { color: var(--primary); }

.intent-entities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.entity-group h5 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin: 0 0 6px;
}

.entity-group p {
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

.entity-badge {
    font-size: 9px;
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    color: #666;
}

/* 4. Clarifying Question Block */
.clarifying-question-block {
    background: #fdfbf7;
    border: 1px solid #e2dacd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cq-icon {
    font-size: 24px;
}

.cq-content h4 {
    font-family: var(--serif);
    font-size: 18px;
    margin: 0 0 8px;
}

.cq-content p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 16px;
}

.cq-actions {
    display: flex;
    gap: 12px;
}

.cq-btn {
    padding: 8px 16px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.cq-btn:hover { border-color: var(--primary); }

/* 5. Best Matches & Context Layer */
.results-layer {
    margin-bottom: 40px;
}

.results-layer h3 {
    font-family: var(--serif);
    font-size: 24px;
    margin: 0 0 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.result-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.result-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.result-content {
    padding: 20px;
}

.result-content h4 {
    font-family: var(--serif);
    font-size: 18px;
    margin: 0 0 8px;
}

.result-content p {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.4;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

/* 6. Network State Annotations */
.network-status-bar {
    background: #111;
    color: #fff;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
}

.ns-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-right: 12px;
}

.ns-value {
    font-family: var(--serif);
    font-size: 16px;
}

@media (max-width: 768px) {
    .intent-shell { padding: 80px 20px 40px; }
    .intent-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .results-grid { grid-template-columns: 1fr; }
    .network-status-bar { flex-direction: column; gap: 12px; align-items: flex-start; padding: 16px 20px; }
}
