/**
 * Single Noticia Metadata Styles
 * Estilos para los campos personalizados (ciudad y boletín) en la vista single
 *
 * @package Fiscalia
 * @since 1.0.0
 */

/* Contenedor de metadata en single */
.single-noticia-metadata {
	display: flex !important;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	padding: 16px 0;
	border-top: 2px solid #e0e0e0;
	border-bottom: 2px solid #e0e0e0;
	margin: 24px 0;
}

/* Grupos de metadata individuales */
.single-noticia-metadata .wp-block-group {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #444;
	transition: color 0.2s ease;
}

.single-noticia-metadata .wp-block-group:hover {
	color: #1e3a5f;
}

/* Ocultar por defecto los contenedores de ciudad y boletín */
.single-meta-ciudad,
.single-meta-boletin {
	display: none !important;
	align-items: center;
	gap: 8px;
}

/* Cuando se muestran con JS */
.single-meta-ciudad[style*="display: flex"],
.single-meta-boletin[style*="display: flex"] {
	display: flex !important;
}

/* Iconos dashicons en metadata */
.single-noticia-metadata .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	color: #1e3a5f;
	flex-shrink: 0;
}

/* Textos de metadata */
.meta-ciudad-text,
.meta-boletin-text {
	font-size: 14px;
	color: #444;
	font-weight: 500;
	line-height: 1.4;
}

/* Badges de categoría */
.single-noticia-category-badge {
	display: inline-block;
	padding: 6px 14px;
	background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 4px;
	margin-bottom: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single-noticia-category-badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(30, 58, 95, 0.2);
}

.single-noticia-category-badge a {
	color: inherit !important;
	text-decoration: none !important;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.single-noticia-metadata {
		gap: 12px;
		padding: 12px 0;
	}

	.single-noticia-metadata .wp-block-group {
		font-size: 13px;
	}

	.meta-ciudad-text,
	.meta-boletin-text {
		font-size: 13px;
	}

	.single-noticia-metadata .dashicons {
		width: 18px;
		height: 18px;
		font-size: 18px;
	}
}

@media screen and (max-width: 480px) {
	.single-noticia-metadata {
		gap: 8px;
		flex-direction: column;
		align-items: flex-start;
	}

	.single-noticia-metadata .wp-block-group {
		width: 100%;
	}
}

/* Animación de aparición */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.single-meta-ciudad[style*="display: flex"],
.single-meta-boletin[style*="display: flex"] {
	animation: fadeInUp 0.3s ease-out;
}

/* Mejora visual de términos de categoría */
.wp-block-post-terms a {
	color: #1e3a5f;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.wp-block-post-terms a:hover {
	color: #c9a227;
	text-decoration: underline;
}

/* Extracto de la noticia en single */
.single-noticia-excerpt {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.single-noticia-excerpt .wp-block-post-excerpt__excerpt {
	font-size: 17px;
	line-height: 1.6;
	color: #444;
	font-weight: 500;
	padding: 24px;
	background: #f8f9fa;
	border-left: 4px solid #1e3a5f;
	border-radius: 4px;
	margin: 0;
}

/* Clase para indicar que tiene traducción */
.wp-block-post-excerpt__excerpt.has-translation.lang-en {
	border-left-color: #c9a227;
	background: #fffbf0;
}

/* Animación de cambio de idioma */
.wp-block-post-excerpt__excerpt {
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
