/* BotWick Intent Graph Styles */

:root {
    --bg-panel: #161b22;
    --bg-card: #21262d;
    --border: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background: #0d1117;
    color: #f0f6fc;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* Identity Panel - Dark sidebar */
.identity-panel {
    width: 280px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    color: var(--text-primary);
}

.identity-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.identity-name h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.identity-name .creature {
    color: var(--text-secondary);
    font-size: 14px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.active {
    background: #3fb950;
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

hr {
    border: none;
    border-top: 1px solid var(--border);
}

.info-section h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.info-section p {
    color: var(--text-secondary);
}

.info-section a {
    color: #58a6ff;
    text-decoration: none;
}

.info-section a:hover {
    text-decoration: underline;
}

/* Intent Types */
.intent-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.type-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #f0f6fc;
}

/* Context Dimensions */
.context-dims {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dim-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.dim-icon {
    width: 20px;
    text-align: center;
}

.footer {
    margin-top: auto;
    color: var(--text-muted);
    font-size: 12px;
}

/* Graph Area - Light background */
.graph-area {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #0d1117;
    min-height: 500px;
}

#graph {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

#graph svg {
    width: 100%;
    height: 100%;
}

/* Detail Panel */
.detail-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #0d1117;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.detail-panel.hidden {
    display: none;
}

.detail-panel h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #f0f6fc;
}

.detail-panel p {
    font-size: 13px;
    color: #59636e;
    margin-bottom: 16px;
}

.context-bar {
    margin-bottom: 12px;
}

.context-bar span {
    font-size: 11px;
    color: #8b949e;
    display: block;
    margin-bottom: 4px;
}

.bar {
    height: 6px;
    background: #30363d;
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.context-info {
    font-size: 12px;
    color: #59636e;
    line-height: 1.6;
    margin-bottom: 12px;
}

.context-info span {
    color: #8b949e;
}

.sources {
    font-size: 11px;
    color: #8b949e;
    padding-top: 12px;
    border-top: 1px solid #e1e4e8;
}

.sources span {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .identity-panel {
        width: 100%;
        height: auto;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .graph-area {
        height: calc(100vh - 200px);
    }
    
    .detail-panel {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
    }
}
