/**
 * CHUQUIPIONDO Core - Front-end styles.
 */

/* Reading progress bar. */
.chuqui-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	z-index: 99999;
	background: transparent;
}

.chuqui-reading-progress__bar {
	height: 100%;
	width: 0%;
	background: var(--sky, #27b6ff);
	transition: width 0.1s linear;
}

/* Reading time badge. */
.chuqui-reading-time-badge {
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 16px;
	background: rgba(39, 182, 255, 0.1);
	color: var(--navy, #0a1f44);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
}

/* Back to top button. */
.chuqui-back-to-top {
	position: fixed;
	bottom: 80px;
	right: 20px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--navy, #0a1f44);
	color: var(--white, #ffffff);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9998;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chuqui-back-to-top:not([hidden]) {
	opacity: 1;
}

.chuqui-back-to-top:hover {
	transform: translateY(-4px);
	background: var(--sky, #27b6ff);
	color: var(--navy-dark, #06133a);
}

.chuqui-back-to-top svg {
	width: 24px;
	height: 24px;
}

/* Recent posts widget. */
.chuqui-recent-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chuqui-recent-post {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(10, 31, 68, 0.06);
}

.chuqui-recent-post:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.chuqui-recent-post__thumb {
	flex-shrink: 0;
}

.chuqui-recent-post__thumb img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
}

.chuqui-recent-post__body {
	flex: 1;
	min-width: 0;
}

.chuqui-recent-post__title {
	font-size: 14px;
	margin: 0 0 4px;
	line-height: 1.3;
}

.chuqui-recent-post__title a {
	color: var(--navy, #0a1f44);
	text-decoration: none;
}

.chuqui-recent-post__title a:hover {
	color: var(--sky, #27b6ff);
}

.chuqui-recent-post__date {
	font-size: 12px;
	color: var(--muted, #5b6678);
}

/* Tabs widget. */
.chuqui-tabs-widget {
	margin: 0;
}

.chuqui-tabs__nav {
	display: flex;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	border-bottom: 2px solid rgba(10, 31, 68, 0.06);
}

.chuqui-tabs__nav li {
	margin: 0;
}

.chuqui-tabs__nav a {
	display: block;
	padding: 8px 16px;
	text-decoration: none;
	color: var(--muted, #5b6678);
	font-weight: 500;
	font-size: 13px;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}

.chuqui-tabs__nav li.active a {
	color: var(--sky, #27b6ff);
	border-bottom-color: var(--sky, #27b6ff);
}

.chuqui-tab-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chuqui-tab-list li {
	padding: 6px 0;
	border-bottom: 1px solid rgba(10, 31, 68, 0.04);
}

.chuqui-tab-list a {
	color: var(--navy, #0a1f44);
	text-decoration: none;
	font-size: 14px;
}

.chuqui-tab-list a:hover {
	color: var(--sky, #27b6ff);
}

/* Stats widget. */
.chuqui-stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: space-around;
	gap: 12px;
}

.chuqui-stats li {
	text-align: center;
}

.chuqui-stats__num {
	display: block;
	font-size: 24px;
	font-weight: 800;
	color: var(--navy, #0a1f44);
	font-family: var(--font-heading, sans-serif);
}

.chuqui-stats__label {
	display: block;
	font-size: 12px;
	color: var(--muted, #5b6678);
}

/* Core posts grid. */
.chuquipiondo-core-posts,
.chuquipiondo-core-music,
.chuquipiondo-core-categories {
	display: grid;
	gap: 20px;
}

.chuquipiondo-core-posts {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767px) {
	.chuquipiondo-core-posts,
	.chuquipiondo-core-music {
		grid-template-columns: 1fr !important;
	}
}
