@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

/* Shared styles for SSR pages (landing, pricing, about, events, templates) */
:root {
  --bg: #fff8f7;
  --surface: #ffffff;
  --surface-2: #ffe9e7;
  --surface-3: #f5dddb;
  --text: #251818;
  --muted: #584140;
  --accent: #ae2f34;
  --accent-2: #ff6b6b;
  --good: #006a62;
  --bad: #ba1a1a;
  --warn: #7a5900;
  --warn-bg: #fff3cd;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", "Heebo", Arial, sans-serif;
  direction: rtl; min-height: 100vh;
}

/* Nav */
.ssr-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,248,247,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-2);
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
}
.ssr-nav .brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 800; color: var(--accent);
  text-decoration: none; flex: 0 0 auto;
}
.ssr-nav .brand img { border-radius: 8px; display: block; }
.ssr-nav-links {
  display: flex; gap: 16px; align-items: center;
  min-width: 0; flex: 1 1 auto;
}
.ssr-nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 15px; font-weight: 600; white-space: nowrap;
}
.ssr-nav-links a:hover { color: var(--accent); }
.ssr-nav .nav-btn {
  background: var(--accent); color: #fff; border-radius: 8px;
  padding: 7px 14px; font-weight: 700; font-size: 14px; text-decoration: none;
  flex: 0 0 auto;
}

/* Mobile: tighten spacing + drop the wordmark, keep only the logo icon */
@media (max-width: 760px) {
  .ssr-nav { gap: 10px; padding: 10px 12px; }
  .ssr-nav .brand-text { display: none; }
  .ssr-nav .brand img { width: 32px; height: 32px; }
  .ssr-nav-links { gap: 14px; }
  .ssr-nav-links a { font-size: 14px; white-space: nowrap; }
  .ssr-nav .nav-btn { padding: 6px 12px; font-size: 13px; }
}

/* Main container */
.ssr-main { max-width: 900px; margin: 0 auto; padding: 40px 20px 80px; }

/* Footer */
.ssr-footer { text-align: center; padding: 32px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--surface-2); }
.ssr-footer a { color: var(--muted); text-decoration: none; }
.ssr-footer a:hover { color: var(--accent); }

/* Hero */
.hero { text-align: center; padding: 60px 16px 40px; }
.hero h1 { font-size: clamp(28px, 5vw, 52px); line-height: 1.2; margin-bottom: 16px; font-weight: 800; }
.hero .sub { font-size: clamp(15px, 2vw, 20px); color: var(--muted); margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff; border-radius: 10px; padding: 13px 26px;
  font-weight: 700; text-decoration: none; display: inline-block; font-size: 16px;
}
.btn-primary:hover { background: #8c1520; }
.btn-sec {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--surface-3);
  border-radius: 10px; padding: 13px 26px; font-weight: 600; text-decoration: none;
  display: inline-block; font-size: 16px;
}
.btn-sec:hover { border-color: var(--accent); }

/* Value props grid */
.props { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 40px 0; }
.prop-card {
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--surface-2); box-shadow: 0 4px 16px rgba(174,47,52,0.06);
}
.prop-card .icon { font-size: 36px; margin-bottom: 12px; }
.prop-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.prop-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Events grid */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 24px 0; }
.ev-card {
  background: var(--surface); border-radius: var(--radius); padding: 18px;
  text-decoration: none; color: var(--text); display: block;
  border: 1px solid var(--surface-2); transition: border-color .15s;
  box-shadow: 0 2px 10px rgba(174,47,52,0.05);
}
.ev-card:hover { border-color: var(--accent); }
.ev-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.ev-meta { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.ev-price { color: var(--good); font-size: 13px; font-weight: 700; }
.ev-city {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--accent); background: rgba(174,47,52,0.08);
  padding: 3px 8px; border-radius: 999px; margin-bottom: 8px;
}

/* Event detail */
.ev-detail { max-width: 700px; }
.ev-detail h1 { font-size: 28px; margin-bottom: 16px; font-weight: 800; }
.ev-meta-row { color: var(--muted); margin: 4px 0; font-size: 16px; }
.ev-price.ev-meta-row { color: var(--good); font-weight: 700; }
.ev-desc { background: var(--surface-2); border-radius: 12px; padding: 16px; margin: 20px 0; line-height: 1.7; font-size: 15px; }
.ev-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.ev-cta { background: var(--surface-2); border-radius: var(--radius); padding: 24px; text-align: center; margin-top: 32px; }
.ev-cta p { margin: 0 0 12px; font-size: 16px; }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 32px 0; }
.plan-card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  border: 2px solid var(--surface-2); position: relative;
  box-shadow: 0 4px 20px rgba(174,47,52,0.06);
}
.plan-card.featured { border-color: var(--accent); box-shadow: 0 8px 32px rgba(174,47,52,0.14); }
.plan-card .badge-feat {
  position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.plan-card h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.plan-card .price { font-size: 42px; font-weight: 800; margin: 12px 0 4px; color: var(--accent); }
.plan-card .price-note { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 24px; }
.plan-features li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--surface-2); }
.plan-features li::before { content: "✓ "; color: var(--good); font-weight: 700; }
.plan-features li.locked::before { content: "🔒 "; }

