/**
 * YAKUZA MANGA — Estilos del Radar de Pausas de Publicación (Diseño Compacto y Optimizado)
 */

.ykz-radar-container {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	max-width: 1180px;
	width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 15px;
	margin-bottom: 75px;
	padding-left: 105px;
	padding-right: 105px;
	box-sizing: border-box;
	color: #1f2937;
	position: relative;
	z-index: 1;
}

/* =========================================================
   1. HERO HEADER Y STATS (COMPACTO)
========================================================= */
.ykz-radar-header {
	text-align: center;
	margin-bottom: 16px;
	padding: 18px 16px 16px 16px;
	background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.ykz-radar-eyebrow {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #C1121F;
	background: #fee2e2;
	padding: 3px 10px;
	border-radius: 16px;
	margin-bottom: 6px;
}

.ykz-radar-title {
	font-size: 1.55rem;
	font-weight: 800;
	color: #111827;
	margin: 0 0 6px 0;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.ykz-radar-subtitle {
	font-size: 0.88rem;
	color: #4b5563;
	max-width: 620px;
	margin: 0 auto 10px auto;
	line-height: 1.45;
}

.ykz-radar-header-actions {
	margin-bottom: 16px;
	display: flex;
	justify-content: center;
}

.ykz-radar-guide-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1.5px solid #d1d5db;
	color: #374151 !important;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 0.76rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.2s ease;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ykz-radar-guide-btn:hover {
	background: #C1121F;
	color: #ffffff !important;
	border-color: #C1121F;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(193, 18, 31, 0.18);
}

.ykz-radar-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	max-width: 780px;
	margin: 0 auto;
}

.ykz-stat-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 10px 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform 0.2s ease;
}

.ykz-stat-card:hover {
	transform: translateY(-2px);
}

.ykz-stat-num {
	font-size: 1.25rem;
	font-weight: 800;
	color: #111827;
	line-height: 1.1;
	margin-bottom: 2px;
}

.ykz-stat-label {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #6b7280;
	letter-spacing: 0.02em;
	text-align: center;
}

.stat-proximas .ykz-stat-num { color: #059669; }
.stat-pausas .ykz-stat-num { color: #dc2626; }
.stat-finalizadas .ykz-stat-num { color: #2563eb; }

/* =========================================================
   2. CONTROLES Y FILTROS (COMPACTO)
========================================================= */
.ykz-radar-toolbar {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 14px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.ykz-search-box {
	position: relative;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
}

.ykz-search-icon {
	position: absolute;
	left: 12px;
	color: #9ca3af;
	pointer-events: none;
	display: flex;
	align-items: center;
}

#ykzRadarSearchInput {
	width: 100%;
	padding: 8px 36px 8px 36px;
	font-size: 0.88rem;
	font-family: inherit;
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	background: #f9fafb;
	color: #111827;
	outline: none;
	transition: all 0.2s ease;
}

#ykzRadarSearchInput:focus {
	border-color: #C1121F;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.12);
}

.ykz-search-clear {
	position: absolute;
	right: 10px;
	background: #e5e7eb;
	border: none;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	color: #4b5563;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ykz-filter-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.ykz-filter-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.ykz-tab-btn {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 5px 11px;
	font-size: 0.76rem;
	font-weight: 600;
	color: #4b5563;
	cursor: pointer;
	transition: all 0.18s ease;
	font-family: inherit;
}

.ykz-tab-btn:hover {
	background: #e5e7eb;
	color: #111827;
}

.ykz-tab-btn.active {
	background: #111827;
	color: #ffffff;
	border-color: #111827;
}

.btn-tab-proximo.active {
	background: #059669;
	border-color: #059669;
	color: #ffffff;
}

.btn-tab-pausa.active {
	background: #dc2626;
	border-color: #dc2626;
	color: #ffffff;
}

.btn-tab-espera.active {
	background: #d97706;
	border-color: #d97706;
	color: #ffffff;
}

.btn-tab-finalizada.active {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

.ykz-select-editorial-wrap {
	position: relative;
	min-width: 180px;
	display: inline-flex;
	align-items: center;
}

.ykz-select-editorial {
	width: 100%;
	padding: 6px 30px 6px 11px;
	font-size: 0.8rem;
	font-weight: 600;
	font-family: inherit;
	border: 1.5px solid #d1d5db;
	border-radius: 7px;
	background: #ffffff;
	color: #111827;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	transition: all 0.2s ease;
}

.ykz-select-editorial:hover {
	border-color: #9ca3af;
}

.ykz-select-editorial:focus {
	border-color: #C1121F;
	outline: none;
	box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.12);
}

.ykz-select-arrow {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #C1121F;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ykz-radar-results-info {
	font-size: 0.78rem;
	color: #6b7280;
	font-weight: 600;
	margin-bottom: 12px;
	padding: 0 2px;
}

/* =========================================================
   3. CUADRÍCULA DE TARJETAS DE SERIES (COMPACTO)
========================================================= */
.ykz-radar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
}

.ykz-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	position: relative;
}

