/* ===== POSTULATES STYLING ===== */

/* Postulates category header */
.tag-category-postulates {
    border-left: 3px solid #6366f1;
    margin-bottom: var(--space-4);
}

.tag-category-postulates .postulates-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: var(--weight-semi);
}

.tag-category-postulates .postulates-header:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* AUTO badge */
.auto-badge {
    display: inline-block;
    padding: 2px var(--space-2);
    background: var(--color-success-500);
    color: white;
    border-radius: var(--radius-xs);
    font-size: var(--font-2xs);
    font-weight: var(--weight-bold);
    margin-left: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Postulate subsection groups */
.tree-subcategory-group {
    margin: var(--space-2) 0;
}

/* DEAD: .subcategory-group-header — header markup not present */
/* DEAD: .subcategory-group-header .subsection-icon — icon markup not present */
/* DEAD: .subsection-children — not in current tree implementation */
/* DEAD: .subsection-children.hidden — hide/show state not used */

/* Postulate items */
.tree-postulate-item {
    display: flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    margin: 2px 0;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: var(--font-sm);
}

.tree-postulate-item:hover {
    background: var(--surface-hover);
}

.tree-postulate-item.selected {
    background: rgba(59, 130, 246, 0.15);
    border-left: 3px solid var(--color-brand-500);
}

.tree-postulate-item.clicking {
    transform: scale(0.98);
}

.tree-postulate-item .checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-default);
    border-radius: 3px;
    margin-right: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tree-postulate-item.selected .checkbox {
    background: var(--color-brand-500);
    border-color: var(--color-brand-500);
}

.tree-postulate-item.selected .checkbox::after {
    content: '✓';
    color: white;
    font-size: var(--font-xs);
    font-weight: var(--weight-bold);
}

/* DEAD: .tree-postulate-item .expand-icon.mini — expand icons not in markup */

.tree-postulate-item .item-name {
    flex: 1;
    color: var(--text-primary);
}

.tree-postulate-item .item-count {
    color: var(--text-secondary);
    font-size: var(--font-2xs);
    font-weight: var(--weight-semi);
    margin-left: var(--space-2);
}

/* Postulate children (nested cities under countries) */
.postulate-children {
    margin-left: var(--space-4);
}

/* Tag display on message cards */
.tag {
    display: inline-block;
    padding: 3px var(--space-2);
    margin: 2px;
    border-radius: var(--radius-xs);
    font-size: var(--font-2xs);
    font-weight: var(--weight-medium);
    font-family: 'Monaco', 'Consolas', monospace;
}

.tag-postulate-geo {
    background: var(--color-brand-500);
    color: white;
}

.tag-postulate-lang {
    background: #8b5cf6;
    color: white;
}

.tag-postulate-action {
    background: var(--color-success-500);
    color: white;
}

.tag-postulate-risk {
    background: var(--color-error-500);
    color: white;
}

.tag-canonical {
    background: var(--text-muted);
    color: white;
}
