/* ==========================================================================
   FEHIVER — Adaptación Estética MobiGlas para Foros Jetonomy (/foros/)
   Armoniza 100% los tokens --jt-* y componentes de Jetonomy con FEHIVER
   ========================================================================== */

:root,
body.fehiver-scifi-theme,
body.fehiver-scifi-theme.jt-dark,
html[data-theme="dark"],
html[data-bx-mode="dark"] {
	--jt-font: var(--fv-font-sans, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
	--jt-font-heading: var(--fv-font-sans, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
	--jt-font-mono: var(--fv-font-mono, 'JetBrains Mono', ui-monospace, monospace);

	--jt-page-bg: #080d14;
	--jt-bg: #0e1623;
	--jt-surface: #111b2a;
	--jt-bg-subtle: #09101a;
	--jt-bg-hover: rgba(101, 184, 201, 0.11);

	--jt-accent: #65b8c9;
	--jt-accent-hover: #7fd4e6;
	--jt-accent-fg: #051018;
	--jt-accent-hover-fg: #040b11;
	--jt-accent-light: rgba(101, 184, 201, 0.13);
	--jt-accent-muted: rgba(101, 184, 201, 0.2);

	--jt-text: #eaf3fb;
	--jt-text-secondary: #a7bdd2;
	--jt-text-tertiary: #7d95ad;

	--jt-border: rgba(101, 184, 201, 0.2);
	--jt-border-strong: rgba(101, 184, 201, 0.44);

	--jt-success: #64b88c;
	--jt-success-light: rgba(100, 184, 140, 0.16);
	--jt-warn: #e2bd74;
	--jt-warn-light: rgba(226, 189, 116, 0.16);
	--jt-danger: #e06c75;
	--jt-danger-light: rgba(224, 108, 117, 0.18);

	--jt-radius: 8px;
	--jt-radius-sm: 5px;
	--jt-radius-lg: 11px;
	--jt-shadow-xs: 0 2px 6px rgba(0, 0, 0, 0.25);
	--jt-shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.34);
	--jt-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
	--jt-shadow-lg: 0 20px 52px rgba(0, 0, 0, 0.62);
}

/* Lienzo principal de Jetonomy */
.jt-app {
	color: #eaf3fb !important;
	background: transparent !important;
}

.jt-app a {
	color: #d6e7f7;
}

.jt-app a:hover {
	color: #8ce0f0;
}

/* Barra superior de navegación del foro */
.jt-app .jt-community-nav {
	background: linear-gradient(135deg, rgba(16, 25, 38, 0.96), rgba(9, 14, 22, 0.98)) !important;
	border: 1px solid rgba(101, 184, 201, 0.28) !important;
	border-left: 3px solid #65b8c9 !important;
	border-radius: 10px !important;
	padding: 6px 14px !important;
	margin-bottom: 20px !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34) !important;
}

.jt-app .jt-community-nav-links a {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	color: #9cb3c9 !important;
	padding: 10px 13px !important;
	border-radius: 6px 6px 0 0;
}

.jt-app .jt-community-nav-links a:hover,
.jt-app .jt-community-nav-links a.active,
.jt-app .jt-community-nav-links a[aria-current="page"] {
	color: #8ee0f0 !important;
	border-bottom-color: #65b8c9 !important;
	background: rgba(101, 184, 201, 0.09) !important;
}

/* Títulos de página y cabeceras de espacio */
.jt-app .jt-page-title,
.jt-app .jt-space-header,
.jt-app .jt-space-hero {
	color: #f3f9ff !important;
}

.jt-app .jt-space-header,
.jt-app .jt-space-hero {
	background: linear-gradient(135deg, rgba(16, 25, 38, 0.96), rgba(9, 14, 22, 0.98)) !important;
	border: 1px solid rgba(101, 184, 201, 0.28) !important;
	border-left: 3px solid #65b8c9 !important;
	border-radius: 11px !important;
	padding: 20px 22px !important;
	margin-bottom: 18px !important;
}

/* Tarjetas, paneles, espacios y listas de temas */
.jt-app .jt-card,
.jt-app .jt-panel,
.jt-app .jt-widget,
.jt-app .jt-sidebar-card,
.jt-app .jt-post-card,
.jt-app .jt-feed-card,
.jt-app .jt-reply-card,
.jt-app .jt-topics,
.jt-app .jt-space-card,
.jt-app .jt-category-card,
.jt-app .jt-cat-group,
.jt-app .jt-composer,
.jt-app .jt-compose-topic-embed,
.jt-app .jt-empty-state {
	background: linear-gradient(180deg, rgba(16, 25, 38, 0.95), rgba(10, 16, 25, 0.98)) !important;
	border: 1px solid rgba(101, 184, 201, 0.22) !important;
	border-radius: 10px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.jt-app .jt-card-title,
.jt-app .jt-widget-title,
.jt-app .jt-cat-name,
.jt-app .jt-cat-name a {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace) !important;
	letter-spacing: 0.04em !important;
	color: #8ee0f0 !important;
}

/* Filas de temas y espacios */
.jt-app .jt-row,
.jt-app .jt-topic-row,
.jt-app .jt-space-row {
	border-color: rgba(154, 178, 204, 0.13) !important;
	transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

.jt-app .jt-row:hover,
.jt-app .jt-topic-row:hover,
.jt-app .jt-space-row:hover {
	background: rgba(101, 184, 201, 0.08) !important;
}

.jt-app .jt-row-title-link {
	color: #eef6ff !important;
	font-weight: 600 !important;
}

.jt-app .jt-row-title-link:hover {
	color: #7fd4e6 !important;
}

.jt-app .jt-row-stat {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace) !important;
	color: #8ea6bd !important;
}

