/* ===== VARIANT I: Morning Digest / Editorial Magazine ===== */
/* סביבי — Har Homa Community · Editorial Design System */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300;400;500;700;900&family=Heebo:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --cream: #fffef5;
  --cream-dark: #f5f3e8;
  --cream-mid: #ede9d8;
  --ink: #1a1a1a;
  --ink-light: #2d2d2d;
  --rust: #c2410c;
  --rust-light: #ea580c;
  --rust-pale: #fff1ec;
  --sage: #4a7c59;
  --sage-light: #6aab7a;
  --sage-pale: #f0f7f2;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --gray-pale: #f3f4f6;
  --border: #d6d0bc;
  --border-dark: #b8b0a0;

  --font-serif: 'Frank Ruhl Libre', 'David Libre', Georgia, serif;
  --font-sans: 'Heebo', 'Segoe UI', Arial, sans-serif;

  --phone-width: 390px;
  --phone-height: 844px;
  --nav-height: 68px;
  --header-height: 56px;

  --shadow-sm: 0 1px 3px rgba(26,26,26,0.08), 0 1px 2px rgba(26,26,26,0.06);
  --shadow-md: 0 4px 12px rgba(26,26,26,0.1), 0 2px 6px rgba(26,26,26,0.06);
  --shadow-lg: 0 10px 30px rgba(26,26,26,0.12), 0 4px 12px rgba(26,26,26,0.08);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--cream-dark);
  color: var(--ink);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-sans); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ===== DESKTOP FRAME ===== */
.app-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  background: var(--cream-dark);
}

.phone-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--phone-width);
}

@media (min-width: 769px) {
  .app-shell {
    gap: 40px;
    padding: 40px 20px;
    align-items: flex-start;
  }

  .phone-wrapper {
    width: var(--phone-width);
    min-height: var(--phone-height);
    background: var(--cream);
    border-radius: 40px;
    box-shadow: 0 25px 80px rgba(26,26,26,0.2), 0 8px 30px rgba(26,26,26,0.12), inset 0 0 0 1px rgba(26,26,26,0.08);
    overflow: hidden;
    position: sticky;
    top: 40px;
    flex-shrink: 0;
  }

  .phone-notch {
    display: block;
    width: 120px;
    height: 28px;
    background: var(--ink);
    border-radius: 0 0 18px 18px;
    margin: 0 auto 0;
    position: relative;
    z-index: 100;
  }
}

@media (max-width: 768px) {
  .phone-notch { display: none; }
  .phone-wrapper {
    background: var(--cream);
    min-height: 100vh;
  }
  .desktop-panel { display: none !important; }
}

/* ===== DESKTOP EXPLANATION PANEL ===== */
.desktop-panel {
  width: 320px;
  flex-shrink: 0;
  padding-top: 20px;
}

.desktop-panel-inner {
  background: var(--cream);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.desktop-panel h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.desktop-panel .variant-label {
  display: inline-block;
  background: var(--rust);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}

.desktop-panel p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

.desktop-panel .feature-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desktop-panel .feature-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-light);
  font-family: var(--font-sans);
}

.desktop-panel .feature-item::before {
  content: '—';
  color: var(--rust);
  font-weight: 700;
  flex-shrink: 0;
}

.desktop-panel .divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ===== APP SCREEN SYSTEM ===== */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100%;
  background: var(--cream);
  position: relative;
}

.screen.active {
  display: flex;
}

.screen-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: var(--nav-height);
}

/* Custom scrollbar */
.screen-body::-webkit-scrollbar { width: 4px; }
.screen-body::-webkit-scrollbar-track { background: transparent; }
.screen-body::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }

/* ===== TOP HEADER ===== */
.masthead {
  background: var(--ink);
  color: var(--cream);
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.masthead-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.masthead-logo span {
  color: var(--rust-light);
}

.masthead-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.masthead-btn {
  color: var(--cream);
  font-size: 17px;
  opacity: 0.8;
  transition: opacity 0.15s;
  background: none;
  border: none;
  cursor: pointer;
}

.masthead-btn:hover { opacity: 1; }

/* ===== EDITORIAL DATE HEADER ===== */
.editorial-header {
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  padding: 12px 20px 10px;
}

.editorial-note {
  background: var(--ink);
  color: var(--cream);
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.editorial-note-dot {
  width: 4px;
  height: 4px;
  background: var(--rust-light);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.date-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px;
}

.date-hebrew {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--gray);
  font-weight: 400;
}

.edition-num {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--rust);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-note-box {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

.editor-note-text {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
  font-style: italic;
}

.editor-note-text strong {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  padding: 24px 20px 0;
}

.section-header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-title.rust { color: var(--rust); }
.section-title.sage { color: var(--sage); }

.section-more {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--rust);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.section-reading-time {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray-light);
  letter-spacing: 0.04em;
}

.section-category {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--rust);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== HERO CARD ===== */
.hero-section {
  padding: 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #c2410c 0%, #7c2d12 40%, #1a1a1a 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.2) 60%, transparent 100%);
}

.hero-image-content {
  position: relative;
  z-index: 2;
  padding: 16px 20px;
  width: 100%;
}

.hero-category {
  display: inline-block;
  background: var(--rust);
  color: white;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero-deck {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  font-weight: 400;
}

.hero-body {
  padding: 14px 20px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.hero-byline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.byline {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.byline-name {
  color: var(--ink);
  font-weight: 600;
}

.byline-sep {
  color: var(--border-dark);
}

.card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.action-btn {
  background: none;
  border: none;
  color: var(--gray-light);
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.action-btn:hover { color: var(--rust); }
.action-btn.saved { color: var(--rust); }

.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
}

.urgency-badge i { font-size: 9px; }

/* ===== FEATURE GRID (קורה עכשיו) ===== */
.feature-grid {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.feature-image {
  height: 100px;
  background: linear-gradient(135deg, #4a7c59 0%, #2d5a3d 100%);
  position: relative;
}

.feature-image.orange {
  background: linear-gradient(135deg, #ea580c 0%, #9a3412 100%);
}

.feature-image.blue {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.feature-image.purple {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
}

.feature-image-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(26,26,26,0.7);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 2px;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
}

.feature-body {
  padding: 10px;
}

.feature-cat {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 4px;
}

.feature-headline {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}

.feature-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray-light);
  display: flex;
  gap: 6px;
  align-items: center;
}

.meta-dot { color: var(--border-dark); }

/* ===== EVENTS TIMELINE ===== */
.events-section {
  padding: 0 20px 20px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.event-row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.event-row:last-child { border-bottom: none; }

.event-row:hover { background: var(--cream-dark); margin: 0 -8px; padding: 12px 8px; border-radius: 4px; }

.event-time-col {
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.event-time-main {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
}

.event-time-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--gray-light);
  margin-top: 2px;
}

.event-divider {
  width: 1px;
  background: var(--border-dark);
  flex-shrink: 0;
  position: relative;
}

.event-divider::after {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--rust);
  border-radius: 50%;
  position: absolute;
  top: 4px;
  right: -3px;
}

.event-content {
  flex: 1;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 3px;
}

.event-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
  margin-bottom: 4px;
}

.event-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-dist {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--sage);
  font-weight: 600;
}

.event-attend {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray-light);
}

.event-source-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
}

.event-source-badge.fb {
  background: #e8f0fe;
  color: #1d4ed8;
}

.event-source-badge.ws {
  background: #dcfce7;
  color: #15803d;
}

/* ===== COMMUNITY SECTION (עוזרים לשכנים) ===== */
.community-section {
  padding: 0 20px 20px;
  background: var(--sage-pale);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.community-section .section-header {
  padding-right: 0;
  padding-left: 0;
}

.community-section .section-header-inner {
  border-bottom-color: var(--sage);
}

.community-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.community-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.community-card:hover { box-shadow: var(--shadow-sm); }

.community-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.community-type {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}

.type-help {
  background: #fef2f2;
  color: #dc2626;
}

.type-request {
  background: #fffbeb;
  color: #d97706;
}

.type-offer {
  background: var(--sage-pale);
  color: var(--sage);
}

.community-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 4px;
}