/* Templates grid */
.tmpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 20px 0; }
.tmpl-card {
  background: var(--surface); border-radius: var(--radius); padding: 18px; cursor: pointer;
  border: 1px solid var(--surface-2); transition: border-color .15s; position: relative;
  box-shadow: 0 2px 8px rgba(174,47,52,0.04);
}
.tmpl-card:hover { border-color: var(--accent-2); }
.tmpl-card.added { border-color: var(--good) !important; }
.tmpl-card .tmpl-icon { font-size: 30px; margin-bottom: 8px; }
.tmpl-card .tmpl-label { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tmpl-card .tmpl-desc { color: var(--muted); font-size: 13px; }
.tmpl-card .premium-lock { position: absolute; top: 12px; left: 12px; font-size: 14px; }
.tmpl-card .premium-badge { font-size: 11px; color: var(--warn); font-weight: 700; margin-top: 6px; }
.tmpl-card .add-btn {
  display: block; margin-top: 10px; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; padding: 7px 14px; font-size: 13px;
  font-weight: 700; cursor: pointer; width: 100%; text-align: center;
}
.tmpl-card .add-btn:disabled { background: var(--surface-3); color: var(--muted); cursor: default; }

/* Category filter */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cat-btn {
  background: var(--surface-2); border: 1px solid var(--surface-3); border-radius: 20px;
  padding: 6px 16px; font-size: 14px; cursor: pointer; color: var(--text); font-weight: 600;
  white-space: nowrap; flex: 0 0 auto;
}
.cat-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }

/* FAQ */
.faq { margin-top: 48px; }
.faq h2 { margin-bottom: 20px; font-weight: 800; }
details { border: 1px solid var(--surface-2); border-radius: 10px; margin-bottom: 10px; background: var(--surface); }
details summary { padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--text); }
details > div { padding: 0 16px 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Btn */
.btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 14px; font-weight: 700; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block;
}
.btn.secondary { background: var(--surface-2); color: var(--text); }
.btn.danger { background: var(--bad); color: #fff; }

/* ─── Guides (articles) ─────────────────────────────────────────────────────── */

/* Index page */
.guide-index-header { text-align: center; padding: 30px 0 8px; }
.guide-index-header h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 0 0 12px; line-height: 1.25; }
.guide-index-intro { color: var(--muted); font-size: clamp(14px, 1.6vw, 17px); max-width: 720px; margin: 0 auto 8px; line-height: 1.6; }

.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px; margin: 28px 0 40px;
}
.guide-card {
  background: var(--surface); border-radius: 16px; overflow: hidden;
  text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  border: 1px solid var(--surface-2); transition: transform .15s, box-shadow .15s, border-color .15s;
  box-shadow: 0 4px 14px rgba(174,47,52,0.06);
}
.guide-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(174,47,52,0.14); }
.guide-card-img {
  width: 100%; height: 170px; background-size: cover; background-position: center;
  background-color: var(--surface-2);
}
.guide-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.guide-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-card-cat {
  display: inline-block;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .2px;
}
.guide-card-city {
  display: inline-block;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  background: rgba(174,47,52,0.10); color: var(--accent);
}
.city-dropdown {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-size: 14px; color: var(--muted);
}
.city-dropdown label { font-weight: 700; color: var(--text); }
.city-dropdown select {
  padding: 8px 14px 8px 34px; border-radius: 999px;
  border: 1.5px solid var(--surface-2); background-color: var(--surface);
  font: inherit; color: var(--text); font-weight: 600; cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23ae2f34' d='M5 6L0 0h10z'/></svg>");
  background-repeat: no-repeat; background-position: left 14px center;
}
.city-dropdown select:hover, .city-dropdown select:focus { border-color: var(--accent); outline: none; }

/* Filter rows — single line by default, expandable to wrap and show all. */
.filter-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.filter-row .filter-chips {
  display: flex; flex-wrap: nowrap; gap: 8px;
  overflow: hidden; min-width: 0; flex: 1 1 auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.filter-row .filter-chips::-webkit-scrollbar { display: none; }
.filter-row.is-collapsed .filter-chips {
  /* mask the right edge so chips that get clipped fade out instead of being sliced */
  mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent);
}
.filter-row.is-expanded .filter-chips { flex-wrap: wrap; overflow: visible; mask-image: none; -webkit-mask-image: none; }
.filter-toggle {
  flex: 0 0 auto;
  background: var(--surface); border: 1.5px solid var(--surface-2);
  color: var(--accent); font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  white-space: nowrap;
}
.filter-toggle:hover { border-color: var(--accent); }
.guide-card h2 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 800; }
.guide-card-excerpt { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; flex: 1; }
.guide-card-meta { color: var(--muted); font-size: 12.5px; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--surface-2); }

