/* ════════════════════════════════════════════
   EVENTS PAGE — events.css
   Design tokens from style.css
════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   펄스 애니메이션
───────────────────────────────────────── */
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:0.6; transform:scale(1.2); }
}

/* ─────────────────────────────────────────
   브레드크럼
───────────────────────────────────────── */
.ev-breadcrumb {
  background: var(--black2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ev-bc-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.ev-bc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray2);
}
.ev-bc a { color: var(--gray2); text-decoration: none; transition: color 0.2s; }
.ev-bc a:hover { color: var(--gold); }
.ev-bc span    { color: var(--gray2); }
.ev-bc-current { color: var(--gold); }

/* ─────────────────────────────────────────
   히어로
───────────────────────────────────────── */
.ev-hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.ev-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.ev-hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 70px;
  z-index: 1;
}
.ev-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.ev-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 22px;
}
.ev-hero-title em {
  font-style: italic;
  color: var(--gold);
}
.ev-hero-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
  max-width: 680px;
}

/* ─────────────────────────────────────────
   라이브 바
───────────────────────────────────────── */
.ev-live-bar {
  background: rgba(201,168,76,0.04);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.ev-live-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ev-live-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
  animation: pulse 1.5s ease-in-out infinite;
}
.ev-live-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
}

/* ─────────────────────────────────────────
   이벤트 그리드 섹션
───────────────────────────────────────── */
.ev-grid-section {
  background: var(--black);
  padding: 56px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ─────────────────────────────────────────
   이벤트 카드 공통
───────────────────────────────────────── */
.ev-card {
  position: relative;
  overflow: hidden;
  background: var(--black2);
  border: 1px solid rgba(247,245,240,0.06);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.ev-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  z-index: 3;
}
.ev-card:hover {
  border-color: rgba(201,168,76,0.3);
}

/* ─ 이미지 영역 ─ */
.ev-img-area {
  position: relative;
  height: 160px;
  background: var(--black3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.event-img-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
}
.ev-icon {
  font-size: 44px;
  position: relative;
  z-index: 1;
  line-height: 1;
}
.event-type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  padding: 4px 10px;
  z-index: 2;
}
.event-dday {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10,10,10,0.8);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  z-index: 2;
  letter-spacing: 0.04em;
}

/* ─ 배지 스타일 ─ */
.badge-group {
  background: rgba(201,168,76,0.9);
  color: #000;
}
.badge-referral {
  background: rgba(76,175,80,0.15);
  color: #81C784;
  border: 1px solid rgba(76,175,80,0.3);
}
.badge-lecture {
  background: rgba(33,150,243,0.15);
  color: #64B5F6;
  border: 1px solid rgba(33,150,243,0.3);
}

/* ─ 카드 바디 ─ */
.ev-body {
  padding: 28px 28px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ev-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
}
.ev-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}

/* ─ 할인 테이블 ─ */
.discount-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dt-row {
  background: var(--black3);
  border: 1px solid rgba(247,245,240,0.05);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dt-row.dt-highlight {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.2);
}
.dt-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray);
}
.dt-val {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─ 하이라이트 박스 ─ */
.ev-highlight-box {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gold);
  line-height: 1.5;
}

/* ─ 카드 푸터 ─ */
.ev-footer {
  padding: 18px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(247,245,240,0.05);
  gap: 12px;
  flex-shrink: 0;
}
.ev-period {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray2);
}

/* ─ 버튼 ─ */
.btn-event {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-event:hover { background: var(--gold-light); }

.btn-event-ghost {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.btn-event-ghost:hover {
  background: rgba(201,168,76,0.06);
  border-color: var(--gold);
}

/* ─────────────────────────────────────────
   CTA 배너
───────────────────────────────────────── */
.ev-cta {
  background: var(--black2);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 72px 0;
}
.ev-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.ev-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 14px;
}
.ev-cta-title em {
  font-style: italic;
  color: var(--gold);
}
.ev-cta-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}
.ev-cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}
.ev-cta-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--black);
  background: var(--gold);
  padding: 16px 32px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.ev-cta-btn:hover { background: var(--gold-light); }
.ev-cta-reassure {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray2);
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
   반응형
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .ev-hero-inner,
  .ev-live-inner,
  .ev-cta-inner { padding-left: 32px; padding-right: 32px; }
  .ev-grid-section { padding: 48px 32px 64px; }
  .ev-bc-inner { padding: 0 32px; }
}

@media (max-width: 900px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ev-hero-inner  { padding: 52px 20px 44px; }
  .ev-live-inner  { padding: 16px 20px; }
  .ev-grid-section { padding: 36px 20px 56px; }
  .ev-grid        { grid-template-columns: 1fr; }
  .ev-cta-inner   { padding: 0 20px; flex-direction: column; align-items: flex-start; }
  .ev-cta-btn     { width: 100%; text-align: center; }
  .ev-bc-inner    { padding: 0 20px; }
}

/* ══════════════════════════════════════════════════
   SECTION-LIGHT OVERRIDES — events.php
══════════════════════════════════════════════════ */
.section-light .ev-grid-section { background: transparent !important; }
.section-light .ev-live-bar     { border-bottom-color: rgba(0,0,0,0.06); }
.section-light .ev-live-text    { color: #6e6e73; }
.section-light .ev-card         { background: #fff; border-color: rgba(0,0,0,0.1); }
.section-light .ev-title        { color: #1d1d1f; }
.section-light .ev-desc         { color: #6e6e73; }
