/* ============================================================
   맹모즈 — Web/SEO content pages (lists, detail, indexes)
   shared.css 위에 얹혀서 정보 위주 페이지에 쓰이는 스타일.
   ============================================================ */

.web-hero {
  padding: 140px 32px 60px;
  position: relative;
  overflow: hidden;
}
.web-hero.lavender {
  background: linear-gradient(160deg, #F5EEFC 0%, #E4D6F7 60%, #D4BFEF 100%);
}
.web-hero.cream { background: var(--bg-cream); }
.web-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000, transparent 80%);
  pointer-events: none;
}
.web-hero .container {
  max-width: 1240px; margin: 0 auto; position: relative; z-index: 2;
}
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 22px;
}
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.5; }
.crumbs .here { color: var(--ink); font-weight: 600; }

.web-hero h1 {
  font-size: clamp(36px, 5.4vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 880px;
  margin-bottom: 18px;
}
.web-hero h1 em {
  font-style: normal; font-weight: 800;
  color: var(--purple-deep);
}
.web-hero .lede {
  font-size: 17px; color: var(--ink-2); opacity: 0.7;
  max-width: 620px; line-height: 1.6;
  margin-bottom: 24px;
}
.web-hero .meta-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  backdrop-filter: blur(8px);
}
.meta-pill b { color: var(--purple-deep); font-weight: 800; }

/* ===== TOOLBAR (filter row) ===== */
.toolbar {
  position: sticky; top: 92px; z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
}
.toolbar-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.toolbar .search-box {
  flex: 1; min-width: 240px; max-width: 360px;
  position: relative;
}
.toolbar .search-box input {
  width: 100%; padding: 11px 16px 11px 40px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.toolbar .search-box input:focus {
  outline: none;
  background: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.08);
}
.toolbar .search-box .si {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--slate); font-size: 14px; pointer-events: none;
}
.filter-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.filter-chip {
  padding: 9px 14px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.filter-chip:hover { border-color: var(--purple-2); }
.filter-chip.on {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.toolbar .count {
  margin-left: auto;
  font-family: var(--mono); font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.05em;
}
.toolbar .count b { color: var(--purple-deep); }

/* ===== ACADEMY CARD GRID ===== */
.list-section {
  padding: 48px 32px 100px;
  background: #fff;
}
.list-section .container { max-width: 1240px; margin: 0 auto; }
.acad-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.acad-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.acad-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 16px 36px -10px rgba(124,58,237,0.18);
}
.acad-thumb {
  aspect-ratio: 16 / 11;
  display: grid; place-items: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.acad-thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
}
.acad-thumb .pill {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  color: var(--ink);
  z-index: 2;
}
.acad-thumb .save {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
}
.acad-body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; flex: 1;
}
.acad-body h4 {
  font-size: 16.5px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 6px;
}
.acad-body .addr {
  font-size: 12.5px; color: var(--slate);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 5px;
}
.acad-body .tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 14px;
}
.acad-body .tags span {
  padding: 3px 9px;
  background: var(--purple-soft);
  color: var(--purple-deep);
  border-radius: 6px;
  font-size: 11px; font-weight: 600;
}
.acad-body .foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.acad-body .rating {
  font-size: 13px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 4px;
}
.acad-body .rating .star { color: #F59E0B; }
.acad-body .rating .rev { font-weight: 500; color: var(--slate); }
.acad-body .price {
  font-size: 13px; font-weight: 700; color: var(--purple);
}
.acad-body .price small {
  font-weight: 500; color: var(--slate); margin-right: 2px;
}

/* Empty / loading */
.empty-state {
  padding: 80px 20px; text-align: center;
  color: var(--slate);
  font-size: 15px;
}
.empty-state .em-glyph {
  font-size: 48px; margin-bottom: 16px; opacity: 0.5;
}
.skeleton {
  background: linear-gradient(90deg, #f1f1f3 0%, #fafafa 50%, #f1f1f3 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}
@keyframes shimmer { 0%{background-position: 200% 0;} 100%{background-position: -200% 0;} }
.skel-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 0; overflow: hidden;
}
.skel-card .sk-thumb { aspect-ratio: 16/11; }
.skel-card .sk-body { padding: 18px; }
.skel-card .sk-line { height: 14px; margin-bottom: 8px; }

/* ===== SPORTS / DISTRICTS GRID ===== */
.cat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-bottom: 64px;
}
.cat-card {
  position: relative;
  padding: 24px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 160px;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 14px 30px -8px rgba(124,58,237,0.15);
}
.cat-card .glyph {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 6px;
}
.cat-card h5 {
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.02em;
}
.cat-card .desc {
  font-size: 13px; color: var(--slate);
  line-height: 1.5;
}
.cat-card .num {
  margin-top: auto;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--purple);
  display: flex; align-items: center; gap: 6px;
}
.cat-card .num::after {
  content: "→"; transition: transform 0.3s;
}
.cat-card:hover .num::after { transform: translateX(4px); }
.cat-card.compact { min-height: 0; padding: 20px 18px; }
.cat-card.compact h5 { font-size: 16px; }

