/* ============================================================
   유튜브 영상 SNS 공유 이벤트 페이지
   ============================================================ */

.yt-event {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ---------- 타이틀 영역 ---------- */
.yt-event__header {
  text-align: center;
  margin-bottom: 32px;
}

.yt-event__badge {
  display: inline-block;
  background: #6C5CE7;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.yt-event__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 8px;
  word-break: keep-all;
}

.yt-event__desc {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.yt-event__period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: #888;
  background: #f5f5f7;
  padding: 6px 14px;
  border-radius: 8px;
}

.yt-event__period svg {
  flex-shrink: 0;
}

/* ---------- 유튜브 영상 ---------- */
.yt-event__video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.yt-event__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 공유 영역 ---------- */
.yt-event__share {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.yt-event__share-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.yt-event__share-sub {
  font-size: 13px;
  color: #999;
  margin: 0 0 20px;
}

.yt-event__share-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.yt-event__share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.yt-event__share-btn:hover {
  transform: translateY(-2px);
}

.yt-event__share-btn:active {
  transform: scale(0.95);
  opacity: 0.8;
}

.yt-event__share-btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.yt-event__share-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt-event__share-icon--kakao  { background: #FEE500; }
.yt-event__share-icon--x      { background: #000;    }
.yt-event__share-icon--threads { background: #000;    }
.yt-event__share-icon--naver  { background: #03C75A; }
.yt-event__share-icon--copy   { background: #f0f0f3; }

.yt-event__share-icon svg {
  display: block;
}

.yt-event__share-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

/* ---------- 공유 현황 카드 ---------- */
.yt-event__stats {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.yt-event__stats-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}

.yt-event__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.yt-event__stat-item {
  background: #f8f8fa;
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
}

.yt-event__stat-platform {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.yt-event__stat-count {
  font-size: 18px;
  font-weight: 800;
  color: #6C5CE7;
}

.yt-event__stat-limit {
  font-size: 10px;
  color: #bbb;
  margin-top: 2px;
}

.yt-event__total {
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #6C5CE7 0%, #a29bfe 100%);
  border-radius: 12px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yt-event__total-label {
  font-size: 14px;
  font-weight: 600;
}

.yt-event__total-count {
  font-size: 22px;
  font-weight: 800;
}

/* ---------- 이벤트 안내 ---------- */
.yt-event__info {
  margin-top: 32px;
  background: #f8f8fa;
  border-radius: 12px;
  padding: 24px;
}

.yt-event__info-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}

.yt-event__info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yt-event__info-list li {
  position: relative;
  padding-left: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.yt-event__info-list li::before {
  content: none;
}

/* ---------- 로그인 유도 ---------- */
.yt-event__login-notice {
  margin-top: 16px;
  padding: 16px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  color: #795548;
}

.yt-event__login-notice a {
  color: #6C5CE7;
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- 토스트 메시지 ---------- */
.yt-event__toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  max-width: 90vw;
  text-overflow: ellipsis;
  overflow: hidden;
}

.yt-event__toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 반응형 ---------- */
@media (max-width: 600px) {
  .yt-event {
    padding: 24px 16px 48px;
  }

  .yt-event__title {
    font-size: 20px;
  }

  .yt-event__video {
    border-radius: 12px;
    margin-bottom: 24px;
  }

  .yt-event__share {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .yt-event__share-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .yt-event__stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .yt-event__info {
    padding: 20px 16px;
  }
}
