/* Vortex Events widget
 * All colors come from CSS variables set by the widget's Style tab,
 * which default to Elementor Global Colors (your brand kit). */

.ve {
	--ve-accent: var(--e-global-color-accent, #61CE70);
	--ve-heading: var(--e-global-color-primary, #1F2A24);
	--ve-text: var(--e-global-color-text, #3A3F3C);
	--ve-muted: var(--e-global-color-secondary, #6B736E);
	--ve-on-accent: #fff;
	--ve-card: rgba(127, 127, 127, .07);
	--ve-border: rgba(127, 127, 127, .22);
	--ve-cover-a: var(--e-global-color-primary, #1F2A24);
	--ve-cover-b: var(--e-global-color-accent, #61CE70);
	--ve-radius: 18px;
	--ve-btn-radius: 50px;
	--ve-gap: 20px;
	color: var(--ve-text);
	width: 100%;
}
.ve *, .ve *::before, .ve *::after { box-sizing: border-box; }
.ve h3, .ve p { margin: 0; }
.ve img { max-width: 100%; display: block; }

/* ---------- header ---------- */
.ve-head {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 24px; margin-bottom: 32px;
}
.ve-eyebrow {
	font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--ve-accent); margin: 0 0 8px !important;
}
.ve-heading {
	color: var(--ve-heading); margin: 0; line-height: 1;
	font-size: clamp(36px, 6vw, 64px); text-wrap: balance;
}
.ve-intro { color: var(--ve-muted); max-width: 52ch; margin-top: 12px !important; }

/* ---------- tabs ---------- */
.ve-tabs {
	display: inline-flex; gap: 4px; padding: 5px;
	border: 1px solid var(--ve-border); border-radius: var(--ve-btn-radius); background: var(--ve-card);
}
.ve .ve-tab {
	appearance: none; border: 0; background: transparent; color: var(--ve-text);
	padding: 10px 18px; border-radius: var(--ve-btn-radius); cursor: pointer;
	display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.2;
	transition: background .2s, color .2s; box-shadow: none;
}
.ve .ve-tab:hover { background: var(--ve-border); color: var(--ve-text); }
.ve .ve-tab[aria-selected="true"] { background: var(--ve-accent); color: var(--ve-on-accent); }
.ve-n {
	font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 99px;
	background: var(--ve-border);
}
.ve-tab[aria-selected="true"] .ve-n { background: rgba(0, 0, 0, .18); }
.ve .ve-tab:focus-visible, .ve .ve-chip:focus-visible, .ve .ve-btn:focus-visible, .ve .ve-link:focus-visible, .ve .ve-cover-link:focus-visible {
	outline: 2px solid var(--ve-accent); outline-offset: 3px;
}
.ve-panel { animation: ve-rise .35s ease both; }
.ve-panel[hidden] { display: none !important; }
@keyframes ve-rise { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- common bits ---------- */
.ve-title { color: var(--ve-heading); font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.ve-desc { color: var(--ve-muted); font-size: 15px; line-height: 1.55; }
.ve-cat { color: var(--ve-accent); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ve-meta {
	color: var(--ve-muted); font-size: 14px; list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.ve-meta li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.ve-meta svg { width: 16px; height: 16px; fill: none; stroke: var(--ve-accent); stroke-width: 2; flex: none; }

.ve .ve-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px;
	border-radius: var(--ve-btn-radius); border: 1px solid var(--ve-accent);
	text-decoration: none; cursor: pointer; font-size: 15px; line-height: 1.2;
	transition: transform .15s, filter .2s;
}
.ve .ve-btn-primary { background: var(--ve-accent); color: var(--ve-on-accent); }
.ve .ve-btn:hover { transform: translateY(-1px); filter: brightness(1.08); color: var(--ve-on-accent); }
.ve .ve-link {
	color: var(--ve-heading); text-decoration: none; font-size: 14px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em; display: inline-flex; gap: 6px;
}
.ve .ve-link:hover { color: var(--ve-accent); }

/* ---------- cover (image or branded placeholder) ---------- */
.ve-cover {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; align-items: flex-end; padding: 20px; min-height: 200px;
	background:
		radial-gradient(120% 100% at 0% 0%, var(--ve-cover-b) 0%, transparent 60%),
		var(--ve-cover-a);
	color: #fff;
}
.ve-cover.has-img { background: #000; }
.ve-cover img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
	transition: transform .5s ease;
}
.ve-cover-title {
	font-size: clamp(30px, 4vw, 48px); line-height: .92; text-transform: uppercase; font-weight: 800;
	color: #fff; text-shadow: 0 3px 24px rgba(0, 0, 0, .3); overflow-wrap: anywhere;
}
.ve-cat-tag {
	position: absolute; top: 16px; left: 16px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
	padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(4px);
}
.ve-play {
	position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%;
	background: var(--ve-accent); display: grid; place-items: center; transition: transform .2s;
}
.ve-play svg { width: 18px; height: 18px; fill: var(--ve-on-accent); margin-left: 3px; }

/* ---------- featured ---------- */
.ve-featured {
	display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
	border: 1px solid var(--ve-border); border-radius: var(--ve-radius); background: var(--ve-card);
	margin-bottom: var(--ve-gap);
}
.ve-cover-lg { min-height: 340px; padding: 28px; }
.ve-cover-lg .ve-cover-title { font-size: clamp(44px, 6.5vw, 88px); }
.ve-f-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.ve-f-body .ve-title { font-size: 34px; }
.ve-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ve-count > div {
	text-align: center; padding: 10px 4px; border: 1px solid var(--ve-border); border-radius: calc(var(--ve-radius) * .66);
}
.ve-count b { display: block; font-size: 30px; line-height: 1; color: var(--ve-heading); font-variant-numeric: tabular-nums; }
.ve-count small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ve-muted); }
.ve-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------- upcoming tickets ---------- */
.ve-tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ve-gap); }
.ve-ticket {
	display: grid; grid-template-columns: 96px 1fr; overflow: hidden;
	border: 1px solid var(--ve-border); border-radius: var(--ve-radius); background: var(--ve-card);
	transition: border-color .2s, transform .2s;
}
.ve-ticket:hover { border-color: var(--ve-accent); transform: translateY(-2px); }
.ve-stub {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	padding: 16px 6px; color: #fff; text-align: center;
	background: radial-gradient(120% 100% at 0% 0%, var(--ve-cover-b) 0%, transparent 70%), var(--ve-cover-a);
}
.ve-stub img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ve-stub img + .ve-stub-m::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); z-index: -1; }
.ve-stub::after { content: ""; position: absolute; right: -1px; top: 10px; bottom: 10px; border-right: 2px dashed var(--ve-card); }
.ve-stub-m { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ve-stub-day { font-size: 44px; font-weight: 800; line-height: .9; }
.ve-t-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ve-t-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ve-border);
}

/* ---------- empty state ---------- */
.ve-empty {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
	padding: 28px; border: 1px dashed var(--ve-border); border-radius: var(--ve-radius); background: var(--ve-card);
}
.ve-empty p { color: var(--ve-muted); margin-top: 6px; }

/* ---------- past ---------- */
.ve-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ve .ve-chip {
	appearance: none; cursor: pointer; font-size: 14px; line-height: 1.2; padding: 8px 16px;
	border: 1px solid var(--ve-border); border-radius: var(--ve-btn-radius);
	background: transparent; color: var(--ve-text); box-shadow: none;
}
.ve .ve-chip:hover { border-color: var(--ve-accent); background: transparent; color: var(--ve-text); }
.ve .ve-chip[aria-pressed="true"] { background: var(--ve-accent); border-color: var(--ve-accent); color: var(--ve-on-accent); }
.ve-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ve-gap); }
.ve-card {
	display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--ve-border); border-radius: var(--ve-radius); background: var(--ve-card);
	transition: border-color .2s, transform .2s;
}
.ve-card:hover { border-color: var(--ve-accent); transform: translateY(-2px); }
.ve-card:hover .ve-cover img { transform: scale(1.04); }
.ve-card:hover .ve-play { transform: scale(1.08); }
.ve-card .ve-cover { aspect-ratio: 4 / 3; min-height: 0; }
.ve-card[hidden] { display: none !important; }
.ve-cover-link { display: block; text-decoration: none; }
.ve-c-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ve-c-body .ve-desc { flex: 1; }
.ve-c-body .ve-link { margin-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.ve-featured { grid-template-columns: 1fr; }
	.ve-cover-lg { min-height: 240px; }
}
@media (max-width: 767px) {
	.ve-tickets { grid-template-columns: 1fr; }
	.ve-head { margin-bottom: 24px; }
	.ve-tabs { width: 100%; }
	.ve .ve-tab { flex: 1; justify-content: center; padding: 10px 12px; }
	.ve-f-body { padding: 20px; }
	.ve-f-body .ve-title { font-size: 28px; }
	.ve-count b { font-size: 24px; }
}
@media (max-width: 420px) {
	.ve-ticket { grid-template-columns: 78px 1fr; }
	.ve-stub-day { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	.ve *, .ve-panel { animation: none !important; transition: none !important; }
}
