/**
 * Tripzao Theme — Journal Override CSS
 * Loaded AFTER the Journal plugin's own CSS (journal.css / article.css).
 * Only overrides what needs to match the theme's design tokens exactly.
 * Plugin CSS is left intact — this file is purely additive / corrective.
 *
 * @package tripzao
 * @since   1.0.1
 */

/* ── 1. Typography sync: make Journal headings use theme display font exactly */
.jm-h1,
.ar-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.025em;
}

/* Journal body text: match theme's base line-height */
.ar-content,
.jm-card-title,
.jm-feat-title {
  font-family: var(--font-sans);
  line-height: 1.65;
}

/* Bangla text inside Journal templates */
.ar-lede,
.jm-card-desc,
.jm-feat-desc,
.card-desc {
  font-family: var(--font-bn);
  font-weight: 500;
}

/* ── 2. Color corrections: use theme tokens where plugin used literals */
.jm-cat.on {
  background: var(--blue-800);
  color: #fff;
}

.jm-feat-badge,
.card-featured-badge {
  background: var(--yellow-400);
  color: #3a2400;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.ar-cat-badge {
  background: var(--blue-100);
  color: var(--blue-700);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 14px;
}

/* ── 3. Card card: match theme's tzr-blog-card to journal design */
.tzr-blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  display: flex;
  flex-direction: column;
}

.tzr-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tzr-blog-card .card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ink-100);
}

.tzr-blog-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.tzr-blog-card:hover .card-img img {
  transform: scale(1.04);
}

.tzr-blog-card .card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ink-100), var(--ink-200));
}

.tzr-blog-card .card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tzr-blog-card .card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-700);
  text-decoration: none;
  margin-bottom: 8px;
  display: inline-block;
}

.tzr-blog-card .card-cat:hover { color: var(--blue-500); }

.tzr-blog-card .card-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-900);
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.tzr-blog-card .card-title a {
  color: inherit;
  text-decoration: none;
}

.tzr-blog-card .card-title a:hover { color: var(--blue-700); }

.tzr-blog-card .card-desc {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.tzr-blog-card .card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-400);
  font-weight: 500;
}

.tzr-blog-card .card-dot { color: var(--ink-300); }

/* ── 4. Breadcrumb: Journal uses .ar-crumb / .jm-crumb — match theme style */
.jm-crumb,
.ar-crumb {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-400);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.jm-crumb a,
.ar-crumb a {
  color: var(--ink-500);
  text-decoration: none;
  transition: color .15s;
}

.jm-crumb a:hover,
.ar-crumb a:hover { color: var(--blue-700); }

.jm-crumb .sep,
.ar-crumb span:not([class]) {
  color: var(--ink-300);
}

/* ── 5. Search field: match theme's hero search field style */
.jm-search-field {
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.jm-search-field:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(58, 116, 224, .12);
}

/* ── 6. Pagination: Journal uses its own pagination; sync with theme .pagination */
.jm-pagination .jm-page-btn,
.jm-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  border: 1.5px solid var(--ink-200);
  background: var(--white);
  text-decoration: none;
  transition: all .15s var(--ease);
}

.jm-pagination .jm-page-btn:hover,
.jm-pagination .page-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-700);
}

.jm-pagination .jm-page-btn.current,
.jm-pagination .page-btn.current {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: #fff;
}

/* ── 7. Trending sidebar: sync fonts */
.jm-trending-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.jm-trending-item-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.4;
}

/* ── 8. Article body: sync prose styles to match theme blog.css */
.ar-content h2,
.ar-content h3,
.ar-content h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink-900);
}

.ar-content a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ar-content a:hover { color: var(--blue-500); }

.ar-content blockquote {
  border-left: 3px solid var(--yellow-400);
  background: var(--yellow-100);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-700);
  font-style: italic;
}

/* ── 9. Progress bar: use theme yellow */
.ar-progress-bar {
  background: var(--yellow-400) !important;
  height: 3px;
}

/* ── 10. Related articles: reuse theme blog-card sizing */
.ar-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── 11. Journal strip on Destinations page ──────────────────── */
.tzr-journal-strip {
  background: var(--bg-soft);
  padding: 64px 0;
}

/* ── 12. Related Journal links on single posts / destination pages ── */
.tzr-journal-related {
  margin: 40px 0 0;
  padding: 24px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
}

.journal-related-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 14px;
}

.journal-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journal-related-list li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-900);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: color .15s var(--ease);
}

.journal-related-list li a:hover { color: var(--blue-700); }

.journal-related-list .jr-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
