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

/* Postulates category header */
.tag-category-postulates {
    border-left: 3px solid #6366f1;
    margin-bottom: 1rem;
}

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

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

/* AUTO badge */
.auto-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #22c55e;
    color: white;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
    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: 0.5rem 0;
}

.subcategory-group-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #374151;
}

.subcategory-group-header:hover {
    background: #e5e7eb;
    transform: translateX(2px);
}

.subcategory-group-header .subsection-icon {
    font-size: 16px;
    margin: 0 8px;
}

.subcategory-group-header .subsection-name {
    flex: 1;
    font-size: 13px;
}

.subcategory-group-header .subsection-count {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

.subsection-children {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 2px solid #e5e7eb;
}

.subsection-children.hidden {
    display: none;
}

.subsection-children.visible {
    display: block;
}

/* Postulate items */
.tree-postulate-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 13px;
}

.tree-postulate-item:hover {
    background: #f9fafb;
}

.tree-postulate-item.selected {
    background: #dbeafe;
    border-left: 3px solid #3b82f6;
}

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

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

.tree-postulate-item.selected .checkbox {
    background: #3b82f6;
    border-color: #3b82f6;
}

.tree-postulate-item.selected .checkbox::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.tree-postulate-item .expand-icon.mini {
    font-size: 12px;
    margin-right: 4px;
    color: #6b7280;
}

.tree-postulate-item .item-name {
    flex: 1;
    color: #374151;
}

.tree-postulate-item .item-count {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* Postulate children (nested cities under countries) */
.postulate-children {
    margin-left: 16px;
}

/* Tag display on message cards */
.tag {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Monaco', 'Consolas', monospace;
}

.tag-postulate-geo {
    background: #3b82f6;
    color: white;
}

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

.tag-postulate-action {
    background: #10b981;
    color: white;
}

.tag-postulate-risk {
    background: #ef4444;
    color: white;
}

.tag-canonical {
    background: #6b7280;
    color: white;
}
