/* ==========================================================================
   Vstopnice – seznam FooEvents dogodkov na prvi strani trgovine
   Velja samo pod body.af-tix (glej inc/af-tickets.php).
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.af-tix {
	--tix-red: #e00000;
	--tix-red-d: #b40000;
	--tix-ink: #121212;
	--tix-text: #2a2623;
	--tix-soft: #4d4642;
	--tix-muted: #6f6660;
	--tix-page: #f4f3f1;
	--tix-paper: #ffffff;
	--tix-hair: rgba(18, 18, 18, 0.12);
	--tix-radius: 12px;
	--tix-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tix-shadow: 0 1px 2px rgba(18, 18, 18, 0.05), 0 10px 30px -16px rgba(18, 18, 18, 0.28);
	--tix-shadow-h: 0 2px 4px rgba(18, 18, 18, 0.06), 0 22px 44px -18px rgba(18, 18, 18, 0.38);

	background: var(--tix-page);
}

.af-tix #primary {
	font-family: var(--tix-font);
	color: var(--tix-text);
	-webkit-font-smoothing: antialiased;
}

.af-tix #primary .site-main {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 64px) clamp(16px, 3vw, 24px) clamp(56px, 8vw, 96px);
}

/* --------------------------------------------------------------------------
   Uvodna glava
   ----------------------------------------------------------------------- */
.af-tix-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: end;
	margin-bottom: clamp(32px, 4.5vw, 56px);
}

.af-tix-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tix-ink);
}
.af-tix-kicker::before {
	content: "";
	width: 28px;
	height: 3px;
	background: var(--tix-red);
}

.af-tix .af-tix-hero__title {
	margin: 0 0 18px;
	max-width: 16ch;
	font-family: var(--tix-font);
	font-size: clamp(34px, 5.2vw, 60px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.035em;
	color: var(--tix-ink);
	text-wrap: balance;
}

.af-tix-hero__lead {
	max-width: 54ch;
	margin: 0;
	font-size: clamp(16px, 1.5vw, 18px);
	line-height: 1.6;
	color: var(--tix-soft);
}
.af-tix .af-tix-hero__lead a {
	color: var(--tix-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--tix-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.af-tix .af-tix-hero__lead a:hover { color: var(--tix-red); }

.af-tix-steps {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 6px 22px;
	list-style: none;
	background: var(--tix-paper);
	border-radius: var(--tix-radius);
	box-shadow: var(--tix-shadow);
	counter-reset: none;
}
.af-tix-steps li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--tix-soft);
}
.af-tix-steps li + li { border-top: 1px solid var(--tix-hair); }
.af-tix-steps strong { color: var(--tix-ink); font-weight: 700; }
.af-tix-steps__n {
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--tix-page);
	font-size: 13px;
	font-weight: 800;
	color: var(--tix-red);
	font-variant-numeric: tabular-nums;
}

/* Ni prihajajočih dogodkov */
.af-tix-empty {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 28px;
	padding: 18px 22px;
	border-radius: var(--tix-radius);
	background: var(--tix-ink);
	color: #d8d3ce;
	font-size: 15px;
	line-height: 1.5;
}
.af-tix-empty .af-tix-ico { flex: none; width: 28px; height: 28px; color: #ff4a4a; }
.af-tix-empty strong { display: block; color: #fff; font-weight: 700; }
.af-tix .af-tix-empty a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Obvestila WooCommerce naj sledijo širini */
.af-tix .woocommerce-notices-wrapper:empty { display: none; }

/* --------------------------------------------------------------------------
   Seznam
   ----------------------------------------------------------------------- */
.af-tix ul.products.af-tix-list {
	display: grid;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.af-tix ul.products.af-tix-list::before,
.af-tix ul.products.af-tix-list::after { display: none; }

.af-tix-sep {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 26px 0 4px;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tix-muted);
}
.af-tix-sep::before,
.af-tix-sep::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--tix-hair);
}
.af-tix ul.af-tix-list > .af-tix-sep:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   Kartica = vstopnica
   ----------------------------------------------------------------------- */
