/* ==========================================================================
   MAAVORA EDITORIAL JOURNAL & WISDOM — DESIGN SYSTEM
   Artisan organic luxury, minimal typography, warm paper tones, zero emojis
   ========================================================================== */

.jn-page {
  background: #fbfbf9;
  min-height: 100vh;
  padding-bottom: 0;
}

/* Journal Hero Eyebrow Banner */
.jn-hero {
  background: #ffffff;
  border-bottom: 1px solid #f0ede6;
  padding: 56px 24px 44px;
  text-align: center;
}

.jn-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.jn-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.jn-hero h1 {
  font-size: 38px;
  font-weight: 800;
  color: #18191b;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0 0 14px;
}

.jn-hero p {
  font-size: 16px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 auto 28px;
  max-width: 620px;
}

/* Category Filter Tabs */
.jn-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.jn-filter-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.jn-filter-btn:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.jn-filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Journal Grid Container */
.jn-container {
  max-width: 1240px;
  margin: 48px auto 0;
  padding: 0 24px;
}

/* Featured Top Story */
.jn-featured-card {
  background: #ffffff;
  border: 1px solid #ede8df;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 48px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.jn-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.jn-featured-media {
  background: linear-gradient(135deg, #fdfbf7 0%, #f6f1e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.jn-featured-media img {
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.12));
  transition: transform 0.4s ease;
}

.jn-featured-card:hover .jn-featured-media img {
  transform: scale(1.05);
}

.jn-featured-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jn-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 14px;
}

.jn-featured-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #172019;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 0 0 14px;
}

.jn-featured-content p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #64748b;
  margin: 0 0 24px;
}

.jn-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
}

.jn-author-info strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.jn-author-info small {
  font-size: 11px;
  color: #94a3b8;
}

.jn-read-pill {
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Articles Standard Grid */
.jn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.jn-card {
  background: #ffffff;
  border: 1px solid #ede8df;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.jn-card-media {
  background: #fbf9f5;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid #f4f0e9;
  position: relative;
}

.jn-card-media img {
  max-width: 170px;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08));
  transition: transform 0.3s ease;
}

.jn-card:hover .jn-card-media img {
  transform: scale(1.06);
}

.jn-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.jn-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}

.jn-card-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 18px;
  flex-grow: 1;
}

.jn-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f8fafc;
  padding-top: 14px;
  font-size: 11.5px;
  color: #94a3b8;
}

/* ==========================================================================
   ARTICLE SINGLE DETAIL VIEW (Rich Editorial Layout)
   ========================================================================== */
.jn-single {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.jn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 24px;
}

.jn-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.jn-breadcrumb a:hover {
  color: #0f172a;
}

.jn-article-header {
  margin-bottom: 36px;
}

.jn-article-header h1 {
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 16px 0 20px;
}

.jn-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}

.jn-article-meta-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #15803d;
  border: 2px solid #dcfce7;
}

.jn-article-featured-img {
  background: #fbf9f5;
  border: 1px solid #ede8df;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-bottom: 36px;
}

.jn-article-featured-img img {
  max-width: 320px;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.1));
}

.jn-article-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #334155;
  font-weight: 500;
  padding-left: 20px;
  border-left: 3px solid #ffb600;
  margin-bottom: 32px;
}

.jn-article-body {
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
}

.jn-article-body p {
  margin-bottom: 24px;
}

/* Key Takeaway Box */
.jn-takeaway-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 36px 0;
}

.jn-takeaway-box h4 {
  font-size: 15px;
  font-weight: 800;
  color: #15803d;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jn-takeaway-box p {
  font-size: 14px;
  line-height: 1.6;
  color: #166534;
  margin: 0;
}

/* Related Harvest Product Pill */
.jn-related-harvest {
  background: #ffffff;
  border: 1px solid #ede8df;
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.jn-harvest-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jn-harvest-info img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .jn-featured-card { grid-template-columns: 1fr; }
  .jn-grid { grid-template-columns: 1fr; }
  .jn-hero h1 { font-size: 28px; }
  .jn-article-header h1 { font-size: 26px; }
}

/* ==========================================================================
   PREMIUM 2-COLUMN EDITORIAL ARTICLE LAYOUT WITH RICH SIDEBAR
   ========================================================================== */
.jn-single-layout {
  padding: 40px 4% 90px;
  background: #ffffff;
}

.jn-single-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
}

.jn-article-col {
  min-width: 0;
}

.jn-sidebar-col {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.jn-sidebar-widget {
  background: #fbfbfb;
  border: 1px solid #ede8df;
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.jn-sidebar-heading {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.2px;
}

.jn-sidebar-heading span {
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
  background: #ffedd5;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sidebar Story List */
.jn-sidebar-stories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jn-sidebar-story-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.jn-sidebar-story-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.jn-sidebar-story-item:hover {
  transform: translateX(3px);
}

.jn-sidebar-story-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.jn-sidebar-story-content {
  min-width: 0;
}

.jn-sidebar-story-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.jn-sidebar-story-item:hover .jn-sidebar-story-title {
  color: #c2410c;
}

.jn-sidebar-story-meta {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sidebar Featured Harvest Product Card */
.jn-sidebar-product-card {
  text-align: center;
}

.jn-sidebar-product-media {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 10px;
  margin-bottom: 14px;
  border: 1px solid #f1f5f9;
}

.jn-sidebar-product-media img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s;
}

.jn-sidebar-product-card:hover .jn-sidebar-product-media img {
  transform: scale(1.06);
}

.jn-sidebar-product-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.jn-sidebar-product-price {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
}

.jn-sidebar-product-price del {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 6px;
}

.jn-sidebar-add-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.jn-sidebar-add-btn:hover {
  background: #ffb600;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(255, 182, 0, 0.3);
}

/* Sidebar Categories Pill Grid */
.jn-sidebar-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jn-sidebar-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s;
}

.jn-sidebar-cat-pill span {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.jn-sidebar-cat-pill:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.jn-sidebar-cat-pill:hover span {
  color: #cbd5e1;
}

@media (max-width: 960px) {
  .jn-single-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .jn-sidebar-col {
    position: static;
  }
}