.community-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 8px;
}

.community-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.community-byline {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray);
  display: flex;
  gap: 6px;
  align-items: center;
}

.community-byline-name {
  font-weight: 600;
  color: var(--ink);
}

.community-cta {
  background: var(--sage);
  color: white;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}

.community-cta:hover { background: var(--sage-light); }

.community-cta.rust {
  background: var(--rust);
}

.community-cta.rust:hover { background: var(--rust-light); }

.community-price {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--sage);
}

/* ===== PULL QUOTE ===== */
.pull-quote-section {
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 3px double var(--border-dark);
  background: var(--cream);
}

.pull-quote {
  position: relative;
  padding: 0 20px;
}

.pull-quote-mark {
  font-family: Georgia, serif;
  font-size: 80px;
  color: var(--rust);
  line-height: 0.6;
  float: right;
  margin-left: 8px;
  margin-bottom: -10px;
  opacity: 0.3;
}

.pull-quote-text {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  font-style: italic;
  clear: left;
}

.pull-quote-attribution {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pull-quote-attribution::before {
  content: '— ';
  color: var(--rust);
}

/* ===== MARKET SECTION (שוק השכונה) ===== */
.market-section {
  padding: 0 20px 20px;
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.market-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.market-card:hover { box-shadow: var(--shadow-sm); }

.market-image {
  height: 70px;
  background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
}

.market-image.blue-grad {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
}

.market-image.green-grad {
  background: linear-gradient(135deg, #10b981 0%, #064e3b 100%);
}

.market-image.pink-grad {
  background: linear-gradient(135deg, #ec4899 0%, #831843 100%);
}

.market-body {
  padding: 8px;
}

.market-type {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 3px;
}

.market-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}

.market-price {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--rust);
}

.market-price.free {
  color: var(--sage);
}

.market-dist {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--gray-light);
  margin-top: 2px;
}

/* ===== IMPORTED SECTION ===== */
.imported-section {
  padding: 0 20px 20px;
  background: var(--cream-dark);
}

.imported-masthead {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.imported-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--border-dark);
  padding: 2px 10px;
  border-radius: 2px;
}

.imported-line {
  flex: 1;
  height: 1px;
  background: var(--border-dark);
}

.imported-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.imported-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.imported-row:last-child { border-bottom: none; }

.imported-source-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.imported-source-icon.fb { background: #e8f0fe; color: #1d4ed8; }
.imported-source-icon.wa { background: #dcfce7; color: #15803d; }
.imported-source-icon.ev { background: #fef3c7; color: #d97706; }

.imported-content { flex: 1; }

.imported-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 3px;
}

.imported-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray-light);
  display: flex;
  gap: 6px;
}

/* ===== SPONSORED SECTION ===== */
.sponsored-section {
  padding: 0 20px 24px;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.sponsored-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  margin-top: 16px;
}

.sponsored-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  border: 1px solid var(--border-dark);
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.sponsored-line { flex: 1; height: 1px; background: var(--border); }

.sponsored-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sponsored-card {
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
  position: relative;
}

.sponsored-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(26,26,26,0.6);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  font-family: var(--font-sans);
}

.sponsored-image {
  height: 80px;
  background: linear-gradient(135deg, #6b7280 0%, #374151 100%);
}

.sponsored-image.warm {
  background: linear-gradient(135deg, #92400e 0%, #451a03 100%);
}

.sponsored-body {
  padding: 10px;
}

.sponsored-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}

.sponsored-desc {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 8px;
  line-height: 1.4;
}

.sponsored-cta {
  width: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}

.sponsored-cta:hover { background: var(--rust); }

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: var(--cream);
  border-top: 1px solid var(--border);
  display: flex;
  height: var(--nav-height);
  flex-shrink: 0;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: color 0.15s;
  color: var(--gray);
  padding: 8px 0 12px;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active { color: var(--rust); }
.nav-item:hover { color: var(--ink); }

.nav-icon { font-size: 18px; line-height: 1; }
.nav-label { font-family: var(--font-sans); font-size: 10px; font-weight: 600; }

/* ===== LANDING SCREEN ===== */
.landing-hero {
  min-height: 100%;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(194,65,12,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74,124,89,0.1) 0%, transparent 50%);
}