/* ===== CONTENT BLOCK (sport/district overview) ===== */
.intro-block {
  padding: 80px 32px;
  background: var(--bg-soft);
}
.intro-block .container {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.intro-block h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.15;
}
.intro-block h2 em {
  font-style: normal; font-weight: 800;
  color: var(--purple);
}
.intro-block .intro-lede {
  font-size: 16px; line-height: 1.7;
  color: var(--ink-2); opacity: 0.78;
  margin-bottom: 20px;
}
.intro-block ul.feature-list {
  display: flex; flex-direction: column; gap: 10px;
}
.intro-block ul.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-2);
}
.intro-block ul.feature-list .i {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--purple); color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  flex-shrink: 0;
}
.stat-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.stat-card .l {
  font-family: var(--mono); font-size: 11px;
  color: var(--slate); letter-spacing: 0.08em;
  margin-bottom: 6px; text-transform: uppercase;
}
.stat-card .v {
  font-size: 30px; font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.stat-card .v em {
  font-style: normal; font-weight: 800;
  color: var(--purple);
}
.stat-card .d { font-size: 12px; color: var(--slate); margin-top: 4px; }

/* ===== POSTS / ROOMS ===== */
.posts-section { background: var(--bg-cream); padding: 80px 32px; }
.posts-section .container { max-width: 1240px; margin: 0 auto; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 28px; gap: 24px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
}
.section-head h2 em {
  font-style: normal; font-weight: 800;
  color: var(--purple);
}
.section-head p { color: var(--slate); font-size: 14px; }

.post-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.post-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.08);
}
.post-card .ph {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.post-card .av {
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 16px;
}
.post-card .meta {
  font-size: 12.5px; line-height: 1.3;
}
.post-card .meta b { color: var(--ink); font-weight: 800; font-size: 13px; }
.post-card .meta .grade {
  display: inline-block;
  padding: 1px 7px; border-radius: 999px;
  background: var(--purple-soft); color: var(--purple);
  font-size: 10px; font-weight: 700;
  margin-left: 4px;
}
.post-card .meta .when {
  display: block; color: var(--slate); margin-top: 1px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.05em;
}
.post-card .cat {
  display: inline-block;
  padding: 2px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  background: var(--bg-soft); color: var(--ink-2);
  margin-bottom: 8px;
}
.post-card h4 {
  font-size: 16px; font-weight: 800;
  letter-spacing: -0.015em; line-height: 1.35;
  margin-bottom: 8px;
}
.post-card .body {
  font-size: 13.5px; color: var(--slate);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .ax {
  display: flex; gap: 14px;
  font-size: 12px; color: var(--slate); font-weight: 600;
  padding-top: 12px; border-top: 1px dashed var(--border);
}

.room-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.room-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.room-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 10px 24px -8px rgba(124,58,237,0.15);
}
.room-card .rh {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.room-card .rh .ic {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 800;
  font-style: normal; font-weight: 800;
}
.room-card .live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--success);
  font-family: var(--mono); letter-spacing: 0.05em;
}
.room-card .live-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}
.room-card h4 {
  font-size: 16.5px; font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0;
}
.room-card .room-desc {
  font-size: 13px; color: var(--slate);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.room-card .rstats {
  display: flex; gap: 14px;
  font-family: var(--mono); font-size: 11px;
  color: var(--slate); letter-spacing: 0.05em;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.room-card .rstats b { color: var(--ink); font-weight: 800; font-family: var(--sans); font-size: 12.5px; margin-right: 3px; }

/* ===== APP-NUDGE BANNER (subtle CTA) ===== */
.app-nudge {
  margin: 64px 0 16px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #1a0f2e, #0A0A0A);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  color: #fff;
  flex-wrap: wrap;
}
.app-nudge h4 {
  font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px;
}
.app-nudge h4 em {
  font-style: normal; font-weight: 800;
  color: var(--purple-2);
}
.app-nudge p {
  font-size: 13.5px; color: rgba(255,255,255,0.65);
}
.app-nudge .actions { display: flex; gap: 8px; }

/* ===== DATA SOURCE BADGE (dev hint) ===== */
.data-source-badge {
  position: fixed; bottom: 14px; right: 14px;
  z-index: 200;
  padding: 6px 11px;
  background: rgba(15,17,21,0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 6px;
  opacity: 0.8;
}
.data-source-badge .dot-d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
}
.data-source-badge.is-sample .dot-d { background: #F59E0B; }
@media (max-width: 700px) { .data-source-badge { display: none; } }

@media (max-width: 900px) {
  .toolbar { top: 80px; padding: 12px 16px; }
  .toolbar-inner { gap: 10px; }
  .toolbar .count { width: 100%; order: 99; }
  .web-hero { padding: 120px 20px 40px; }
  .intro-block .container { grid-template-columns: 1fr; gap: 36px; }
  .app-nudge { padding: 22px; }
}
