/**
 * Termómetro de Tendencias widget styles.
 *
 * @package blog_Trendy
 */

.termometro-tendencias-section {
	padding: 0 var(--trendy-container-padding, 24px) 64px;
	background-color: #fafafa;
}

.termometro-tendencias-section__inner {
	max-width: var(--trendy-container-max, 1280px);
	margin: 0 auto;
}

.termometro-tendencias {
	margin: 0 0 40px;
	padding: 28px 32px;
	background: var(--trendy-color-white, #ffffff);
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(166, 94, 186, 0.12);
}

.termometro-tendencias-section .termometro-tendencias {
	margin-bottom: 0;
}

.termometro-tendencias__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-top: 28px;
	text-align: center;
}

.termometro-tendencias__footer-text {
	margin: 0;
	max-width: 36rem;
	font-family: "Nunito", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #6b6b6b;
}

.termometro-tendencias__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
}

.termometro-tendencias__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
}

.termometro-tendencias__icon-img {
	display: block;
	width: 22px;
	height: 22px;
}

.termometro-tendencias__title {
	margin: 0;
	font-family: "Nunito", sans-serif;
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.3;
	color: #333333;
}

.termometro-tendencias__list {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.termometro-tendencias__item {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 12px;
	align-items: start;
}

.termometro-tendencias__rank {
	padding-top: 2px;
	font-family: "Nunito", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: #b0b0b0;
}

.termometro-tendencias__content {
	min-width: 0;
}

.termometro-tendencias__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 10px;
}

.termometro-tendencias__link {
	flex: 1 1 auto;
	min-width: 0;
	font-family: "Nunito", sans-serif;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
	color: #333333;
	text-decoration: none;
	transition: color 0.2s ease;
}

.termometro-tendencias__link:hover,
.termometro-tendencias__link:focus {
	color: #ff2d95;
	text-decoration: none;
}

.termometro-tendencias__views {
	flex-shrink: 0;
	font-family: "Nunito", sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
	color: #ff2d95;
	white-space: nowrap;
}

.termometro-tendencias__bar {
	width: 100%;
	height: 10px;
	overflow: hidden;
	background: #f0f0f0;
	border-radius: 999px;
}

.termometro-tendencias__bar-fill {
	display: block;
	height: 100%;
	min-width: 0;
	/* Solid fills by rank (no gradients) */
	background: #ff1493;
	border-radius: 999px;
	transition: width 0.35s ease;
}

.termometro-tendencias__item:nth-child(1) .termometro-tendencias__bar-fill {
	background: #ff1493;
}

.termometro-tendencias__item:nth-child(2) .termometro-tendencias__bar-fill {
	background: #f32b98;
}

.termometro-tendencias__item:nth-child(3) .termometro-tendencias__bar-fill {
	background: #e7389c;
}

.termometro-tendencias__item:nth-child(4) .termometro-tendencias__bar-fill {
	background: #ce49a5;
}

.termometro-tendencias__item:nth-child(5) .termometro-tendencias__bar-fill {
	background: #b553ae;
}

.termometro-tendencias__item:nth-child(6) .termometro-tendencias__bar-fill {
	background: #9b59b6;
}

.termometro-tendencias__cta,
.termometro-tendencias__cta:link,
.termometro-tendencias__cta:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 14px 24px;
	font-family: "Nunito", sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
	color: #ffffff;
	text-decoration: none;
	background: linear-gradient(90deg, #ff1493 0%, #9b59b6 100%);
	border-radius: 999px;
	box-shadow: 0 4px 16px rgba(255, 45, 149, 0.28);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.termometro-tendencias__cta:hover,
.termometro-tendencias__cta:focus,
.termometro-tendencias__cta:active {
	color: #ffffff;
	text-decoration: none;
	opacity: 0.92;
	transform: translateY(-1px);
}

.termometro-tendencias__cta-icon {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
}

.termometro-tendencias__cta-arrow {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

@media screen and (max-width: 768px) {
	.termometro-tendencias-section {
		padding: 0 var(--trendy-container-padding, 16px) 48px;
	}

	.termometro-tendencias {
		margin-bottom: 32px;
		padding: 22px 20px;
	}

	.termometro-tendencias-section .termometro-tendencias {
		margin-bottom: 0;
	}

	.termometro-tendencias__list {
		gap: 18px;
	}

	.termometro-tendencias__item {
		grid-template-columns: 22px 1fr;
		gap: 10px;
	}

	.termometro-tendencias__link {
		font-size: 0.9375rem;
	}

	.termometro-tendencias__views {
		font-size: 0.8125rem;
	}
}