/* Chips de categorías y subforos */
.jt-app .jt-cat-chip,
.jt-app .jt-subspaces__link,
.jt-app .jt-pill,
.jt-app .jt-tag,
.jt-app a.jt-tag {
	background: rgba(9, 15, 24, 0.88) !important;
	border: 1px solid rgba(101, 184, 201, 0.26) !important;
	color: #c8dcf0 !important;
	border-radius: 8px !important;
	transition: all 0.15s ease !important;
}

.jt-app .jt-cat-chip:hover,
.jt-app .jt-cat-chip.is-active,
.jt-app .jt-cat-chip.active,
.jt-app .jt-subspaces__link:hover,
.jt-app .jt-pill.active,
.jt-app .jt-pill:hover {
	background: rgba(101, 184, 201, 0.18) !important;
	border-color: #65b8c9 !important;
	color: #ffffff !important;
}

.jt-app .jt-subspaces__link {
	border-left: 3px solid #65b8c9 !important;
}

.jt-app .jt-cat-chip-count,
.jt-app .jt-subspaces__count {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace) !important;
	color: #7fcad9 !important;
}

/* Botones tácticos */
.jt-app .jt-btn {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.03em !important;
	border-radius: 7px !important;
	transition: all 0.15s ease !important;
}

.jt-app .jt-btn-fill {
	background: linear-gradient(135deg, #65b8c9 0%, #489bb0 100%) !important;
	border: 1px solid #84d6e6 !important;
	color: #061018 !important;
	box-shadow: 0 0 14px rgba(101, 184, 201, 0.22) !important;
}

.jt-app .jt-btn-fill:hover {
	filter: brightness(1.08);
	color: #040b11 !important;
	transform: translateY(-1px);
}

.jt-app .jt-btn-ghost {
	background: rgba(14, 22, 34, 0.9) !important;
	border: 1px solid rgba(154, 178, 204, 0.28) !important;
	color: #dce9f5 !important;
}

.jt-app .jt-btn-ghost:hover {
	border-color: #65b8c9 !important;
	background: rgba(101, 184, 201, 0.14) !important;
	color: #ffffff !important;
}

.jt-app .jt-btn-danger {
	background: rgba(224, 108, 117, 0.18) !important;
	border: 1px solid rgba(224, 108, 117, 0.5) !important;
	color: #ffb0b6 !important;
}

/* Inputs, búsqueda y editor */
.jt-app .jt-input,
.jt-app input[type="text"],
.jt-app input[type="search"],
.jt-app input[type="email"],
.jt-app input[type="url"],
.jt-app select,
.jt-app textarea {
	background: #080e16 !important;
	border: 1px solid rgba(154, 178, 204, 0.25) !important;
	border-radius: 8px !important;
	color: #eef5fc !important;
}

.jt-app .jt-input:focus,
.jt-app input:focus,
.jt-app select:focus,
.jt-app textarea:focus {
	border-color: #65b8c9 !important;
	box-shadow: 0 0 0 3px rgba(101, 184, 201, 0.16) !important;
	outline: none !important;
}

.jt-app .jt-editor-bar {
	background: #0b121d !important;
	border-color: rgba(101, 184, 201, 0.22) !important;
}

.jt-app .jt-editor-bar button,
.jt-app .jt-editor-bar-btn {
	color: #b5cbe0 !important;
}

.jt-app .jt-editor-bar button:hover {
	background: rgba(101, 184, 201, 0.16) !important;
	color: #ffffff !important;
}

/* Badges de estado */
.jt-app .jt-badge-pinned {
	background: rgba(226, 189, 116, 0.18) !important;
	border: 1px solid rgba(226, 189, 116, 0.45) !important;
	color: #f4d38a !important;
}

.jt-app .jt-accepted-tag {
	background: rgba(100, 184, 140, 0.18) !important;
	border: 1px solid rgba(100, 184, 140, 0.48) !important;
	color: #93ebbd !important;
}

.jt-app .jt-badge-closed {
	background: rgba(224, 108, 117, 0.16) !important;
	border: 1px solid rgba(224, 108, 117, 0.4) !important;
	color: #ffa6ad !important;
}

/* Menús desplegables, popovers y modales */
.jt-app .jt-more-dropdown,
.jt-app .jt-popover,
.jt-app .jt-modal,
.jt-app .jt-modal-content,
.jt-app .jt-emoji-picker {
	background: #0d1522 !important;
	border: 1px solid rgba(101, 184, 201, 0.36) !important;
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.72) !important;
	color: #eaf3fb !important;
}

/* Breadcrumbs y paginación */
.jt-app .jt-crumb,
.jt-app .jt-crumb a {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace) !important;
	font-size: 11.5px !important;
	color: #829cb5 !important;
}

.jt-app .jt-pagination-link {
	background: rgba(12, 19, 30, 0.9) !important;
	border: 1px solid rgba(101, 184, 201, 0.24) !important;
	color: #c8dcf0 !important;
	border-radius: 7px !important;
}

.jt-app .jt-pagination-link.active,
.jt-app .jt-pagination-link:hover {
	background: rgba(101, 184, 201, 0.2) !important;
	border-color: #65b8c9 !important;
	color: #ffffff !important;
}
