/**
 * Webapp Badge Components
 * Badge, tag, and label styles
 */

/* ═══════════════════════════════════════════════════════════════
   BADGE TAG (Primary Badge Style)
   ═══════════════════════════════════════════════════════════════ */

.badge-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(var(--brand-primary-rgb, 220, 53, 69), 0.1);
    border-radius: var(--radius-round, 50px);
    color: var(--brand-primary, #dc3545);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    border: 1px solid rgba(var(--brand-primary-rgb, 220, 53, 69), 0.2);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.badge-tag:hover {
    background: rgba(var(--brand-primary-rgb, 220, 53, 69), 0.15);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   ROLE TAGS
   ═══════════════════════════════════════════════════════════════ */

.role-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 600;
    background: var(--c-row);
    color: var(--c-muted);
    border: 1px solid var(--c-border);
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.role-tag:hover {
    background: var(--c-row-h);
    border-color: var(--brand-primary, #dc3545);
}

/* ═══════════════════════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════════════════════ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-round, 50px);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-badge-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-badge-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .status-badge-warning,
body.dark-mode .status-badge-warning {
    color: #ffd700;
}

/* ═══════════════════════════════════════════════════════════════
   COUNT BADGES
   ═══════════════════════════════════════════════════════════════ */

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--brand-primary, #dc3545);
    color: white;
    border-radius: var(--radius-circle, 50%);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY TAGS
   ═══════════════════════════════════════════════════════════════ */

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md, 12px);
    color: var(--c-text);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: var(--c-row-h);
    border-color: var(--brand-primary, #dc3545);
    color: var(--brand-primary, #dc3545);
}

/* ═══════════════════════════════════════════════════════════════
   PILL BADGES
   ═══════════════════════════════════════════════════════════════ */

.pill-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb, 220, 53, 69), 0.9), rgba(var(--brand-primary-rgb, 220, 53, 69), 0.7));
    color: white;
    border-radius: var(--radius-round, 50px);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb, 220, 53, 69), 0.3);
    transition: all 0.3s ease;
}

.pill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--brand-primary-rgb, 220, 53, 69), 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   ICON BADGES
   ═══════════════════════════════════════════════════════════════ */

.icon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md, 12px);
    color: var(--c-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.icon-badge i {
    color: var(--brand-primary, #dc3545);
}

.icon-badge:hover {
    border-color: var(--brand-primary, #dc3545);
    box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════
   NEW/UPDATED INDICATORS
   ═══════════════════════════════════════════════════════════════ */

.badge-new {
    position: relative;
}

.badge-new::after {
    content: 'NY';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.badge-updated::after {
    content: '!';
    background: #ffc107;
    color: #000;
}
