/**
 * List view — Motivec-style grid, hero, newsletter strip.
 *
 * @package TribeEventsCalendar
 */

:root {
	--tec-motivec-navy: #0a1628;
	--tec-motivec-navy-soft: #111d33;
	--tec-motivec-purple: #6d28d9;
	--tec-motivec-purple-hover: #5b21b6;
	--tec-motivec-pink: #ec4899;
	--tec-motivec-text-muted: #9ca3af;
	--tec-motivec-card-radius: 14px;
}

/* ----- Hero (full-bleed) ----- */
.tec-motivec-list-view .tec-motivec-list__hero {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-color: var(--tec-motivec-navy);
	background-image: var(--tec-motivec-hero-bg, linear-gradient(135deg, #0a1628 0%, #1e1b4b 50%, #0a1628 100%));
	background-size: cover;
	background-position: center;
	padding: 3rem 1.5rem;
	margin-bottom: 0;
}

.tec-motivec-list-view .tec-motivec-list__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0.85) 100%);
}

.tec-motivec-list-view .tec-motivec-list__hero-inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.tec-motivec-list-view .tec-motivec-list__hero-title {
	margin: 0 0 0.75rem;
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
}

.tec-motivec-list-view .tec-motivec-list__hero-crumbs {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--tec-motivec-text-muted);
}

.tec-motivec-list-view .tec-motivec-list__hero-crumb-link {
	color: #e5e7eb;
	text-decoration: none;
}

.tec-motivec-list-view .tec-motivec-list__hero-crumb-link:hover {
	color: #fff;
	text-decoration: underline;
}

.tec-motivec-list-view .tec-motivec-list__hero-sep {
	margin: 0 0.5rem;
	opacity: 0.7;
}

.tec-motivec-list-view .tec-motivec-list__hero-crumb-current {
	color: #cbd5e1;
}

/* Hide duplicate title + breadcrumbs in Events header (hero replaces them). */
.tec-motivec-list-view .tribe-events-header__content-title .tribe-events-header__content-title-text {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.tec-motivec-list-view .tribe-events-header__breadcrumbs {
	display: none;
}

/* ----- Event grid -----
 * Use auto-fit so a single event spans the full row (fixed 3-column grid left a ~33% card).
 * Reset legacy list-row flex so image + body stack vertically. */
.tribe-events.tribe-events-view.tec-motivec-list-view ul.tec-motivec-list__grid.tribe-events-calendar-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 2rem 1.5rem;
	list-style: none !important;
	margin: 0 !important;
	padding: 2.5rem 0 1rem !important;
	width: 100%;
}

.tribe-events.tribe-events-view.tec-motivec-list-view .tec-motivec-list__grid > li.tec-motivec-card {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.tribe-events.tribe-events-view.tec-motivec-list-view .tec-motivec-card__article,
.tribe-events.tribe-events-view.tec-motivec-list-view .tec-motivec-card__article.type-tribe_events {
	flex: 1 1 auto !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
}

.tribe-events.tribe-events-view.tec-motivec-list-view .tec-motivec-card__image-wrap {
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: none !important;
}

.tec-motivec-list-view .tec-motivec-list__month-separator {
	grid-column: 1 / -1;
	list-style: none;
	margin: 0;
	padding: 1.5rem 0 0.5rem;
	border: none;
}

.tec-motivec-list-view .tec-motivec-list__month-separator h3 {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tec-motivec-navy);
}

.tec-motivec-list-view .tec-motivec-card {
	display: flex;
	margin: 0;
	padding: 0;
	border: none;
}

.tec-motivec-list-view .tec-motivec-card--featured .tec-motivec-card__article {
	box-shadow: 0 10px 36px rgba(109, 40, 217, 0.18);
}

.tec-motivec-list-view .tec-motivec-card__shell {
	width: 100%;
}

.tec-motivec-list-view .tec-motivec-card__article {
	margin: 0;
	padding: 0;
	border: none;
	background: #fff;
	border-radius: var(--tec-motivec-card-radius);
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tec-motivec-list-view .tec-motivec-card__article:hover {
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
	transform: translateY(-2px);
}

.tec-motivec-list-view .tec-motivec-card__image-wrap {
	margin: 0;
	width: 100%;
	overflow: hidden;
	border-radius: var(--tec-motivec-card-radius) var(--tec-motivec-card-radius) 0 0;
}

.tec-motivec-list-view .tec-motivec-card__image-link {
	display: block;
	aspect-ratio: 16 / 10;
	background: #e5e7eb;
}

.tec-motivec-list-view .tec-motivec-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tec-motivec-list-view .tec-motivec-card__image--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 10rem;
	background: linear-gradient(120deg, #e2e8f0, #cbd5e1, #e2e8f0);
}

.tec-motivec-list-view .tec-motivec-card__body {
	padding: 1.1rem 1.15rem 1.35rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.65rem;
}

.tec-motivec-list-view .tec-motivec-card__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
}