.af-tix ul.products li.product.af-tix-card {
	position: relative;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr) 256px;
	grid-template-areas: "media body stub";
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	text-align: left;
	background: var(--tix-paper);
	border-radius: var(--tix-radius);
	box-shadow: var(--tix-shadow);
	transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (hover: hover) {
	.af-tix ul.products li.product.af-tix-card:hover {
		transform: translateY(-3px);
		box-shadow: var(--tix-shadow-h);
	}
}

/* Plakat */
.af-tix .af-tix-card__media {
	grid-area: media;
	position: relative;
	display: block;
	min-height: 280px;
	overflow: hidden;
	border-radius: var(--tix-radius) 0 0 var(--tix-radius);
	background: #e9e6e2;
}
.af-tix ul.products li.product .af-tix-card__media img,
.af-tix .af-tix-card__img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease;
}
.af-tix ul.products li.product .af-tix-card__media img { position: relative; z-index: 1; }
/* Plakat se nikoli ne obreže: prazen prostor zapolni zamegljena kopija */
.af-tix .af-tix-card__media::before {
	content: "";
	position: absolute;
	inset: -24px;
	background: var(--af-poster, none) center / cover no-repeat;
	filter: blur(22px) saturate(1.2);
	opacity: 0.9;
}
.af-tix .af-tix-card__media::after,
.af-tix-chip,
.af-tix-badge { z-index: 2; }
@media (hover: hover) {
	.af-tix-card:hover .af-tix-card__media img { transform: scale(1.04); }
}
.af-tix .af-tix-card__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 4px;
	background: var(--tix-red);
}

.af-tix-chip {
	position: absolute;
	left: 14px;
	bottom: 18px;
	display: grid;
	justify-items: center;
	min-width: 56px;
	padding: 8px 8px 7px;
	border-radius: 6px;
	background: #fff;
	color: var(--tix-ink);
	box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55);
	line-height: 1;
}
.af-tix-chip__d {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}
.af-tix-chip__m {
	margin-top: 4px;
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tix-red);
}

.af-tix-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 9px 5px;
	border-radius: 4px;
	background: var(--tix-red);
	color: #fff;
	font-size: 10.5px;
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.af-tix-badge--muted { background: var(--tix-ink); }

/* Vsebina */
.af-tix-card__body {
	grid-area: body;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	min-width: 0;
	padding: 28px clamp(22px, 2.6vw, 36px);
}

.af-tix .af-tix-card__kicker {
	margin: 0;
	font-size: 11.5px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tix-red);
}
.af-tix-card__kicker span { color: var(--tix-muted); margin: 0 2px; }

.af-tix ul.products li.product .af-tix-card__title {
	margin: 0;
	padding: 0;
	font-family: var(--tix-font);
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.022em;
	color: var(--tix-ink);
	text-wrap: balance;
}
.af-tix .af-tix-card__title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--tix-red), var(--tix-red));
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 2px;
	transition: background-size 0.3s ease;
}
/* Cela kartica je klikljiva, gumb ostane nad povezavo */
.af-tix .af-tix-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--tix-radius);
}
.af-tix-card:hover .af-tix-card__title a { background-size: 100% 2px; }

.af-tix-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.35;
	color: var(--tix-soft);
}
.af-tix .products ul.af-tix-facts::before,
.af-tix .products ul.af-tix-facts::after { display: none; }
.af-tix-facts li {
	display: inline-flex;
	align-items: flex-start;
	gap: 7px;
	min-width: 0;
	margin: 0;
}
.af-tix-facts .af-tix-ico { flex: none; width: 17px; height: 17px; margin-top: -1px; color: var(--tix-muted); }
.af-tix-facts__date { color: var(--tix-ink); font-weight: 650; }
.af-tix-facts__date .af-tix-ico { color: var(--tix-red); }
.af-tix-facts__loc { flex-basis: 100%; }
.af-tix ul.products li.product .af-tix-facts strong { display: inline; color: var(--tix-ink); font-weight: 650; }

.af-tix .af-tix-card__excerpt {
	display: -webkit-box;
	margin: 2px 0 0;
	overflow: hidden;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--tix-muted);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Odtrgljivi kupon */
