/* ============================================
TCC Portal — Category Links v1.0
Prefijo: tcc-cat-
Convierte <li> de categorías en botones clicables.
============================================ */

/* ── Contenedor <li> (reset de estilos de lista) ─────────── */
.tcc-chat-msg-assistant li {
    list-style: none;
    margin-bottom: 0.35rem;
}

/* ── Botón categoría ─────────────────────────────────────── */
.tcc-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    margin: 0.15rem 0.15rem 0.15rem 0;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary, #F8FAFC);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tcc-cat-link::before {
    content: "\f0da"; /* fa-caret-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75em;
    color: var(--accent-gold, #F59E0B);
    flex-shrink: 0;
    opacity: 0.85;
}

.tcc-cat-link:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: var(--accent-gold, #F59E0B);
    color: var(--accent-gold-hover, #FBBF24);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.tcc-cat-link:hover::before {
    opacity: 1;
    transform: translateX(2px);
    transition: transform 0.2s ease;
}

.tcc-cat-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.20);
}

.tcc-cat-link:focus-visible {
    outline: 2px solid var(--accent-gold, #F59E0B);
    outline-offset: 2px;
}

/* ── Responsive: móvil ───────────────────────────────────── */
@media (max-width: 480px) {
    .tcc-cat-link {
        font-size: 0.78rem;
        padding: 0.35rem 0.7rem;
    }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .tcc-cat-link {
        transition: none !important;
    }
    .tcc-cat-link:hover {
        transform: none !important;
    }
    .tcc-cat-link:hover::before {
        transform: none !important;
    }
}

/* ── Print: no mostrar botones ───────────────────────────── */
@media print {
    .tcc-cat-link {
        display: none !important;
    }
}