.ykz-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 14px -3px rgba(0, 0, 0, 0.08);
	border-color: #d1d5db;
}

/* Indicador superior de tipo de estado */
.ykz-card-banner {
	padding: 5px 10px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 5px;
}

.banner-proximo {
	background: #d1fae5;
	color: #065f46;
	border-bottom: 1px solid #a7f3d0;
}

.banner-pausa {
	background: #fee2e2;
	color: #991b1b;
	border-bottom: 1px solid #fecaca;
}

.banner-espera {
	background: #fef3c7;
	color: #92400e;
	border-bottom: 1px solid #fde68a;
}

.banner-finalizada {
	background: #f1f5f9;
	color: #334155;
	border-bottom: 1px solid #e2e8f0;
}

.banner-activa {
	background: #eff6ff;
	color: #1e40af;
	border-bottom: 1px solid #dbeafe;
}

/* Pulso animado para pausas y lanzamientos */
.ykz-pulse-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	display: inline-block;
	background: currentColor;
	animation: ykzPulse 1.8s infinite;
}

@keyframes ykzPulse {
	0% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(1.3); }
	100% { opacity: 1; transform: scale(1); }
}

/* Contenido Principal de la Tarjeta */
.ykz-card-body {
	padding: 10px 12px;
	display: flex;
	gap: 10px;
	flex: 1;
}

.ykz-card-cover-wrap {
	width: 58px;
	min-width: 58px;
	height: 87px;
	border-radius: 6px;
	overflow: hidden;
	background: #1f2937;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ykz-card-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Placeholder elegante cuando no hay imagen o falla */
.ykz-cover-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #1e2532, #111827);
	color: #d4af37;
	text-align: center;
	padding: 4px;
	box-sizing: border-box;
}

.ykz-cover-placeholder svg {
	width: 20px;
	height: 20px;
	stroke: #d4af37;
	stroke-width: 1.6;
	margin-bottom: 2px;
}

.ykz-cover-placeholder span {
	font-size: 0.52rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #9ca3af;
}

