/* استایلِ صفحه‌های عمومیِ سایت — فید، رویداد، مکان، آدم‌ها، جست‌وجو.
   جدا از site.css نگه داشته شده تا استایلِ صفِ انتظار/ورود دست‌نخورده بماند. */

/* پوستهٔ قاب‌گوشیِ مرجع — public/final/user.html */
body:has(.site-main){background:var(--frame)}
@media (max-width:460px){body:has(.site-main){background:var(--paper)}}

.site-main {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  position: relative;
  overflow: clip visible;
  padding: 0 0 112px;
  border-radius: 26px;
}
@media (min-width:461px){ .site-main{ box-shadow: var(--shadow-lg); min-height: 860px; } }
@media (max-width:460px){ .site-main{ border-radius: 0; } }

/* سربرگ = topbar مرجع؛ ناوبری به navbar پایین منتقل شد */
.site-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 4px;
}
.site-head .site-logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.015em;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}
.site-search { display: flex; gap: 6px; }
.site-search input {
  font: inherit;
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: inherit;
  font-size: 12.5px;
  min-width: 150px;
}

.site-main > * { padding-inline: 20px; }
.site-main > .navbar { padding-inline: 8px; }

.page-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 4px;
}

.page-sub {
  opacity: .7;
  font-size: 13.5px;
  color: var(--muted);
  opacity: 1;
  margin: 0 0 16px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--surface);
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.filters .f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.filters label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.filters select,
.filters input {
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 0;
  background: var(--sunk);
  color: inherit;
}
.filters select:focus,
.filters input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }

.filters .btn-row {
  display: flex;
  gap: 8px;
}

.btn-plain {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--sunk);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s;
}
.btn-plain:active { transform: scale(.97); }

.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* کارتِ رویداد = .card مرجع: پوسترِ ۸۶ پیکسلی کنار، متن در کنارش */
.ev-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
  transition: transform .18s, box-shadow .18s;
}
.ev-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.ev-card .poster {
  display: block;
  width: 86px;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1.35;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--sunk);
}

.ev-card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.ev-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
}

.meta {
  font-size: 13.5px;
  color: var(--muted);
  opacity: 1;
  line-height: 1.6;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* داخلِ کارتِ رویداد تگ‌ها badge مرجع‌اند نه chip کلیک‌پذیر */
.ev-card .chips .chip {
  min-height: 0;
  border: 0;
  background: var(--sunk);
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: default;
}

.empty {
  text-align: center;
  padding: 48px 18px;
  border: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.empty h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.empty p {
  margin: 0 0 16px;
  color: var(--muted);
  opacity: 1;
  font-size: 13.5px;
}

/* قابِ ۴۳۰ پیکسلی = همیشه تک‌ستونه */
.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-grid .poster-big {
  width: 100%;
  aspect-ratio: 1 / 1.35;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--sunk);
  box-shadow: var(--shadow);
}

.prose {
  line-height: 1.85;
  font-size: 14.5px;
  color: var(--ink-soft);
  white-space: pre-line;
}

.people-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.person {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 14px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}

.person:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.person strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.015em; }

.pager {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

.section-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 24px 0 12px;
}

/* ─── مسیرِ من: دکمهٔ انتخاب، صفحهٔ /plan ─── */

/* کارت درونِ wrapper است تا فرمِ POST بیرونِ لینک بماند. */
.ev-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ev-card-wrap .ev-card { flex: 1 1 auto; }

.select-form { margin: 0; }

.select-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--sunk);
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s;
}

.select-btn:active { transform: scale(.97); }
.select-btn:hover { background: var(--accent-soft); color: var(--accent-deep); }

.select-btn.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}

.event-actions .select-form { flex: 0 1 auto; }
.event-actions .select-btn { width: auto; }

.ics-link {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}

.ics-link:hover { color: var(--ink); border-color: var(--accent); }

.flash-ok {
  margin: 14px 0;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
}

.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}

.plan-tabs a {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--sunk);
  color: var(--ink-soft);
  text-decoration: none;
}

.plan-tabs a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.plan-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  padding: 10px 0;
  border-block: 1px solid var(--hair);
}

.plan-range strong {
  font-size: 15px;
  font-weight: 700;
}

.plan-section { margin: 0 0 30px; }

/* گذشته کم‌رنگ‌تر است تا از برنامهٔ پیشِ رو جدا دیده شود. */
.plan-section.is-past { opacity: .62; }

/* artreview32 — نقشهٔ استاتیک + گالری */
.map-block { margin: 12px 0; }
.map { position: relative; display: block; width: 100%; height: 170px; border-radius: var(--r-md); overflow: hidden; background: var(--sunk); text-decoration: none; }
.map-tiles { direction: ltr; position: absolute; width: 768px; height: 768px; inset: auto; top: 50%; left: 50%; opacity: 1; background: none; transform: translate(-50%,-50%); display: grid; grid-template-columns: repeat(3,256px); grid-auto-rows: 256px; filter: saturate(.82); }
.map-tiles img { display: block; width: 256px; height: 256px; border: 0; user-select: none; }
.map .pinmark { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; transform: none; background: none; box-shadow: none; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.map .pinmark span { display: block; color: var(--accent); line-height: 0; transform: translateY(-50%); filter: drop-shadow(0 3px 5px rgba(43,35,32,.45)); }
.map-attr { position: absolute; bottom: 3px; inset-inline-end: 5px; font-size: 9.5px; color: rgba(43,35,32,.6); background: rgba(255,255,255,.55); padding: 0 4px; border-radius: 3px; direction: ltr; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.gallery figcaption { font-size: 13px; opacity: .75; margin-top: 4px; }

/* artreview36 — مسیرِ من هفتگی + تعطیلات + شمارِ شرکت‌کننده */
.plan-week { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan-day-head { font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.plan-day.is-holiday .plan-day-head { color: #c0392b; }
.holiday-badge { font-size: .8em; font-weight: 400; padding: 1px 8px; border-radius: 999px; background: rgba(192,57,43,.1); color: #c0392b; }
.plan-stop { display: flex; gap: 8px; align-items: flex-start; }
.plan-stop > :last-child { flex: 1; min-width: 0; }
.stop-num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #c0392b; color: #fff; display: grid; place-items: center; font-size: .85em; }
.attendee-count { opacity: .75; margin: 8px 0; }
/* artreview43 — تقویمِ ماهانهٔ جلالی + یادآور */
.plan-month { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 12px 0 20px; }
.plan-month th { font-weight: 600; padding: 6px 0; font-size: .85em; }
.plan-month td { vertical-align: top; border: 1px solid rgba(0,0,0,.08); padding: 4px; height: 64px; font-size: .8em; overflow: hidden; }
.plan-month td.is-out { background: rgba(0,0,0,.02); }
.plan-month td.is-holiday .plan-month-num { color: #c0392b; }
.plan-month td.is-today { outline: 2px solid #1F3E6B; outline-offset: -2px; }
.plan-month-num { display: block; font-weight: 600; text-decoration: none; color: inherit; }
.plan-month .holiday-badge { display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-month-event { display: block; margin-top: 2px; padding: 1px 4px; border-radius: 4px; background: rgba(31,62,107,.1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-remind { margin-top: 6px; font-size: .85em; }
@media (max-width: 480px) { .plan-month td { height: 48px; padding: 2px; } .plan-month-event { font-size: .9em; } }

/* صفحهٔ مکان — برابر با viewPlace مرجع */
.venue-stats { margin: 8px 0 0; }
.venue-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.venue-chips .chip { text-decoration: none; display: inline-flex; align-items: center; }
.kicker.venue-group { margin: 18px 0 10px; }