.tec-motivec-list-view .tec-motivec-card__categories {
	margin: 0;
}

/* Category / “EVENT” pill removed from card chrome (template + theme overrides). */
.tec-motivec-list-view .tec-events-calendar-list__category,
.tec-motivec-list-view .tec-motivec-card__category-pill {
	display: none !important;
}

.tec-motivec-list-view .tec-motivec-card__date-iso {
	font-size: 0.75rem;
	color: #6b7280;
	font-variant-numeric: tabular-nums;
}

.tec-motivec-list-view .tec-motivec-card__title {
	margin: 0;
	font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.2rem);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.02em;
	max-width: none;
}

.tec-motivec-list-view .tec-motivec-card__title-link {
	color: #0f172a;
	text-decoration: none;
}

.tec-motivec-list-view .tec-motivec-card__title-link:hover {
	color: var(--tec-motivec-purple);
}

.tec-motivec-list-view .tec-motivec-card__venue {
	margin: 0;
	margin-top: auto;
	padding-top: 0.25rem;
	font-size: 0.72rem;
	line-height: 1.45;
	color: #6b7280;
	font-style: normal;
	display: flex;
	align-items: flex-start;
	gap: 0.35rem;
}

.tec-motivec-list-view .tec-motivec-card__venue::before {
	content: "";
	display: block;
	width: 0.7rem;
	height: 0.95rem;
	flex-shrink: 0;
	margin-top: 0.08rem;
	background: no-repeat center / contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5s2.5 1.12 2.5 2.5S13.38 11.5 12 11.5z'/%3E%3C/svg%3E");
}

/* ----- Newsletter ----- */
.tec-motivec-list-view .tec-motivec-list__newsletter {
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background: var(--tec-motivec-navy-soft);
	color: #fff;
	padding: 2.75rem 1.5rem;
	margin-top: 1rem;
}

.tec-motivec-list-view .tec-motivec-list__newsletter-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: stretch;
}

@media screen and (min-width: 900px) {
	.tec-motivec-list-view .tec-motivec-list__newsletter-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 2rem;
	}
}

.tec-motivec-list-view .tec-motivec-list__newsletter-title {
	margin: 0;
	font-size: clamp(1.15rem, 2.5vw, 1.65rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.25;
	max-width: 26rem;
}

.tec-motivec-list-view .tec-motivec-list__newsletter-form {
	position: relative;
	flex: 1;
	max-width: 520px;
	width: 100%;
	margin-left: auto;
}

.tec-motivec-list-view .tec-motivec-list__newsletter-input {
	width: 100%;
	border: none;
	border-radius: 999px;
	padding: 0.95rem 3.25rem 0.95rem 1.25rem;
	font-size: 0.95rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tec-motivec-list-view .tec-motivec-list__newsletter-input:focus {
	outline: 2px solid var(--tec-motivec-purple);
	outline-offset: 2px;
}

.tec-motivec-list-view .tec-motivec-list__newsletter-submit {
	position: absolute;
	right: 0.35rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2.65rem;
	height: 2.65rem;
	border-radius: 50%;
	border: none;
	background: var(--tec-motivec-pink);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	line-height: 1;
	transition: background 0.15s ease, transform 0.15s ease;
}

.tec-motivec-list-view .tec-motivec-list__newsletter-submit:hover:not(:disabled) {
	background: #db2777;
	transform: translateY(-50%) scale(1.04);
}

.tec-motivec-list-view .tec-motivec-list__newsletter-submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.tec-motivec-list-view .tec-motivec-list__newsletter-arrow {
	display: block;
	margin-top: -0.1em;
}

/* Pagination spacing */
.tec-motivec-list-view .tribe-events-calendar-list-nav {
	margin-top: 1.5rem;
	padding: 1rem 0 2rem;
}

/* ----- Tighter layout: hide date/top bar, shrink empty min-height ----- */
.tribe-events.tribe-events-view.tec-motivec-list-view .tribe-events-l-container {
	min-height: 0 !important;
	padding-bottom: var(--tec-spacer-6, 1.5rem) !important;
}

.tribe-events.tribe-events-view.tec-motivec-list-view .tribe-events-header__top-bar {
	display: none !important;
}

.tribe-events.tribe-events-view.tec-motivec-list-view .tribe-events-header--has-event-search {
	padding-bottom: 0;
}
