@charset "utf-8";
/*
 * 이벤트 카드 (event-site) — site-event/list/list/list.css 와 동일
 * 포인트 #5761cd · 열은 부모 100% 기준 fr로 비율 분할 (gap 제외 후 균등)
 *   - ~575px: 1열(100%)
 *   - 576~991px: 2열(≈50%)
 *   - 992px~: 3열(≈33.33%)
 */

.ev-grid-section {
	margin: 0 0 0.75rem;
	width: 100%;
	box-sizing: border-box;
	padding-left: clamp(0.5rem, 2.5vw, 1rem);
	padding-right: clamp(0.5rem, 2.5vw, 1rem);
}

.ev-card-grid {
	--ev-primary: #5761cd;
	--ev-primary-hover: #454bb8;
	--ev-primary-soft: rgba(87, 97, 205, 0.14);
	--ev-gap: clamp(0.75rem, 3vw, 1.25rem);

	display: grid;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	gap: var(--ev-gap);
	align-items: stretch;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 576px) {
	.ev-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.ev-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 576px) {
	.ev-card-grid:has(> .ev-card:only-child) {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.ev-card-grid:has(> .ev-card:only-child) .ev-card {
		width: 100%;
		max-width: min(100%, 24rem);
		margin-inline: auto;
	}
}

.ev-card {
	--ev-primary: #5761cd;
	--ev-primary-hover: #454bb8;
	--ev-primary-soft: rgba(87, 97, 205, 0.14);

	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;

	background: #fff;
	border: 1px solid #e8eaef;
	border-radius: 10px;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ev-card:hover {
	border-color: var(--ev-primary-soft);
	box-shadow: 0 6px 16px rgba(87, 97, 205, 0.18);
}

.ev-card--notice {
	border-color: rgba(87, 97, 205, 0.35);
	background: #f9f9fd;
}

.ev-card--ended {
	opacity: 0.9;
}

.ev-card--ended:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ev-card-thumb-link {
	display: block;
	text-decoration: none;
	position: relative;
	z-index: 1;
}

.ev-card-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eceff4;
	border-bottom: 1px solid #eee;
	text-align: center;
}

.ev-card-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.1) 100%);
	pointer-events: none;
	z-index: 1;
}

.ev-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.ev-card:hover .ev-thumb-img {
	transform: scale(1.04);
}

.ev-no-img {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	background: linear-gradient(160deg, #eef1fa, #e6e8f4);
	color: #778899;
}

.ev-no-img-icon {
	width: 48px;
	height: 48px;
	opacity: 0.65;
}

.ev-no-img-text {
	font-size: 0.8rem;
	font-weight: 600;
	color: #8899aa;
}

.ev-ended-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.ev-ended-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.ev-ended-icon {
	display: none;
}

.ev-ended-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: #555;
	background: #fff;
	border: 1px solid #ddd;
	padding: 0.35rem 1rem;
	border-radius: 6px;
}

.ev-dday {
	position: absolute;
	top: 0.55rem;
	left: 0.55rem;
	z-index: 4;
	background: var(--ev-primary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.25rem 0.55rem;
	border-radius: 5px;
	box-shadow: 0 2px 8px rgba(87, 97, 205, 0.4);
}

.ev-dday--today {
	background: #1e9e5a;
	box-shadow: 0 2px 6px rgba(30, 158, 90, 0.35);
}

.ev-notice-badge {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	z-index: 4;
	background: var(--ev-primary);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	padding: 0.22rem 0.5rem;
	border-radius: 4px;
}

.ev-card-body {
	flex: 1;
	padding: 0.85rem 1rem 0.5rem;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	background: #fff;
}

.ev-card-title-link {
	text-decoration: none;
	color: inherit;
}

.ev-card-title {
	margin: 0;
	font-size: clamp(0.94rem, 2.8vw, 1rem);
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s;
}

.ev-card-title-link:hover .ev-card-title {
	color: var(--ev-primary);
}

.ev-card--ended .ev-card-title {
	color: #888;
}

.ev-card-period {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	color: #666;
	font-size: clamp(0.75rem, 2.2vw, 0.8rem);
}

.ev-period-icon {
	flex-shrink: 0;
	color: var(--ev-primary);
	display: flex;
	align-items: center;
}

.ev-period-icon svg {
	width: 13px;
	height: 13px;
}

.ev-card-comment {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	color: #a8a8a8;
	font-size: 0.75rem;
}

.ev-card-comment svg {
	width: 12px;
	height: 12px;
}

.ev-card-footer {
	padding: 0 1rem 1rem;
	position: relative;
	z-index: 1;
	background: #fff;
}

.ev-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border-radius: 6px;
	font-size: clamp(0.8rem, 2.4vw, 0.85rem);
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
	border: 1px solid transparent;
}

.ev-btn--join {
	background: var(--ev-primary);
	border-color: var(--ev-primary);
	color: #fff;
}

.ev-btn--join:hover {
	background: var(--ev-primary-hover);
	border-color: var(--ev-primary-hover);
	color: #fff;
}

.ev-btn-arrow {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.ev-btn--join:hover .ev-btn-arrow {
	transform: translateX(3px);
}

.ev-btn--ended {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	color: #9ca3af;
	cursor: default;
	pointer-events: none;
}

.ev-empty {
	grid-column: 1 / -1;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(2rem, 8vw, 3.5rem) 1.25rem;
	gap: 1rem;
	color: #777;
	background: #fafafa;
	border: 1px dashed #ddd;
	border-radius: 8px;
}

.ev-empty-icon svg {
	width: 48px;
	height: 48px;
	opacity: 0.45;
}

.ev-empty-text {
	font-size: 0.95rem;
	color: #777;
	margin: 0;
}