/* Article page */
.guide-breadcrumb {
  font-size: 13px; color: var(--muted); margin: 8px 0 16px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.guide-breadcrumb a { color: var(--muted); text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.guide-breadcrumb span { color: var(--surface-3); }

.guide-article { max-width: 760px; margin: 0 auto; }

.guide-hero {
  display: block; align-items: initial; justify-content: initial; gap: 0;
  position: static; top: auto; z-index: auto;
  margin-bottom: 28px;
}
.guide-hero h1 { line-height: 1.22; }
.guide-index-header {
  display: block; align-items: initial; justify-content: initial;
  position: static; top: auto; z-index: auto;
}
.guide-hero h1 {
  font-size: clamp(26px, 4.2vw, 42px); line-height: 1.22; font-weight: 800;
  margin: 12px 0 10px;
}
.guide-subtitle { font-size: clamp(15px, 1.8vw, 19px); color: var(--muted); line-height: 1.55; margin: 0 0 16px; }
.guide-byline {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  color: var(--muted); font-size: 13.5px; margin-bottom: 22px;
}
.guide-hero-image {
  margin: 0 0 8px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 36px rgba(174,47,52,0.14);
  background: var(--surface-2);
}
.guide-hero-image img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }

.guide-body { font-size: 17px; line-height: 1.85; color: var(--text); }
.guide-body p { margin: 0 0 18px; }
.guide-body h2 {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.3;
  margin: 36px 0 14px; padding-right: 14px; border-right: 4px solid var(--accent);
}
.guide-body h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.guide-body ul, .guide-body ol { margin: 0 0 20px; padding-right: 22px; }
.guide-body li { margin-bottom: 10px; }
.guide-body strong { color: var(--accent); font-weight: 700; }
.guide-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.guide-tip {
  background: linear-gradient(135deg, #fff8e6, #fff3cd);
  border-radius: 14px; padding: 18px 20px; margin: 24px 0;
  display: flex; gap: 14px; align-items: flex-start;
  border-right: 4px solid #f59e0b;
  box-shadow: 0 4px 14px rgba(245,158,11,.10);
}
.guide-tip-icon { font-size: 26px; flex-shrink: 0; line-height: 1; padding-top: 2px; }
.guide-tip-body { flex: 1; }
.guide-tip-body h4 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #7a5900; }
.guide-tip-body p { margin: 0; font-size: 15px; line-height: 1.6; color: #5a4500; }

.guide-cta-inline {
  background: var(--surface-2); border-radius: 14px; padding: 22px;
  margin: 28px 0; text-align: center; border: 1px dashed var(--accent-2);
}
.guide-cta-inline p { margin: 0 0 12px; font-size: 16px; font-weight: 700; }

.guide-figure {
  margin: 26px 0; border-radius: 14px; overflow: hidden;
  background: var(--surface-2); box-shadow: 0 6px 20px rgba(174,47,52,0.08);
}
.guide-figure img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.guide-figure figcaption {
  padding: 10px 14px; font-size: 13px; color: var(--muted);
  background: var(--surface); text-align: center; font-style: italic;
}

.guide-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 28px 0; padding-top: 22px; border-top: 1px solid var(--surface-2);
}
.guide-tag {
  font-size: 12.5px; color: var(--muted); background: var(--surface-2);
  padding: 4px 10px; border-radius: 20px; font-weight: 600;
}

.guide-cta-bottom {
  border-radius: 18px; padding: 36px 24px; margin: 36px 0 0;
  text-align: center; color: #fff;
  box-shadow: 0 12px 32px rgba(174,47,52,0.22);
}
.guide-cta-bottom h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff; border: 0; padding: 0; }
.guide-cta-bottom p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; opacity: .95; }
.guide-cta-btn {
  background: #fff !important; color: var(--accent) !important;
  padding: 14px 32px; font-size: 16px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.guide-cta-btn:hover { transform: translateY(-1px); }

.guide-related { margin-top: 40px; }
.guide-related h2 { font-size: 22px; font-weight: 800; margin: 0 0 18px; }
.guide-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.guide-related-card {
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text);
  border: 1px solid var(--surface-2); transition: border-color .15s, transform .15s;
  box-shadow: 0 2px 10px rgba(174,47,52,0.05);
}
.guide-related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-related-img { height: 120px; background-size: cover; background-position: center; background-color: var(--surface-2); }
.guide-related-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.guide-related-body h3 { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 700; }
.guide-related-body p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.guide-explore {
  text-align: center; margin: 36px 0 12px; padding: 22px;
  background: var(--surface); border-radius: 14px; border: 1px solid var(--surface-2);
}
.guide-explore p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }

/* Landing page guides section */
.landing-guides { margin: 56px auto; max-width: 1100px; padding: 0 20px; }
.landing-guides .section-head { text-align: center; margin-bottom: 26px; }
.landing-guides .section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 8px; }
.landing-guides .section-head p { color: var(--muted); margin: 0 0 14px; }
.landing-guides .all-link { display: inline-block; color: var(--accent); font-weight: 700; text-decoration: none; }
.landing-guides .all-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .guide-hero h1 { font-size: 26px; }
  .guide-body { font-size: 16px; line-height: 1.75; }
  .guide-cta-bottom { padding: 28px 18px; }
  .guide-grid, .guide-related-grid { gap: 14px; }
}
