/* static/css/index.css — page-scoped styles for the homepage cards/pill section */

.index-pill-section { max-width: 1320px; margin-inline: auto; padding-inline: 12px; box-sizing: border-box; }

/* Make the scrolling row full-bleed while preserving inline padding for cards */
.index-cards-section .cards-row {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 6px 12px 0;
	box-sizing: border-box;
	position: relative;
	left: calc(50% - 50vw);
	width: 100vw;
}
.index-cards-section .cards-row::-webkit-scrollbar { display: none; }

/* Market card styles */
.market-card {
	flex: 0 0 auto;
	/* Approximately 75% of the viewport width, constrained to a reasonable range */
	width: clamp(320px, 75vw, 900px);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(16,24,32,0.08);
	display: flex;
	flex-direction: column;
}
.market-card-img {
	/* Image area uses 4:3 aspect ratio */
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eee;
}
.market-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.market-card-body { padding: 0.6rem 0.75rem; text-align: center; }
.market-card-title { font-weight: 700; font-size: 1rem; color: var(--color-evergreen); }
.market-card-sub { font-size: 0.85rem; color: #6c757d; }
/* Indicators for horizontal card rows (created by mercats_list.js) */
.pills-indicator, .markets-indicator, .cards-indicator {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 8px 0 0;
}
.pills-indicator span, .markets-indicator span, .cards-indicator span {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(0,0,0,0.12);
}
.pills-indicator span.active, .markets-indicator span.active, .cards-indicator span.active {
	background: rgba(0,0,0,0.75);
	width: 16px;
	height: 8px;
	border-radius: 4px;
}
.pills-indicator span:focus, .markets-indicator span:focus, .cards-indicator span:focus {
	outline: 3px solid color-mix(in srgb, var(--color-evergreen, #198754) 30%, #000);
	outline-offset: 4px;
}

/* Homepage-specific visuals moved from styles.css */
.hero { height: 100vh; height: 100svh; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }

.btn-glass { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color:#fff; border:1px solid rgba(255,255,255,0.3); font-size:.9rem; padding:.4rem 1.1rem; transition:background .2s; }

.icon-block { aspect-ratio: 1/1; background-color: color-mix(in srgb, var(--color-pine) 15%, transparent); color: var(--color-evergreen); }