.af-tix-card__stub {
	grid-area: stub;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 28px 26px;
	border-left: 2px dashed var(--tix-hair);
}
.af-tix-card__stub::before,
.af-tix-card__stub::after {
	content: "";
	position: absolute;
	left: -13px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--tix-page);
	box-shadow: inset 0 1px 3px rgba(18, 18, 18, 0.08);
}
.af-tix-card__stub::before { top: -12px; box-shadow: inset 0 -2px 3px rgba(18, 18, 18, 0.07); }
.af-tix-card__stub::after { bottom: -12px; box-shadow: inset 0 2px 3px rgba(18, 18, 18, 0.07); }

.af-tix-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
}
.af-tix-price__label {
	flex-basis: 100%;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tix-muted);
}
.af-tix-price__amount {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
	color: var(--tix-ink);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.af-tix-price__amount .woocommerce-Price-amount { font-weight: inherit; }
.af-tix-price__amount .woocommerce-Price-currencySymbol { font-size: 0.62em; font-weight: 700; margin-left: 1px; }
.af-tix-price__amount--sm { font-size: 24px; }
.af-tix-price__vat { font-size: 13px; font-weight: 600; color: var(--tix-muted); }

.af-tix .af-tix-countdown {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: -4px 0 0;
	font-size: 13px;
	font-weight: 650;
	color: var(--tix-ink);
}
.af-tix-countdown__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1f9d55;
	box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.16);
}

