/* ════════════════════════════════════════
   이벤트 히어로 배너
════════════════════════════════════════ */
.event-hero {
  background-image: url('/static/images/background/bg_event.png');
}

.event-hero .news-hero__label {
  color: rgba(15, 55, 120, 0.7);
  -webkit-text-stroke: 0.5px rgba(10, 40, 100, 0.35);
}

.event-hero .news-hero__title {
  color: #0d2f6e;
  text-shadow:
    0 1px 0 rgba(160, 210, 255, 0.7),
    0 2px 10px rgba(80, 160, 240, 0.35);
  -webkit-text-stroke: 1px rgba(5, 30, 90, 0.45);
}

/* ════════════════════════════════════════
   진행중 이벤트 섹션 헤더
════════════════════════════════════════ */
.event-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 14px;
}
.event-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--color-purple);
  border-radius: 2px;
}
.event-section-title .event-count {
  background: var(--color-purple);
  color: #fff;
  font-size: 12px;
  border-radius: 10px;
  padding: 1px 8px;
  font-weight: 600;
}

/* ════════════════════════════════════════
   진행중 이벤트 카드 (가로형)
════════════════════════════════════════ */
.event-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card {
  display: flex;
  align-items: stretch;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.event-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.event-card__thumb {
  width: 280px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #f0eeff;
}
.event-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #c4b5fd;
}

.event-card__body {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.event-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  width: fit-content;
}
.event-card__status--active {
  background: #e8f5e9;
  color: #2e7d32;
}
.event-card__status--active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.event-card__category {
  font-size: 12px;
  color: #888;
}
.event-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}
.event-card__period {
  font-size: 13px;
  color: #888;
}
.event-card__desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card__link {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 20px;
  background: var(--color-purple);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  transition: background 0.2s;
}
.event-card__link:hover {
  background: #6b21b8;
}

/* ════════════════════════════════════════
   이벤트 없음
════════════════════════════════════════ */
.event-empty {
  padding: 60px 20px;
  text-align: center;
  color: #bbb;
  font-size: 14px;
  border: 1px dashed #e0e0e0;
  border-radius: 12px;
}
.event-empty span {
  display: block;
  font-size: 32px;
  margin-bottom: 10px;
}

/* ════════════════════════════════════════
   종료된 이벤트 아코디언
════════════════════════════════════════ */
.event-ended {
  margin-top: 32px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
}

.event-ended__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  background: #fafafa;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.event-ended__summary:hover { background: #f3f0ff; color: #333; }
.event-ended__summary::-webkit-details-marker { display: none; }

.event-ended__arrow {
  font-size: 12px;
  transition: transform 0.2s;
  color: #aaa;
}
details[open] .event-ended__arrow {
  transform: rotate(180deg);
}

.event-ended__body {
  border-top: 1px solid #eee;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 종료 이벤트 소형 리스트 */
.event-ended-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.15s;
  color: #444;
}
.event-ended-item:hover { background: #f5f5f5; }

.event-ended-item__thumb {
  width: 64px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0eeff;
}
.event-ended-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.event-ended-item__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #c4b5fd;
}

.event-ended-item__info { flex: 1; min-width: 0; }
.event-ended-item__title {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-ended-item__period {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

.event-ended-item__badge {
  font-size: 11px;
  color: #aaa;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   이벤트 상세 페이지
════════════════════════════════════════ */
.event-detail__header {
  border-bottom: 1px solid #ddd;
  padding: 10px 8px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-detail__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.event-detail__title {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}
.event-detail__period {
  font-size: 13px;
  color: #888;
}
.event-detail__thumb {
  display: block;
  max-width: 760px;
  margin: 28px auto 0;
  border-radius: 12px;
  overflow: hidden;
}
.event-detail__thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.event-detail__body {
  padding: 32px 8px;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  min-height: 200px;
  border-bottom: 1px solid #eee;
}
.event-detail__images {
  padding: 24px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #eee;
}
.event-detail__images img {
  border-radius: 8px;
  display: block;
}
.event-detail__footer {
  padding: 20px 8px;
  display: flex;
  justify-content: center;
}

/* ════════════════════════════════════════
   반응형
════════════════════════════════════════ */
@media (max-width: 720px) {
  .event-card { flex-direction: column; }
  .event-card__thumb {
    width: 100%;
    height: 180px;
  }
}