.landing-logo-large {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
}

.landing-logo-large span { color: var(--rust-light); }

.landing-tagline {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  position: relative;
}

.landing-headline {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 16px;
  position: relative;
}

.landing-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 40px;
  position: relative;
}

.landing-cta-primary {
  width: 100%;
  background: var(--rust);
  color: white;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.2s;
  position: relative;
}

.landing-cta-primary:hover { background: var(--rust-light); }

.landing-cta-secondary {
  width: 100%;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.landing-cta-secondary:hover { border-color: rgba(255,255,255,0.5); color: white; }

.landing-features {
  display: flex;
  gap: 20px;
  margin: 32px 0;
  justify-content: center;
  position: relative;
}

.landing-feature {
  text-align: center;
  flex: 1;
}

.landing-feature-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.landing-feature-text {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
  min-height: 100%;
  background: var(--cream);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.login-logo span { color: var(--rust); }

.login-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

.login-form { flex: 1; }

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  direction: rtl;
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--rust);
  background: white;
}

.form-input::placeholder { color: var(--gray-light); }

.login-btn {
  width: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.login-btn:hover { background: var(--rust); }

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-divider-text {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-light);
}

.login-social-btn {
  width: 100%;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s;
  margin-bottom: 10px;
}

.login-social-btn:hover { background: var(--cream-dark); }

.login-footer {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray);
  margin-top: 24px;
}

.login-footer a { color: var(--rust); font-weight: 600; cursor: pointer; }

/* ===== ONBOARDING ===== */
.onboarding-screen {
  min-height: 100%;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

.onboarding-header {
  padding: 40px 28px 20px;
  background: var(--ink);
}

.onboarding-step-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  justify-content: center;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s;
}

.step-dot.active {
  background: var(--rust-light);
  width: 24px;
  border-radius: 3px;
}

.onboarding-step-num {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.onboarding-headline {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 8px;
}

.onboarding-deck {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.onboarding-body {
  flex: 1;
  padding: 24px 28px;
}

.onboarding-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.onboarding-choice {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--cream);
}

.onboarding-choice.selected {
  border-color: var(--rust);
  background: var(--rust-pale);
}

.onboarding-choice-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.onboarding-choice-text {
  flex: 1;
}

.onboarding-choice-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.onboarding-choice-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray);
}

.onboarding-check {
  font-size: 18px;
  color: var(--rust);
  opacity: 0;
  transition: opacity 0.15s;
}

.onboarding-choice.selected .onboarding-check { opacity: 1; }

.onboarding-btn {
  width: 100%;
  background: var(--rust);
  color: white;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.onboarding-btn:hover { background: var(--rust-light); }

.onboarding-skip {
  text-align: center;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
}

.onboarding-skip:hover { color: var(--ink); }

/* ===== HOT SCREEN ===== */
.hot-screen-header {
  background: var(--rust);
  color: white;
  padding: 20px 20px 16px;
}

.hot-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hot-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  opacity: 0.8;
}

.hot-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hot-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  transition: box-shadow 0.15s;
}

.hot-card:hover { box-shadow: var(--shadow-md); }

.hot-rank {
  background: var(--rust);
  color: white;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hot-content {
  padding: 12px 14px;
  flex: 1;
}

.hot-card-cat {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 4px;
}

.hot-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 4px;
}

.hot-card-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray);
  display: flex;
  gap: 8px;
}

/* ===== MAP SCREEN ===== */
.map-screen-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-search {
  flex: 1;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  direction: rtl;
}

.map-search:focus { outline: none; border-color: var(--rust); }

#map-container {
  height: calc(100vh - var(--header-height) - var(--nav-height) - 65px);
  min-height: 400px;
}

@media (min-width: 769px) {
  #map-container {
    height: calc(var(--phone-height) - var(--header-height) - var(--nav-height) - 65px);
  }
}

