/*
 * home.css — landing page: hero/global search + recent snippets.
 */
.wg-home { max-width: 760px; margin: 0 auto; }

/* "We've moved to waegook.com" notice (old test site only) */
.wg-moved {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.wg-moved-card {
  position: relative;
  background: #fff; border-radius: 14px;
  max-width: 460px; width: 100%;
  padding: 26px 22px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.wg-moved-x {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; font-size: 26px; line-height: 1;
  color: var(--wg-muted); cursor: pointer;
}
.wg-moved-title { font-size: 1.4rem; margin: 0 0 12px; color: var(--wg-color-dark); }
.wg-moved-card p { margin: 0 0 12px; line-height: 1.55; font-size: 0.95rem; }
.wg-moved-lead { font-weight: 600; }
.wg-moved-warn {
  background: #fff4f4; border: 1px solid #f3b6b6; color: #8a1f1f;
  border-radius: var(--wg-radius); padding: 10px 12px; font-size: 0.9rem !important;
}
.wg-moved-cta {
  display: block; width: 100%; margin: 6px 0 10px;
  font-size: 1.05rem; padding: 13px 16px;
}
.wg-moved-stay {
  background: none; border: none; color: var(--wg-muted);
  font-size: 0.85rem; text-decoration: underline; cursor: pointer; padding: 4px;
}

.wg-home-hero { text-align: center; padding: 20px 0 24px; }
.wg-home-hero h1 { margin: 0 0 4px; font-size: 1.9rem; color: var(--wg-color); }
.wg-home-tagline { margin: 0 0 16px; color: var(--wg-muted); }
/* Hero "Install the app" button (gold, like our badges) */
.wg-home-install {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 2px 0 18px;
  padding: 8px 15px; border-radius: 999px; font-weight: 700; font-size: 0.88rem;
  background: var(--wg-accent-yellow); color: #1a1a1a; text-decoration: none;
}
.wg-home-install:hover { background: #e6ad00; text-decoration: none; color: #1a1a1a; }
.wg-home-install .wg-ico { width: 16px; height: 16px; }

.wg-home-search { max-width: 520px; margin: 0 auto; }
.wg-home-search-row { display: flex; gap: 8px; }
.wg-home-search-row input {
  flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid var(--wg-border); border-radius: var(--wg-radius);
}
.wg-home-search-row .wg-btn { width: auto; padding: 12px 20px; }
.wg-home-search-scope { display: flex; gap: 16px; justify-content: center; margin-top: 8px; font-size: 0.85rem; color: var(--wg-muted); }
.wg-home-search-scope label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.wg-home-search-scope input { accent-color: var(--wg-color); }

.wg-home-sec { margin-top: 28px; }
.wg-home-sechead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.wg-home-sechead h2 { font-size: 1.1rem; margin: 0; }
.wg-home-more { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }

/* Marketplace grid (shared card look) */
/* 3 columns so more items are visible on the landing page (matches marketplace). */
.wg-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* Denser card text for the 3-column layout (mirrors marketplace cols-3). */
.wg-home-grid .wg-card-title { font-size: 0.82rem; }
.wg-home-grid .wg-card-price { font-size: 0.85rem; }
.wg-home-grid .wg-card-meta,
.wg-home-grid .wg-card-stats { font-size: 0.68rem; }
.wg-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--wg-border); border-radius: var(--wg-radius);
  overflow: hidden; background: #fff; color: var(--wg-text); text-decoration: none;
}
.wg-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-decoration: none; }
/* .wg-card-img is defined once, globally, in main.css (uniform square). */
.wg-card-body { padding: 8px 10px; }
.wg-card-title {
  font-size: 0.9rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wg-card-price { color: var(--wg-color-dark); font-weight: 700; margin-top: 4px; }
.wg-card-stats { display: flex; flex-wrap: wrap; gap: 8px; color: var(--wg-muted); font-size: 0.72rem; margin-top: 4px; }

/* Community list with recent comments */
.wg-home-citem { border: 1px solid var(--wg-border); border-radius: var(--wg-radius); padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.wg-ctype {
  display: inline-block; font-size: 0.66rem; font-weight: 700; color: var(--wg-color-dark);
  background: #eafaf0; border-radius: 999px; padding: 1px 8px; margin-bottom: 4px;
}
.wg-home-ctitle { display: block; font-weight: 700; color: var(--wg-text); }
.wg-home-ctitle:hover { text-decoration: underline; }
.wg-home-cmeta { color: var(--wg-muted); font-size: 0.76rem; margin-top: 3px; }
.wg-home-comments { margin-top: 8px; border-top: 1px dashed var(--wg-border); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.wg-home-comment { font-size: 0.82rem; color: var(--wg-text); }
.wg-home-cnick { font-weight: 600; }

.wg-feed-empty { text-align: center; color: var(--wg-muted); padding: 20px 0; }

/* Static pages (rules / regulations) */
.wg-static { max-width: 680px; margin: 0 auto; line-height: 1.6; }
.wg-static h1 { font-size: 1.5rem; margin: 0 0 8px; }
.wg-static h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.wg-static .wg-static-intro { color: var(--wg-muted); }
.wg-static ul { margin: 0; padding-left: 20px; }
.wg-static li { margin: 4px 0; }
.wg-static-note {
  margin-top: 24px; padding: 12px 14px; background: #f6fdf9;
  border: 1px solid #cdefd9; border-radius: var(--wg-radius); font-size: 0.9rem;
}

/* Home events slider — horizontal; continuous right-to-left marquee when the
   cards overflow (the .is-marquee class is added by index.js only then). */
.wg-evslider { overflow: hidden; }
.wg-evslider-track { display: flex; gap: 12px; width: max-content; }
.wg-evslider-track.is-marquee { animation-name: wg-ev-marquee; animation-timing-function: linear; animation-iteration-count: infinite; }
.wg-evslider:hover .wg-evslider-track.is-marquee,
.wg-evslider:focus-within .wg-evslider-track.is-marquee { animation-play-state: paused; }
@keyframes wg-ev-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wg-evslider-track.is-marquee { animation: none; } }

.wg-ev-card {
  flex: 0 0 auto;
  width: 220px;
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  overflow: hidden;
  background: var(--wg-bg);
  color: var(--wg-text);
}
.wg-ev-card:hover { text-decoration: none; border-color: var(--wg-color); }
.wg-ev-card-img {
  width: 100%; aspect-ratio: 16 / 9; background: #f4f4f4;
  display: flex; align-items: center; justify-content: center;
}
.wg-ev-card-img img { width: 100%; height: 100%; object-fit: cover; }
.wg-ev-card-img:empty {
  background-image: url(/brand/placeholder-event.svg);
  background-position: center; background-repeat: no-repeat; background-size: cover;
}
.wg-ev-card-body { padding: 10px; }
.wg-ev-card-title {
  font-weight: 600; font-size: 0.95rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wg-ev-card-when { font-size: 0.82rem; font-weight: 600; margin-top: 4px; }
.wg-ev-card-loc, .wg-ev-card-meta { font-size: 0.8rem; color: var(--wg-muted); margin-top: 2px; }

/* "See more" moved to the bottom of each home section */
.wg-home-more-bottom {
  display: block; width: 100%; text-align: center; margin-top: 14px;
  padding: 10px; border: 1px solid var(--wg-border, #e4e4e4); border-radius: var(--wg-radius, 10px);
  background: #fff; color: var(--wg-color-dark, #0a7d37); font-weight: 700;
}
.wg-home-more-bottom:hover { background: #f3fbf6; border-color: var(--wg-color, #0eaf4c); text-decoration: none; }