.ykz-card-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ykz-card-editorial {
	font-size: 0.7rem;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ykz-card-title {
	font-size: 0.92rem;
	font-weight: 800;
	color: #111827;
	margin: 0 0 5px 0;
	line-height: 1.22;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Métricas destacadas de Tiempo / Contador */
.ykz-card-meter {
	margin-top: auto;
	padding: 5px 8px;
	border-radius: 6px;
	background: #f9fafb;
	border: 1px solid #f3f4f6;
}

.meter-pausa {
	background: #fff5f5;
	border-color: #fed7d7;
}

.meter-proximo {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.meter-finalizada {
	background: #f8fafc;
	border-color: #f1f5f9;
}

.ykz-meter-value {
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 1.1;
	display: block;
	margin-bottom: 2px;
}

.val-danger { color: #dc2626; }
.val-warning { color: #d97706; }
.val-success { color: #059669; }
.val-neutral { color: #4b5563; }

.ykz-meter-sub {
	font-size: 0.7rem;
	color: #6b7280;
	display: block;
	line-height: 1.25;
}

/* Detalle inferior de la tarjeta */
.ykz-card-footer {
	padding: 8px 12px;
	background: #fafafa;
	border-top: 1px solid #f3f4f6;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ykz-card-info-row {
	font-size: 0.73rem;
	color: #4b5563;
	line-height: 1.35;
}

.ykz-card-info-row strong {
	color: #111827;
}

.ykz-card-reason {
	font-size: 0.71rem;
	color: #6b7280;
	font-style: italic;
	background: #ffffff;
	padding: 4px 6px;
	border-radius: 5px;
	border: 1px dashed #e5e7eb;
	line-height: 1.35;
}

/* Botón de Acción */
.ykz-card-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 0.76rem;
	font-weight: 700;
	text-decoration: none !important;
	text-align: center;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.btn-comprar {
	background: #C1121F;
	color: #ffffff !important;
}

.btn-comprar:hover {
	background: #9b0e19;
	color: #ffffff !important;
	transform: translateY(-1px);
}

.btn-aviso,
.btn-preventa {
	background: #059669;
	color: #ffffff !important;
}

.btn-aviso:hover,
.btn-preventa:hover {
	background: #047857;
	color: #ffffff !important;
	transform: translateY(-1px);
}

.btn-finalizada {
	background: #1f2937;
	color: #ffffff !important;
}

.btn-finalizada:hover {
	background: #111827;
	color: #ffffff !important;
	transform: translateY(-1px);
}

/* =========================================================
   4. CARGAR MÁS Y EMPTY STATE
========================================================= */
.ykz-radar-load-more-wrap {
	text-align: center;
	margin-top: 22px;
}

.ykz-radar-load-more-btn {
	background: #ffffff;
	border: 1.5px solid #d1d5db;
	border-radius: 24px;
	padding: 8px 26px;
	font-size: 0.86rem;
	font-weight: 700;
	color: #374151;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
	box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.ykz-radar-load-more-btn:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #111827;
	transform: translateY(-1px);
}

.ykz-radar-empty {
	text-align: center;
	padding: 35px 20px;
	background: #f9fafb;
	border-radius: 10px;
	border: 1px dashed #d1d5db;
	margin-top: 16px;
}

.ykz-empty-icon {
	font-size: 2rem;
	margin-bottom: 8px;
}

.ykz-radar-empty h3 {
	font-size: 1.15rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 4px 0;
}

.ykz-radar-empty p {
	font-size: 0.88rem;
	color: #6b7280;
	margin: 0 0 14px 0;
}

.ykz-empty-btn {
	background: #C1121F;
	color: #ffffff;
	border: none;
	border-radius: 18px;
	padding: 7px 16px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}

/* =========================================================
   5. GUÍA Y TUTORIAL DE USO (LISTA LIMPIA SIN CAJAS)
========================================================= */
.ykz-radar-guide {
	margin-top: 48px;
	padding-top: 36px;
	border-top: 2px solid #f3f4f6;
	scroll-margin-top: 30px;
}

.ykz-guide-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #111827;
	margin: 0 0 22px 0;
	line-height: 1.3;
}

.ykz-guide-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ykz-guide-item {
	/* Sin cajas, sin fondos, sin bordes de tarjeta */
}

.ykz-guide-item-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: #111827;
	margin: 0 0 6px 0;
	line-height: 1.35;
}

.ykz-guide-item-desc {
	font-size: 0.9rem;
	color: #4b5563;
	line-height: 1.6;
	margin: 0;
}

.ykz-guide-sublist {
	list-style: none;
	padding: 0;
	margin: 12px 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ykz-guide-sublist li {
	font-size: 0.88rem;
	color: #374151;
	line-height: 1.55;
	padding-left: 12px;
	border-left: 3px solid #e5e7eb;
}

.ykz-guide-sublist li strong {
	color: #111827;
}

/* =========================================================
   6. RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
	.ykz-radar-container {
		padding-left: 85px;
		padding-right: 85px;
	}
}

@media (max-width: 800px) {
	.ykz-radar-container {
		padding-left: 75px;
		padding-right: 75px;
	}
	.ykz-radar-stats {
		grid-template-columns: repeat(2, 1fr);
	}
	.ykz-radar-grid {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	}
	.ykz-radar-guide {
		margin-top: 36px;
		padding-top: 24px;
	}
}

@media (max-width: 580px) {
	.ykz-radar-container {
		padding-left: 14px;
		padding-right: 14px;
		margin-bottom: 95px;
	}
	.ykz-radar-title {
		font-size: 1.35rem;
	}
	.ykz-filter-row {
		flex-direction: column;
		align-items: stretch;
	}
	.ykz-select-editorial-wrap {
		width: 100%;
	}
	.ykz-radar-grid {
		grid-template-columns: 1fr;
	}
	.ykz-card-body {
		gap: 10px;
	}
	.ykz-card-cover-wrap {
		width: 54px;
		min-width: 54px;
		height: 81px;
	}
}
