/* ============================================================
   styles.css — xhothub
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */
body {
    background-color: #000000;
    color: #f4f4f5;
}

/* ── Ocultar scrollbar manteniendo scroll ─────────────────── */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ── Utilidades de texto ──────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.neon-text {
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.neon-orange {
    text-shadow: 0 0 12px rgba(255, 144, 0, 0.6);
}

/* ── Toggle Switch ────────────────────────────────────────── */
.toggle-checkbox:checked {
    right: 0;
    border-color: #ff9000;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: #ff9000;
}

/* ── Sistema de enrutamiento SPA ─────────────────────────── */
.view-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}
.view-section.active {
    display: flex;
    flex-direction: column;
}

/* ── Chip activo en categorías ────────────────────────────── */
.active-chip {
    background-color: #27272a !important; /* zinc-800 */
    color: #ffffff !important;
    border-color: #3f3f46 !important;
}

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes fadeIn {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0);    }
}

@keyframes slideUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0);    }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

/* ── Skeleton / Loading shimmer ──────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% auto;
    animation: shimmer 1.4s linear infinite;
    border-radius: 8px;
}

/* ── Tarjeta de video: barra de progreso random ───────────── */
.video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #ef4444;
    z-index: 20;
    border-radius: 0 2px 2px 0;
    transition: width 0.3s;
}

/* ── Perfil: cover image hover ────────────────────────────── */
.profile-cover-img {
    filter: brightness(0.75);
    transition: filter 0.5s, transform 0.5s;
}
.profile-cover-img:hover {
    filter: brightness(0.9);
    transform: scale(1.03);
}

/* ── Grid de perfil: hover overlay ───────────────────────── */
#profileGrid > div::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,144,0,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
#profileGrid > div:hover::after {
    opacity: 1;
}

/* ── Modal backdrop (extra seguridad) ────────────────────── */
[id$="Modal"].flex {
    display: flex !important;
}

/* ── Chat bubbles ─────────────────────────────────────────── */
#chatHistory::-webkit-scrollbar { width: 4px; }
#chatHistory::-webkit-scrollbar-track { background: transparent; }
#chatHistory::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* ── Barra de búsqueda animada ────────────────────────────── */
#searchBar {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ── Botón activo del tab de perfil ───────────────────────── */
.profile-tab {
    position: relative;
    transition: color 0.2s;
}
.profile-tab.text-brand-phOrange::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #ff9000;
    border-radius: 2px 2px 0 0;
}

/* ── Responsive: xs breakpoint custom ────────────────────── */
@media (min-width: 480px) {
    .xs\:inline { display: inline; }
}

/* ── Scrollbar global (desktop) ──────────────────────────── */
@media (min-width: 1024px) {
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: #0a0a0a; }
    ::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: #555; }
}

/* ── Animación de entrada para tarjetas ──────────────────── */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out both;
}

/* ── Sombra neon para botones principales ────────────────── */
.btn-neon-orange {
    box-shadow: 0 0 15px rgba(255, 144, 0, 0.35);
    transition: box-shadow 0.3s;
}
.btn-neon-orange:hover {
    box-shadow: 0 0 25px rgba(255, 144, 0, 0.55);
}

.btn-neon-red {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
    transition: box-shadow 0.3s;
}
.btn-neon-red:hover {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.55);
}

/* ── Focus visible accesible ─────────────────────────────── */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid #ff9000;
    outline-offset: 2px;
}