/* market.css — Millzik MK2「市集平台」shared design system.
   Zero external dependencies. Navy #2455A6 + Orange #FBAB18 + Rubik(system fallback).
   Used by the new market pages (landing / venues / courses / events / auth / dashboards
   / beyblade campaign). The original ecosystem pages keep using styles.css.

   The shared, non-chrome components (globals, tokens, buttons, sections, stats,
   cards, pills, modal, fields, breadcrumb, helpers + shared RWD) now live in the
   single source of truth /mk3/styles/market-base.css, imported below and ALSO
   imported by /mk3/styles/campaign-components.css — so the two can't drift apart.
   market.css = market-base + navigation (.mk-nav) + hero/slideshow + footer
   (.mk-footer) + market-only components (cover-*/cap-bar/filter-bar/static-map/
   tier cards/role cards/toast). Brand colours come from assets/palette.css (pulled
   in transitively by market-base.css). */
@import "/mk3/styles/market-base.css";

/* ---------- navigation (prototype white bar) ---------- */
.mk-nav {
  background: #fff; height: 64px; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: box-shadow .2s ease;
}
.mk-nav.scrolled { box-shadow: 0 4px 18px rgba(15, 36, 86, .12); }
.mk-nav-left { display: flex; align-items: center; gap: 28px; }
.mk-nav-right { display: flex; align-items: center; gap: 6px; }
.nav-logo { color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: #33415a; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px;
  transition: all .18s ease; cursor: pointer;
}
.nav-links a:hover { color: var(--navy); background: #f1f5f9; }
.nav-links a[aria-current="page"] { color: var(--navy); background: #e6eefb; }
.nav-cta {
  background: var(--orange); color: var(--dark); border: none;
  padding: 10px 22px; border-radius: 6px; font-weight: 700; cursor: pointer;
  font-size: 14px; font-family: var(--mk-font); transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- hero + slideshow ---------- */
.hero-slideshow { position: relative; background: var(--navy); overflow: hidden; }
.slide {
  display: none; color: #fff; padding: 92px 48px 84px; min-height: 60vh;
  align-items: center; position: relative;
}
.slide.active { display: flex; animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.slide::before {
  content: ""; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(251, 171, 24, .14) 0%, transparent 70%);
  pointer-events: none;
}
.slide.slide-beyblade { background: linear-gradient(135deg, #3a0d12 0%, var(--navy-deep) 100%); }
.slide.slide-educator { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); }
.slide-inner { max-width: 620px; z-index: 1; }
.hero-badge {
  background: var(--orange); color: var(--dark); display: inline-flex; align-items: center;
  gap: 8px; padding: 7px 18px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 24px;
}
.slide h1 { font-size: 54px; font-weight: 800; line-height: 1.12; margin-bottom: 22px; }
.slide h1 span { color: var(--orange); }
.slide p { font-size: 17px; color: rgba(255, 255, 255, .85); line-height: 1.7; margin-bottom: 36px; max-width: 540px; }
.slide-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.slide-dot { width: 11px; height: 11px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .4); cursor: pointer; padding: 0; }
.slide-dot.active { background: var(--orange); width: 28px; border-radius: 6px; }
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(255, 255, 255, .12); border: none; color: #fff; width: 44px; height: 44px;
  border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.slide-arrow:hover { background: rgba(255, 255, 255, .25); }
.slide-arrow.prev { left: 18px; }
.slide-arrow.next { right: 18px; }

/* ---------- card cover variants ---------- */
.cover-music { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.cover-art { background: linear-gradient(135deg, #b5491f, var(--orange)); }
.cover-steam { background: linear-gradient(135deg, #0e7a5f, #14b88a); }
.cover-workshop { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.cover-community { background: linear-gradient(135deg, #7a2f8f, #c44ad6); }
.cover-venue { background: linear-gradient(135deg, var(--navy-dark), #4a7bd6); }

/* capacity bar */
.cap-bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.cap-bar > i { display: block; height: 100%; background: var(--orange); border-radius: 4px; }

/* ---------- filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-chip {
  background: #fff; border: 1.5px solid var(--line); color: var(--gray);
  padding: 9px 18px; border-radius: 22px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: var(--mk-font); transition: all .2s;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-box { display: flex; max-width: 460px; margin: 0 auto 28px; }
.search-box input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 16px;
  font-size: 14px; font-family: var(--mk-font); outline: none;
}
.search-box input:focus { border-color: var(--navy); }

/* ---------- zero-dep static map ---------- */
.static-map {
  position: relative; width: 100%; height: 420px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  background:
    linear-gradient(rgba(36, 85, 166, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(36, 85, 166, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(135deg, #eaf0fb, #f8f9ff);
}
.static-map .water { position: absolute; inset: 0; background: radial-gradient(circle at 50% 78%, rgba(36, 85, 166, .10), transparent 45%); }
.map-pin {
  position: absolute; transform: translate(-50%, -100%); z-index: 2;
  background: var(--navy); color: #fff; border: 2px solid #fff;
  border-radius: 50% 50% 50% 0; width: 30px; height: 30px; rotate: 45deg;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.map-pin > span { rotate: -45deg; font-size: 14px; }
.map-pin:hover, .map-pin.active { background: var(--orange); color: var(--dark); z-index: 5; }
.map-legend { position: absolute; bottom: 12px; left: 12px; background: rgba(255, 255, 255, .92);
  border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--gray); box-shadow: var(--shadow); }
.map-tip { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); border-radius: 8px;
  padding: 6px 12px; font-size: 12px; color: var(--navy); box-shadow: var(--shadow); }

/* ---------- tier cards ---------- */
.tier-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tier-card {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px; padding: 24px 18px; text-align: center; flex: 1; max-width: 180px; min-width: 120px;
}
.tier-card.hi { background: var(--orange); border-color: var(--orange); color: var(--dark); }
.tier-icon { font-size: 28px; margin-bottom: 8px; }
.tier-name { font-size: 15px; font-weight: 700; }

/* role select cards */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.role-card { border: 2px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; cursor: pointer; transition: all .2s; }
.role-card:hover, .role-card.selected { border-color: var(--navy); background: var(--light-blue); }
.role-card .icon { font-size: 30px; margin-bottom: 8px; }
.role-card h4 { font-size: 14px; color: var(--navy); }

/* ---------- toast ---------- */
.mk-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--dark); color: #fff; padding: 13px 24px; border-radius: 10px;
  font-size: 14px; z-index: 3000; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); transition: transform .3s ease; max-width: 90vw;
}
.mk-toast.show { transform: translateX(-50%) translateY(0); }
.mk-toast.ok { background: var(--green); }
.mk-toast.err { background: var(--red); }

/* ---------- footer ---------- */
.mk-footer { background: var(--dark); color: rgba(255, 255, 255, .6); padding: 36px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-logo { color: #fff; font-weight: 800; font-size: 19px; letter-spacing: 2px; }
.footer-logo span { color: var(--orange); }
.mk-footer p { font-size: 12px; }
.mk-footer a { color: var(--orange); }
#secret-trigger { cursor: default; user-select: none; }

/* ---------- responsive (market chrome + extras) ---------- */
@media (max-width: 768px) {
  .mk-nav { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy); padding: 16px 18px; gap: 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  }
  .hamburger { display: flex; }
  .slide { padding: 56px 18px 64px; min-height: auto; }
  .slide h1 { font-size: 34px; }
  .mk-footer { padding: 24px 18px; flex-direction: column; text-align: center; }
  .static-map { height: 320px; }
  .role-grid { grid-template-columns: 1fr; }
}
@media (pointer: coarse) {
  .nav-cta, .filter-chip { min-height: 44px; }
}