.af-tix .af-tix-btn {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 20px;
	border: 2px solid var(--tix-red);
	border-radius: 8px;
	background: var(--tix-red);
	color: #fff;
	font-family: var(--tix-font);
	font-size: 15px;
	font-weight: 750;
	letter-spacing: -0.005em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.af-tix .af-tix-btn .af-tix-ico { width: 18px; height: 18px; transition: transform 0.25s ease; }
.af-tix .af-tix-btn:hover,
.af-tix .af-tix-card:hover .af-tix-btn {
	background: var(--tix-red-d);
	border-color: var(--tix-red-d);
	color: #fff;
}
.af-tix .af-tix-card:hover .af-tix-btn .af-tix-ico { transform: translateX(4px); }

.af-tix .af-tix-btn--ghost,
.af-tix .af-tix-card:hover .af-tix-btn--ghost {
	background: transparent;
	border-color: var(--tix-hair);
	color: var(--tix-ink);
}
.af-tix .af-tix-btn--ghost:hover,
.af-tix .af-tix-card:hover .af-tix-btn--ghost { border-color: var(--tix-ink); color: var(--tix-ink); background: transparent; }

.af-tix .af-tix-btn:focus-visible,
.af-tix .af-tix-card__title a:focus-visible,
.af-tix .af-tix-hero__lead a:focus-visible {
	outline: 3px solid var(--tix-red);
	outline-offset: 3px;
}
.af-tix .af-tix-card__title a:focus-visible::after { outline: 3px solid var(--tix-red); outline-offset: 2px; }

/* Pretekli dogodki */
.af-tix-card.is-past .af-tix-card__media img,
.af-tix-card.is-past .af-tix-card__media::before { filter: grayscale(1); opacity: 0.8; }
.af-tix-card.is-past .af-tix-card__media::before { filter: grayscale(1) blur(22px); }
.af-tix-card.is-past .af-tix-card__media::after { background: var(--tix-muted); }
.af-tix-card.is-past .af-tix-chip__m,
.af-tix-card.is-past .af-tix-card__kicker,
.af-tix-card.is-past .af-tix-facts__date .af-tix-ico { color: var(--tix-muted); }
.af-tix-card.is-past .af-tix-price__amount { color: var(--tix-soft); }
@media (hover: hover) {
	.af-tix-card.is-past:hover .af-tix-card__media img { filter: grayscale(0.2); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Tablica in telefon: navpične kartice (plakat zgoraj, kupon spodaj)
   ----------------------------------------------------------------------- */
@media (max-width: 1023px) {
	.af-tix-hero { grid-template-columns: 1fr; align-items: start; }
	.af-tix-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
	.af-tix-steps li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
	.af-tix-steps li + li { border-top: 0; border-left: 1px solid var(--tix-hair); }

	.af-tix ul.products.af-tix-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.af-tix-sep { grid-column: 1 / -1; }

	.af-tix ul.products li.product.af-tix-card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr auto;
		grid-template-areas:
			"media"
			"body"
			"stub";
	}
	.af-tix .af-tix-card__media { aspect-ratio: 1 / 1; min-height: 0; border-radius: var(--tix-radius) var(--tix-radius) 0 0; }
	.af-tix-card__body { justify-content: flex-start; padding: 22px 22px 18px; gap: 10px; }
	.af-tix-card__stub {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: space-between;
		gap: 14px 16px;
		padding: 20px 22px 22px;
		border-left: 0;
		border-top: 2px dashed var(--tix-hair);
	}
	.af-tix-card__stub::before,
	.af-tix-card__stub::after { top: -13px; bottom: auto; }
	.af-tix-card__stub::before { left: -12px; box-shadow: inset -2px 0 3px rgba(18, 18, 18, 0.07); }
	.af-tix-card__stub::after { left: auto; right: -12px; box-shadow: inset 2px 0 3px rgba(18, 18, 18, 0.07); }
	.af-tix .af-tix-countdown { margin: 0 0 6px; }
	.af-tix .af-tix-btn { flex: 1 1 100%; min-height: 48px; }
	.af-tix-facts { flex-direction: column; gap: 8px; }
	.af-tix-facts__loc { flex-basis: auto; }
}

/* Zadnja kartica lihe skupine na tablici: vodoravno čez obe koloni */
@media (min-width: 760px) and (max-width: 1023px) {
	.af-tix ul.products li.product.af-tix-card.is-wide {
		grid-column: 1 / -1;
		grid-template-columns: 240px minmax(0, 1fr) 210px;
		grid-template-rows: auto;
		grid-template-areas: "media body stub";
	}
	.af-tix .af-tix-card.is-wide .af-tix-card__media { aspect-ratio: auto; min-height: 240px; border-radius: var(--tix-radius) 0 0 var(--tix-radius); }
	.af-tix-card.is-wide .af-tix-card__body { justify-content: center; padding: 22px 24px; }
	.af-tix-card.is-wide .af-tix-card__stub { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: center; padding: 22px 20px; border-top: 0; border-left: 2px dashed var(--tix-hair); }
	.af-tix-card.is-wide .af-tix-card__stub::before,
	.af-tix-card.is-wide .af-tix-card__stub::after { left: -13px; right: auto; box-shadow: inset 0 1px 3px rgba(18, 18, 18, 0.08); }
	.af-tix-card.is-wide .af-tix-card__stub::before { top: -12px; }
	.af-tix-card.is-wide .af-tix-card__stub::after { top: auto; bottom: -12px; }
	.af-tix-card.is-wide .af-tix-price__amount { font-size: 30px; }
	.af-tix .af-tix-card.is-wide .af-tix-btn { flex: none; padding: 0 14px; gap: 8px; white-space: nowrap; }
	.af-tix .af-tix-card.is-wide .af-tix-countdown { margin: -4px 0 0; }
}

@media (max-width: 759px) {
	.af-tix .af-tix-hero__title { max-width: none; }
	.af-tix-steps { grid-template-columns: 1fr; padding: 4px 18px; }
	.af-tix-steps li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 0; }
	.af-tix-steps li + li { border-left: 0; border-top: 1px solid var(--tix-hair); }

	.af-tix ul.products.af-tix-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.af-tix-card__body { padding: 20px 20px 16px; }
	.af-tix-card__stub { padding: 18px 20px 20px; }
	.af-tix-price__amount { font-size: 30px; }
	.af-tix-empty { align-items: flex-start; padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.af-tix ul.products li.product.af-tix-card,
	.af-tix .af-tix-card__media img,
	.af-tix .af-tix-btn .af-tix-ico,
	.af-tix .af-tix-card__title a { transition: none; }
	.af-tix ul.products li.product.af-tix-card:hover { transform: none; }
	.af-tix-card:hover .af-tix-card__media img { transform: none; }
}
