/* ============================================================
   Public Local News — Mobile & Responsive Layout
   ============================================================ */

/* ---------- Desktop 3-column layout ---------- */
@media (min-width: 992px) {
  .page-wrap { padding-bottom: 40px; }
  .desktop-sidebar {
    position: sticky;
    top: 64px;
    align-self: start;
  }
  .desktop-sidebar .menu-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px; color: var(--jv-text);
    font-weight: 600; font-size: 14.5px; cursor: pointer; border: none; background: none; width: 100%;
  }
  .desktop-sidebar .menu-item:hover { background: #F1F2F4; }
  .desktop-sidebar .menu-item i { font-size: 1.2rem; color: var(--jv-primary); width: 24px; }
  .desktop-sidebar .menu-item.active { background: var(--jv-primary-soft); color: var(--jv-primary); }
  .desktop-sidebar .menu-item.active i { color: var(--jv-primary); }
}

/* ---------- Feed max width ---------- */
.feed-col { max-width: 760px; margin: 0 auto; }

/* ---------- Mobile topbar adjustments ---------- */
@media (max-width: 575.98px) {
  .topbar .brand { font-size: 1.05rem; }
  .topbar-logo { height: 32px; max-width: 125px; }
  .news-card .news-title { font-size: 0.98rem; }
}

/* Auth screens */
.auth-page {
  min-height: 100vh;
  background: var(--jv-card);
  display: flex;
  flex-direction: column;
}
.auth-hero {
  background: linear-gradient(160deg, var(--jv-dark), #2b3a4d);
  color: #fff;
  padding: 40px 24px 56px;
  position: relative;
  overflow: hidden;
}
.auth-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.25);
}
.auth-hero .logo-badge {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--jv-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 8px 20px rgba(229,57,53,0.4);
}
.auth-form { padding: 24px; margin-top: 20px; }

/* OTP */
.otp-wrap { display: flex; gap: 10px; justify-content: center; }

/* verification illustration */
.verif-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--jv-primary-soft); color: var(--jv-primary);
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  margin: 0 auto;
}

/* profile setup chips wrap */
.interests-wrap { display: flex; flex-wrap: wrap; gap: 9px; }

/* notification list */
.notif-item {
  display: flex; gap: 12px; padding: 14px 16px;
  background: #fff; border-bottom: 1px solid var(--jv-border); align-items: flex-start;
}
.notif-item.unread { background: var(--jv-primary-soft); }
.notif-item .notif-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  background: #F1F2F4; color: var(--jv-muted);
}
.notif-item.unread .notif-icon { background: var(--jv-primary); color: #fff; }

/* user row */
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--jv-border); }
.user-row .u-info { flex: 1; min-width: 0; }

/* pill toggle switch */
.form-switch .form-check-input { cursor: pointer; }

/* settings row */
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 12px; border-radius: 12px; cursor: pointer;
}
.setting-row:hover { background: #F7F8FA; }
.setting-row .s-left { display: flex; align-items: center; gap: 12px; }
.setting-row .s-left i { font-size: 1.2rem; color: var(--jv-primary); width: 26px; text-align: center; }

/* saved grid */
.saved-card { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--jv-shadow); }
.saved-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.saved-card .saved-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.75)); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; }
.saved-card .saved-title { color: #fff; font-weight: 700; font-size: 14px; line-height: 1.3; }
.saved-card .saved-meta { color: rgba(255,255,255,0.85); font-size: 12px; }

/* share grid */
.share-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: 12px; cursor: pointer; font-size: 12px; font-weight: 600;
  color: var(--jv-text); background: none; border: none; font-family: inherit;
}
.share-item:hover { background: #F1F2F4; }
.share-item .sha { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; }

/* comments */
.comment-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--jv-border); }
.comment-row:last-child { border-bottom: none; }
.comment-bubble { background: #F1F2F4; border-radius: 12px; padding: 8px 12px; flex: 1; }
.comment-field-row { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--jv-border); }

/* related card */
.related-card { border-radius: 12px; overflow: hidden; box-shadow: var(--jv-shadow); background: #fff; cursor: pointer; }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-card .r-body { padding: 10px 12px; }
.related-card .r-title { font-weight: 700; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* author card */
.author-card { display: flex; gap: 14px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--jv-border); border-radius: 14px; }

/* filter sheet chip */
.seg-btn { border: 1px solid var(--jv-border); background: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; }
.seg-btn.active { background: var(--jv-dark); color: #fff; border-color: var(--jv-dark); }

/* result row in search */
.result-item { display: flex; gap: 12px; align-items: center; padding: 11px 16px; background: #fff; border-bottom: 1px solid var(--jv-border); cursor: pointer; }
.result-item:hover { background: #F7F8FA; }
.result-item .res-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #F1F2F4; color: var(--jv-muted); font-size: 1.2rem; }
.result-item.news .res-icon { color: var(--jv-primary); }

/* hide bottom nav offset on desktop already handled */

/* Membership settings banner */
.mem-settings-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  box-shadow: 0 4px 18px rgba(229,57,53,0.25);
  transition: transform 0.15s;
}
.mem-settings-banner:active { transform: scale(0.98); }
.mem-settings-banner-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #C62828 0%, #E53935 55%, #FF6F00 100%);
  z-index: 0;
}
.mem-settings-banner-content { flex: 1; position: relative; z-index: 1; }
.mem-settings-banner-arrow {
  color: rgba(255,255,255,0.8); font-size: 1.3rem;
  position: relative; z-index: 1;
}