/* ===== LIST/ARCHIVE SCREEN ===== */
.list-screen-header {
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  padding: 16px 20px;
}

.list-screen-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.list-screen-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray);
}

.list-filters {
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
}

.list-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-dark);
  background: var(--cream);
  color: var(--gray);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.filter-chip.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.archive-list {
  padding: 0 20px 20px;
}

.archive-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.archive-row:hover { background: var(--cream-dark); margin: 0 -8px; padding: 14px 8px; }

.archive-thumb {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6b7280 0%, #374151 100%);
}

.archive-thumb.rust-grad { background: linear-gradient(135deg, #c2410c 0%, #7c2d12 100%); }
.archive-thumb.sage-grad { background: linear-gradient(135deg, #4a7c59 0%, #2d5a3d 100%); }
.archive-thumb.amber-grad { background: linear-gradient(135deg, #d97706 0%, #78350f 100%); }
.archive-thumb.blue-grad { background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%); }

.archive-content { flex: 1; }

.archive-cat {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 4px;
}

.archive-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 4px;
}

.archive-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray-light);
  display: flex;
  gap: 8px;
}

/* ===== ITEM DETAIL (ARTICLE) ===== */
.article-hero {
  height: 240px;
  background: linear-gradient(135deg, #c2410c 0%, #7c2d12 50%, #1a1a1a 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.3) 60%, transparent 100%);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  width: 100%;
}

.article-back {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(26,26,26,0.5);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}

.article-back:hover { background: rgba(26,26,26,0.8); }

.article-cat-label {
  display: inline-block;
  background: var(--rust);
  color: white;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.article-hero-headline {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.article-body {
  padding: 20px;
  background: var(--cream);
}

.article-byline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.article-byline {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-author {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

.article-date {
  font-size: 12px;
  color: var(--gray-light);
}

.article-actions {
  display: flex;
  gap: 10px;
}

.article-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
}

.article-action-btn:hover { border-color: var(--rust); color: var(--rust); }

.article-deck {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.5;
  margin-bottom: 16px;
  font-style: italic;
}

.article-text {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 20px;
}

.article-blockquote {
  border-right: 4px solid var(--rust);
  padding: 12px 16px;
  margin: 20px 0;
  background: var(--rust-pale);
  border-radius: 0 4px 4px 0;
}

.article-blockquote-text {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
}

.article-blockquote-attr {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--rust);
}

.article-cta-section {
  background: var(--cream-dark);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.article-cta-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.article-cta-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.5;
}

.article-primary-btn {
  background: var(--rust);
  color: white;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 8px;
  display: inline-block;
}

.article-primary-btn:hover { background: var(--rust-light); }

.article-secondary-btn {
  background: transparent;
  color: var(--gray);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-block;
  margin-right: 8px;
}

.article-secondary-btn:hover { border-color: var(--ink); color: var(--ink); }

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.article-tag {
  background: var(--cream-dark);
  color: var(--gray);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.more-from-community {
  padding: 20px;
  background: var(--cream-dark);
  border-top: 3px solid var(--border);
}

.more-section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ===== CREATE SCREEN ===== */
.create-header {
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.create-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.create-publish-btn {
  background: var(--rust);
  color: white;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.create-publish-btn:hover { background: var(--rust-light); }

.create-form {
  padding: 20px;
}

.create-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.create-type-btn {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.create-type-btn.selected {
  background: var(--rust-pale);
  border-color: var(--rust);
}

.create-type-icon { font-size: 20px; margin-bottom: 4px; }

.create-type-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
}

.create-type-btn.selected .create-type-label { color: var(--rust); }

.create-field-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
  margin-top: 16px;
}

.create-input {
  width: 100%;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  direction: rtl;
}

.create-input:focus { outline: none; border-color: var(--rust); background: white; }

.create-input.headline {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.create-textarea {
  width: 100%;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  direction: rtl;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.create-textarea:focus { outline: none; border-color: var(--rust); background: white; }

.create-image-area {
  width: 100%;
  height: 140px;
  background: var(--cream-dark);
  border: 2px dashed var(--border-dark);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 8px;
  transition: all 0.15s;
  margin-top: 16px;
}

.create-image-area:hover { border-color: var(--rust); background: var(--rust-pale); }

.create-image-icon { font-size: 28px; color: var(--gray-light); }
.create-image-text { font-family: var(--font-sans); font-size: 13px; color: var(--gray); }

/* ===== PROFILE SCREEN ===== */
.profile-hero {
  background: var(--ink);
  padding: 30px 20px 20px;
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0 auto 12px;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.profile-byline {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

.profile-stats {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 16px;
}

.profile-stat {
  flex: 1;
  text-align: center;
  padding: 12px;
}

.profile-stat-num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--rust-light);
}

.profile-stat-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.profile-body {
  padding: 0 20px 20px;
}

.profile-section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.15s;
}

.profile-menu-item:hover { color: var(--rust); }

.profile-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.profile-menu-text {
  flex: 1;
}

.profile-menu-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.profile-menu-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-light);
}

.profile-menu-arrow {
  font-size: 14px;
  color: var(--gray-light);
  transform: scaleX(-1);
}

/* ===== SETTINGS ===== */
.settings-section {
  margin-bottom: 0;
}

.settings-section-header {
  background: var(--cream-dark);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.settings-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
  background: var(--cream);
}

.settings-item-icon {
  font-size: 18px;
  color: var(--gray);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.settings-item-text { flex: 1; }

.settings-item-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.settings-item-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 1px;
}

.toggle {
  width: 44px;
  height: 24px;
  background: var(--border-dark);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

.toggle.on { background: var(--sage); }

.toggle-knob {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle.on .toggle-knob { transform: translateX(-20px); }

/* ===== NOTIFICATIONS ===== */
.notif-header {
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  padding: 16px 20px;
}

.notif-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.notif-list {
  padding: 0 20px 20px;
}

.notif-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
  flex-shrink: 0;
  margin-top: 5px;
}

.notif-dot.read { background: var(--border-dark); }

.notif-content { flex: 1; }

.notif-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 3px;
}

.notif-time {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray-light);
}

/* ===== MY POSTS ===== */
.my-posts-header {
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  padding: 16px 20px;
}

.my-posts-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.my-posts-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
}

.my-posts-list {
  padding: 0 20px 20px;
}

/* ===== RESPONDERS SCREEN ===== */
.responders-header {
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  padding: 16px 20px;
}

.responders-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.responders-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
}

.responders-list {
  padding: 0 20px 20px;
}

.responder-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.responder-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.responder-info { flex: 1; }

.responder-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.responder-time {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-light);
}

.responder-btn {
  background: var(--sage);
  color: white;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

/* ===== UTILITY ===== */
.verified-badge {
  display: inline-flex;
  align-items: center;
  background: var(--sage-pale);
  color: var(--sage);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 9px;
  justify-content: center;
}

.spacer-sm { height: 12px; }
.spacer-md { height: 20px; }
.spacer-lg { height: 32px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen.active {
  animation: fadeIn 0.25s ease-out;
}

/* ===== LEAFLET OVERRIDES ===== */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  font-family: var(--font-sans);
  direction: rtl;
}

.leaflet-popup-content {
  margin: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.map-popup-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.map-popup-meta {
  color: var(--gray);
  font-size: 12px;
}

/* ===== STORY TILES — horizontal scroll (קורה עכשיו) ===== */
.story-tiles-scroll {
  display: flex;
  flex-direction: row-reverse; /* RTL — first tile on right */
  overflow-x: auto;
  gap: 12px;
  padding: 4px 20px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.story-tiles-scroll::-webkit-scrollbar { display: none; }

.story-tile {
  flex-shrink: 0;
  width: 130px;
  height: 168px;
  border-radius: 14px;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.story-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  border-radius: 14px;
  pointer-events: none;
}
.story-tile:active { transform: scale(0.96); }

.story-tile-label {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 6px;
  padding: 2px 7px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.story-tile-label.urgent-label {
  background: var(--rust);
  animation: urgentPulse 2s ease-in-out infinite;
}
@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.story-tile-cat {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
}
.story-tile-title {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-top: 3px;
  position: relative;
  z-index: 2;
}
.story-tile-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  margin-top: 5px;
  position: relative;
  z-index: 2;
}

/* ===== RSVP BUTTON ===== */
.rsvp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--sage-pale);
  color: var(--sage);
  border: 1.5px solid var(--sage-light);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.rsvp-btn:active { transform: scale(0.93); }
.rsvp-btn.rsvp-active {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

/* ===== ARCHIVE CARD EXPAND ===== */
.archive-read-more-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rust);
  background: var(--rust-pale);
  border-radius: 16px;
  border: 1px solid rgba(194, 65, 12, 0.2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.archive-read-more-btn:hover { background: rgba(194,65,12,0.12); }

.archive-expand {
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  animation: expandIn 0.2s ease-out;
}
@keyframes expandIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.archive-expand-text {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 10px;
}
.archive-expand-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.archive-expand-actions .community-cta {
  flex: 1;
  min-width: 120px;
  text-align: center;
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 8px;
}

/* ===== SHARE BOTTOM SHEET ===== */
.share-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 200;
  display: flex;
  align-items: flex-end;
}
.share-sheet {
  width: 100%;
  background: var(--cream);
  border-radius: 20px 20px 0 0;
  padding: 8px 20px 32px;
  animation: slideUp 0.28s cubic-bezier(0.34,1.2,0.64,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.share-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border-dark);
  border-radius: 2px;
  margin: 10px auto 16px;
}
.share-sheet-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 18px;
}
.share-sheet-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.share-sheet-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-light);
  cursor: pointer;
}
.share-sheet-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.share-icon-whatsapp { background: #25D366; }
.share-icon-copy { background: var(--gray-pale); }

/* ===== PROFILE IMPROVEMENTS ===== */
.profile-avatar-large {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rust), var(--rust-light));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 4px 16px rgba(194,65,12,0.28);
}
.profile-joined-date {
  font-size: 11px;
  color: var(--gray-light);
  margin-top: 2px;
}
.profile-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  align-self: center;
}
.profile-posts-section {
  margin-top: 16px;
}
.profile-posts-header {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-right: 4px;
}
.profile-post-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.profile-post-row:last-child { border-bottom: none; }
.profile-post-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
}
.profile-post-info { flex: 1; }
.profile-post-cat {
  font-size: 10px;
  font-weight: 600;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.profile-post-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.profile-post-meta {
  font-size: 11px;
  color: var(--gray);
  margin-top: 3px;
}

/* ─── Community Reactions ─── */
.article-reactions-section {
  padding: 16px 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.reactions-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  font-family: var(--font-serif);
}
.reactions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.reaction-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
  flex: 1;
}
.reaction-btn.reacted {
  border-color: var(--sage);
  background: rgba(74,124,89,0.08);
}
.reaction-emoji { font-size: 20px; }
.reaction-label { font-size: 11px; color: var(--gray); font-weight: 600; }
.reaction-count { font-size: 13px; font-weight: 700; color: var(--ink); }
.reaction-btn.reacted .reaction-count { color: var(--sage); }

/* ─── Comments Section ─── */
.article-comments-section {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.article-comments-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: var(--font-serif);
}
.comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.comment-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  direction: rtl;
}
.comment-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.comment-body {
  background: var(--cream-dark, #f5f0e8);
  border-radius: 10px;
  padding: 8px 12px;
  flex: 1;
}
.comment-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-left: 8px;
}
.comment-text { font-size: 13px; color: var(--ink-mid, #334155); }
.comment-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.comment-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  background: var(--cream);
}
.comment-input:focus { border-color: var(--sage); }
.comment-submit-btn {
  padding: 9px 16px;
  border: none;
  border-radius: 20px;
  background: var(--rust, #c2410c);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ─── Archive Date Groups & Sticky Headers ─── */
.archive-date-group { position: relative; }
.archive-date-header {
  position: sticky;
  top: 0;
  background: var(--cream, #faf7f2);
  z-index: 10;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rust, #c2410c);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
