/* v10 — event-us 스타일 행사 목록/상세 */
:root {
  --purple: #7b52ff;
  --purple-soft: #f3f0ff;
  --purple-deep: #6842ef;
  --text: #1a1a1a;
  --muted: #757575;
  --line: #ebebeb;
  --bg: #fff;
  --card: #fff;
  --radius: 16px;
  --font: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --font-en: "Montserrat", "Pretendard", sans-serif;
  --header: 72px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.55;
  word-break: keep-all;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
ul { list-style: none; }

.inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo img { width: 168px; height: auto; }
.site-header .logo {
  display: inline-flex;
  align-items: center;
}
.search-wrap {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.search-wrap input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 44px 0 18px;
  background: #f7f7f8;
  outline: none;
}
.search-wrap input:focus { border-color: var(--purple); background: #fff; }
.search-wrap .ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-soft {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-bar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  height: 48px;
  align-items: center;
}
.nav-inner a {
  white-space: nowrap;
  font-size: 0.92rem;
  color: #444;
  font-weight: 500;
}
.nav-inner a.is-active,
.nav-inner a:hover { color: var(--purple); font-weight: 700; }

/* Page head */
.page-head {
  padding: 36px 0 18px;
  background: #fff;
}
.page-head h1 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 6px;
}
.page-head p { color: var(--muted); font-size: 0.95rem; }
.page-head .count { color: var(--purple); font-weight: 700; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  color: #555;
}
.chip.is-on {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 600;
}

/* Event section — event-us style */
.event-sections { background: #fff; }
.event-section {
  padding: 40px 0 12px;
  background: #fff;
}
.event-section:last-of-type { padding-bottom: 72px; }
.sec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.sec-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.sec-head p {
  color: #666;
  font-size: 0.92rem;
}
.sec-head .count { color: var(--purple); font-weight: 700; }
.more-link {
  flex-shrink: 0;
  margin-top: 4px;
  color: #999;
  font-size: 0.9rem;
}
.more-link:hover { color: var(--purple); }

.event-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 16px;
}
.event-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.event-card:hover { transform: none; box-shadow: none; }
.thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #f0f0f0;
  overflow: hidden;
  border-radius: 12px;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.event-card:hover .thumb img { transform: scale(1.04); }
.wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E")
    center / 20px 20px no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.wish.is-on {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff4d6d' stroke='%23ff4d6d' stroke-width='1.5'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E")
    center / 20px 20px no-repeat;
}
.badge { display: none; }
.card-body {
  padding: 10px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-meta {
  font-size: 0.8rem;
  color: #999;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  letter-spacing: -0.02em;
}
.card-foot {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price {
  color: #7b52ff;
  font-size: 0.9rem;
  font-weight: 700;
}
.views {
  color: #c0c0c0;
  font-size: 0.78rem;
}
.list-note {
  margin-top: 28px;
  color: #aaa;
  font-size: 0.85rem;
}
.list-note .count { color: var(--purple); font-weight: 700; }
.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta span {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.meta b { color: #999; font-weight: 500; min-width: 2em; }

/* Detail */
.detail-wrap { background: #fff; padding-bottom: 120px; }
.detail-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.cover {
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 7.2;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.detail-main h1 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 600;
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tabs button {
  padding: 12px 2px;
  color: #888;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs button.is-on {
  color: var(--purple);
  border-bottom-color: var(--purple);
}
.detail-block { margin-bottom: 36px; }
.detail-block h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.detail-block p,
.detail-block li {
  color: #444;
  font-size: 0.98rem;
  line-height: 1.75;
}
.detail-block ul { padding-left: 1.1em; list-style: disc; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  background: #f0f0f0;
}

.side-card {
  position: sticky;
  top: calc(var(--header) + 16px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.05);
}
.side-card .label {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 4px;
}
.side-card .value {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.side-card .host-box {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.host-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  transition: background .2s;
}
.btn-primary:hover { background: var(--purple-deep); }
.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 600;
}

.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  gap: 10px;
  align-items: center;
}
.sticky-bar .price { flex: 1; }
.sticky-bar .price small { display: block; color: #999; font-size: 0.75rem; }
.sticky-bar .price strong { color: var(--purple); font-size: 1.1rem; }
.sticky-bar .btn-primary { width: auto; min-width: 140px; padding: 0 22px; }

/* Footer */
.site-footer {
  background: #111;
  color: rgba(255,255,255,.7);
  padding: 40px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}
.site-footer .logo img { width: 180px; margin-bottom: 12px; }
.site-footer p { font-size: 0.88rem; line-height: 1.7; }
.site-footer a:hover { color: #fff; }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 0.8rem; color: #777; }

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .event-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .detail-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .sticky-bar { display: flex; }
  .search-wrap { display: none; }
  .logo img { width: 140px; }
  .cover { aspect-ratio: 16 / 10; border-radius: 14px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .card-body h3 { font-size: 0.88rem; }
  .gallery { grid-template-columns: 1fr; }
}
