/* PickBazaar — Blog Styles */

/* ═══════════════════════
   PROSE / ARTICLE CONTENT
═══════════════════════ */
.prose { font-family: 'DM Sans', system-ui, sans-serif; }
.prose h2 { font-size: 1.5rem; font-weight: 900; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.25rem; font-weight: 800; margin: 1.75rem 0 .6rem; }
.prose p  { font-size: 15px; line-height: 1.8; color: #475569; margin-bottom: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.1rem; color: #475569; }
.prose li { font-size: 15px; line-height: 1.75; margin-bottom: .4rem; }
.prose strong { font-weight: 700; color: #0f172a; }
.prose a { color: #4f46e5; font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose blockquote { border-left: 3px solid #6366f1; background: #eef2ff; padding: .75rem 1rem; margin: 1.5rem 0; border-radius: 0 .75rem .75rem 0; font-style: italic; color: #3730a3; }
.prose img { border-radius: 1rem; box-shadow: 0 2px 12px rgba(0,0,0,.07); margin: 1.5rem auto; max-width: 100%; height: auto; }
.prose code { background: #f1f5f9; border-radius: .35rem; padding: .1rem .4rem; font-size: 13px; color: #4f46e5; }
.prose pre { background: #0f172a; border-radius: 1rem; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
.prose pre code { background: none; color: #e2e8f0; font-size: 13px; padding: 0; }

/* ═══════════════════════
   TABLES — desktop
═══════════════════════ */
.prose table,
.pb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 1.5rem 0; }
.prose th,
.pb-table th { background: #0f172a; color: #fff; padding: .6rem .9rem; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.prose td,
.pb-table td { padding: .6rem .9rem; border-bottom: 1px solid #e8ecf0; color: #475569; }
.prose tr:last-child td,
.pb-table tr:last-child td { border-bottom: none; }
.prose tr:nth-child(even) td { background: #f8fafc; }

/* Table scroll wrapper — auto-injected by JS on mobile */
.pb-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
}
.pb-table-wrap table,
.pb-table-wrap .pb-table { margin: 0; border-radius: 0; border: none; }
.pb-table-hint {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 5px;
  padding: 0 2px;
}

/* ═══════════════════════
   POST META
═══════════════════════ */
.pb-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 28px;
}
.pb-meta-author {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pb-meta-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: #4f46e5; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; flex-shrink: 0;
}
.pb-meta-name { font-weight: 700; color: #1e293b; font-size: 13px; }
.pb-meta-item { display: flex; align-items: center; gap: 5px; }
.pb-meta-item i { color: #4f46e5; font-size: 11px; }
.pb-read-pill {
  background: #4f46e5; color: #fff;
  padding: 4px 12px; border-radius: 20px;
  font-size: 10.5px; font-weight: 700;
  margin-left: auto;
}

/* ═══════════════════════
   SHARE CTA
═══════════════════════ */
.pb-share-cta {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border-radius: 20px; padding: 28px;
  text-align: center; margin: 32px 0;
}
.pb-share-cta h3 { font-size: 20px; color: #fff; font-weight: 900; margin-bottom: 5px; }
.pb-share-cta p  { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.pb-share-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pb-share-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: 11px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.pb-share-btn.wa { background: #25d366; color: #fff; }
.pb-share-btn.tw { background: #1a1a1a; color: #fff; }
.pb-share-btn.wa:hover { background: #1ebe5a; }
.pb-share-btn.tw:hover { background: #333; }

/* ═══════════════════════
   POST NAVIGATION
═══════════════════════ */
.pb-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 28px 0;
}
.pb-pn-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
  text-decoration: none; display: block;
}
.pb-pn-card:hover { border-color: #4f46e5; box-shadow: 0 4px 16px rgba(79,70,229,.1); }
.pb-pn-label { font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #94a3b8; margin-bottom: 5px; }
.pb-pn-title { font-size: 13px; font-weight: 700; color: #0f172a; line-height: 1.4; }
.pb-pn-next { text-align: right; }

/* ═══════════════════════
   BREADCRUMB
═══════════════════════ */
.pb-breadcrumb {
  display: flex; align-items: center;
  gap: 6px; font-size: 11.5px;
  color: #94a3b8; margin-bottom: 16px;
  font-weight: 600; flex-wrap: wrap;
  overflow: hidden;
}
.pb-breadcrumb a { color: #94a3b8; }
.pb-breadcrumb a:hover { color: #4f46e5; }
.pb-breadcrumb .current {
  color: #64748b; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  max-width: 180px; display: inline-block;
}

/* ═══════════════════════
   PAGINATION
═══════════════════════ */
.page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; font-size: 13px; font-weight: 700; color: #374151; background: #fff; border: 1.5px solid #e5e7eb; margin: 0 2px; transition: all .2s; text-decoration: none; }
.page-numbers.current { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.page-numbers:hover:not(.current) { border-color: #6366f1; color: #4f46e5; }
.page-numbers.prev, .page-numbers.next { width: auto; padding: 0 14px; }

/* ═══════════════════════
   SEARCH FORM
═══════════════════════ */
.search-form { display: flex; gap: 6px; }
.search-field { flex: 1; padding: 9px 12px; border-radius: 9px; border: 1.5px solid #e5e7eb; font-size: 13px; font-family: 'DM Sans', sans-serif; outline: none; transition: border-color .2s; }
.search-field:focus { border-color: #6366f1; }
.search-submit { background: #4f46e5; color: #fff; border: none; border-radius: 9px; padding: 9px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s; }
.search-submit:hover { background: #4338ca; }

/* ═══════════════════════
   SIDEBAR CATEGORIES
═══════════════════════ */
.cat-item { list-style: none; margin-bottom: 5px; }
.cat-item a { font-size: 12px; font-weight: 600; color: #4f46e5; background: #eef2ff; padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; transition: background .2s; text-decoration: none; }
.cat-item a:hover { background: #4f46e5; color: #fff; }

/* ═══════════════════════
   MOBILE — max 767px
═══════════════════════ */
@media (max-width: 767px) {

  /* Body guard */
  body { overflow-x: hidden; }

  /* Page padding tighter */
  main.single-main { padding-left: 12px !important; padding-right: 12px !important; padding-top: 20px !important; }

  /* Breadcrumb */
  .pb-breadcrumb { font-size: 10.5px; gap: 4px; }
  .pb-breadcrumb .current { max-width: 130px; }

  /* Title */
  .pb-post-title { font-size: 22px !important; line-height: 1.2 !important; margin-bottom: 14px !important; }

  /* Post meta — stack vertically */
  .pb-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 18px;
  }
  .pb-read-pill { margin-left: 0; }

  /* Featured image */
  .pb-feat-img { border-radius: 12px !important; margin-bottom: 18px !important; }
  .pb-feat-img img { max-height: 220px; object-fit: cover; width: 100%; }

  /* Affiliate banner */
  .pb-aff-banner { font-size: 11.5px !important; padding: 10px 12px !important; }

  /* Prose */
  .prose p  { font-size: 14px; }
  .prose h2 { font-size: 1.25rem; margin: 1.5rem 0 .6rem; }
  .prose h3 { font-size: 1.1rem; }
  .prose li { font-size: 14px; }

  /* Table — show swipe hint, enable horizontal scroll */
  .pb-table-wrap { margin: 1rem -12px; border-radius: 0; border-left: none; border-right: none; }
  .pb-table-hint { display: flex; }

  /* Share CTA */
  .pb-share-cta { padding: 20px 16px; border-radius: 16px; margin: 22px 0; }
  .pb-share-cta h3 { font-size: 17px; }
  .pb-share-btns { flex-direction: column; gap: 8px; }
  .pb-share-btn { padding: 12px; font-size: 13.5px; width: 100%; }

  /* Post navigation — single column */
  .pb-post-nav { grid-template-columns: 1fr; gap: 8px; margin: 20px 0; }
  .pb-pn-next { text-align: left; }
}

/* ═══════════════════════
   EXTRA SMALL — 320px
═══════════════════════ */
@media (max-width: 380px) {
  .pb-post-title { font-size: 19px !important; }
  .pb-feat-img img { max-height: 180px; }
  .prose p { font-size: 13.5px; }
}
