/* Events near you (MAKERS-49): dark, calm, Radio Eshgh green. Cards are drawn by assets/js/events.js. */

.events-page { --ev-green: #64edaa; --ev-green-ink: #002312; --ev-card: rgba(255, 255, 255, .05); --ev-line: rgba(255, 255, 255, .1); padding-bottom: 48px; }
.ev-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ev-masthead { padding-top: clamp(96px, 11vw, 150px); padding-bottom: 18px; }
.ev-masthead .eyebrow { justify-content: flex-start; }
.ev-masthead h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -.03em; line-height: 1.02; }
.ev-area { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--ink-2, #a1a1a6); font-size: 17px; }
.ev-area-pin { width: 9px; height: 9px; border-radius: 50%; background: var(--ev-green); box-shadow: 0 0 0 4px rgba(100, 237, 170, .18); flex: none; }

.ev-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 18px 0 8px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chip { min-height: 38px; padding: 8px 16px; border-radius: 99px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .08); color: var(--ink, #f5f5f7); transition: background .2s, color .2s, transform .2s; }
.ev-chip:hover { background: rgba(255, 255, 255, .15); }
.ev-chip:active { transform: scale(.97); }
.ev-chip[aria-pressed="true"] { background: var(--ev-green); color: var(--ev-green-ink); font-weight: 600; }
/* Liquid Glass (liquid-glass-apply.js) gives chips the see-through glass; the chosen one stays solid green. */
.ev-chip.re-liquid { box-shadow: inset 0 1px 1px rgb(255 255 255 / .3), inset 0 0 0 1px rgb(255 255 255 / .1) !important; }
.ev-chip.re-liquid[aria-pressed="true"] { background-color: rgb(100 237 170 / .92) !important; background-image: none !important; color: var(--ev-green-ink); }
.ev-search { position: relative; flex: 1 1 260px; max-width: 380px; border-bottom: 1px solid var(--ev-line); }
.ev-search-icon { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-2, #a1a1a6); }
.ev-search input { width: 100%; min-height: 44px; padding: 8px 4px 8px 28px; border: 0; background: transparent; color: var(--ink, #f5f5f7); font-size: 16px; }
.ev-search input::placeholder { color: var(--ink-3, #8a8a8f); }
.ev-search input:focus-visible { box-shadow: none; outline: none; }
.ev-search:focus-within { border-bottom-color: var(--ev-green); }

.ev-status { min-height: 1.4em; margin: 6px 0 14px; color: var(--ink-3, #8a8a8f); font-size: 14px; }
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.events-page.is-loading .ev-grid { opacity: .55; transition: opacity .2s; }

.ev-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 24px; background: var(--ev-card); box-shadow: inset 0 0 0 1px var(--ev-line); }
.ev-card.is-featured { box-shadow: inset 0 0 0 1.5px rgba(100, 237, 170, .55); }
.ev-media { position: relative; aspect-ratio: 16 / 9; background: #0c1410; overflow: hidden; }
.ev-media img { width: 100%; height: 100%; object-fit: cover; }
.ev-media.is-empty { display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, rgba(100, 237, 170, .22), transparent 60%), #0b120e; }
.ev-media-heart { width: 44px; height: 44px; color: var(--ev-green); opacity: .8; }
.ev-info { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.ev-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-label { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ev-label-sponsored { background: rgba(255, 255, 255, .12); color: var(--ink, #f5f5f7); }
.ev-label-persian { background: rgba(100, 237, 170, .14); color: var(--ev-green); }
.ev-label-heart { width: 11px; height: 11px; }
.ev-title { font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.ev-when { margin: 0; color: var(--ev-green); font-size: 15px; font-weight: 600; }
.ev-where { margin: 0; color: var(--ink-2, #a1a1a6); font-size: 15px; overflow-wrap: anywhere; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.ev-price { color: var(--ink, #f5f5f7); font-size: 15px; }
.ev-tickets { flex: none; }
.events-page .btn-green { background: var(--ev-green); color: var(--ev-green-ink); }
.events-page .btn-green:hover { background: #7ff3bb; color: var(--ev-green-ink); }
.ev-source { margin: 2px 0 0; color: var(--ink-3, #8a8a8f); font-size: 12px; }
.ev-attribution { margin: 16px 0 0; color: var(--ink-3, #8a8a8f); font-size: 13px; text-align: center; }

.ev-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: clamp(36px, 7vw, 72px) 20px; text-align: center; }
.ev-empty h2 { font-size: clamp(26px, 3.4vw, 36px); }
.ev-empty p { max-width: 520px; margin: 0 0 8px; }
.ev-empty-heart { width: 54px; height: 50px; color: var(--ev-green); }
.ev-empty-heart svg { width: 100%; height: 100%; }
.ev-empty-heart path { fill: var(--ev-green); }
.ev-retry { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 0; }

.ev-promote { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; margin-top: 48px; padding: clamp(22px, 3.4vw, 36px); border-radius: 28px; background: rgba(28, 28, 30, .58); box-shadow: inset 0 0 0 1px var(--ev-line); scroll-margin-top: 90px; }
.ev-promote h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.ev-promote .eyebrow { justify-content: flex-start; }
.ev-form { display: flex; flex-direction: column; gap: 12px; }
.ev-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ev-form label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2, #a1a1a6); font-size: 14px; }
.ev-form input, .ev-form textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--ev-line); border-radius: 14px; background: rgba(0, 0, 0, .35); color: var(--ink, #f5f5f7); font-size: 16px; color-scheme: dark; }
.ev-form textarea { resize: vertical; }
.ev-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ev-form-status { margin: 0; color: var(--ink-2, #a1a1a6); }
.ev-form-status.is-done { color: var(--ev-green); }
.ev-form-status.is-error { color: #ff8a80; }
.ev-form .small { margin: 0; }
.ev-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1020px) {
	.ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ev-promote { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.ev-masthead { padding-top: 88px; }
	.ev-grid { grid-template-columns: 1fr; gap: 14px; }
	.ev-tools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
	.ev-tools > * { min-width: 0; }
	.ev-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -22px; padding: 2px 22px 6px; scrollbar-width: none; }
	.ev-chips::-webkit-scrollbar { display: none; }
	.ev-chip { flex: none; }
	.ev-search { flex: none; max-width: none; }
	.ev-form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.ev-chip, .events-page.is-loading .ev-grid { transition: none; }
}
