/**
 * Blog, Single Post & Editorial Layout Styling
 * Replicates USA Food Journal Signature Post Layout
 *
 * @package FoodMenuJournal
 */

/* 1. SIGNATURE DARK NAVY HERO SECTION */
.fmj-post-hero-section {
  background-color: #faf7f2;
  padding: 24px 0 28px;
}

.fmj-post-hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fmj-post-hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: stretch;
  min-height: 420px;
}

.fmj-post-hero-info {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* Breadcrumbs in dark hero */
.fmj-post-hero-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.fmj-post-hero-breadcrumbs a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.fmj-post-hero-breadcrumbs a:hover {
  color: #ffffff;
}

.fmj-post-hero-breadcrumbs .fmj-bc-sep {
  color: #475569;
}

.fmj-post-hero-breadcrumbs .fmj-bc-active {
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Category Pill Tag */
.fmj-post-hero-tag {
  display: inline-block;
  align-self: flex-start;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

/* Two-Tone Title */
.fmj-post-hero-title {
  font-size: clamp(1.75rem, 2.7vw, 2.45rem);
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}

.fmj-post-hero-h1-sub {
  display: block;
  color: #f87171;
  margin-top: 6px;
  font-size: 0.88em;
  font-weight: 800;
}

/* Excerpt / Lead summary */
.fmj-post-hero-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
  max-width: 580px;
}

/* 3 Pill Metrics */
.fmj-post-hero-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 6px;
}

.fmj-hero-metric-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fmj-metric-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  color: #fca5a5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fmj-metric-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

/* Action Buttons */
.fmj-post-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.fmj-btn-round {
  border-radius: 9999px !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
}

.fmj-btn-glass {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.fmj-btn-glass:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

/* Hero Right: Featured Media */
.fmj-post-hero-media {
  position: relative;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  background-color: #1e293b;
}

.fmj-post-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.fmj-post-hero-card:hover .fmj-post-hero-img {
  transform: scale(1.02);
}

.fmj-hero-badge-topleft {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #ffffff;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.fmj-hero-badge-bottomright {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* 2. ARTICLE BODY CONTAINER */
.fmj-post-content-section {
  background-color: #faf7f2;
  padding: 36px 0 60px;
}

.fmj-article-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.fmj-article-entry {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 44px 44px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.fmj-entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.fmj-entry-content h2 {
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f172a;
  margin: 38px 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.fmj-entry-content h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  margin: 28px 0 12px;
  line-height: 1.3;
}

.fmj-entry-content p {
  margin-bottom: 20px;
}

.fmj-entry-content a {
  color: #dc2626;
  font-weight: 700;
  text-decoration: underline;
}

.fmj-entry-content ul,
.fmj-entry-content ol {
  margin: 20px 0;
  padding-left: 24px;
}

.fmj-entry-content li {
  margin-bottom: 10px;
}

/* Responsive Tables inside Article Content */
.fmj-entry-content table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: table;
}

.fmj-entry-content th {
  background-color: #f8fafc;
  font-family: var(--fmj-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
}

.fmj-entry-content td {
  padding: 12px 16px;
  font-size: 0.92rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.fmj-entry-content tr:last-child td {
  border-bottom: none;
}

.fmj-entry-content tr:hover td {
  background-color: #f8fafc;
}

@media (max-width: 768px) {
  .fmj-entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .fmj-entry-content th,
  .fmj-entry-content td {
    padding: 10px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}


/* Featured Price Callout Card */
.fmj-price-callout-card {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 28px 0;
}

.fmj-pcall-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #dc2626;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.fmj-pcall-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 8px;
}

.fmj-pcall-desc {
  font-size: 0.95rem;
  color: #713f12;
  margin: 0;
  line-height: 1.6;
}

/* Article Tables */
.fmj-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.fmj-entry-content th {
  background: #f8fafc;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 2px solid #e2e8f0;
  color: #0f172a;
  text-align: left;
}

.fmj-entry-content td {
  padding: 14px 18px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #334155;
}

.fmj-entry-content tr:hover td {
  background: #fafaf9;
}

.fmj-entry-content td:last-child {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

/* Soft Pink / Rose "Worth It" Box */
.fmj-callout-worth-it {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 32px 0;
}

.fmj-callout-worth-it h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #9f1239;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fmj-callout-worth-it p {
  font-size: 0.95rem;
  color: #881337;
  margin: 0;
  line-height: 1.65;
}

.fmj-callout-worth-it strong {
  color: #4c0519;
  font-weight: 800;
}

/* In-Content Newsletter Subscribe Box */
.fmj-incontent-newsletter {
  background: #faf7f2;
  border: 2px dashed #e2e8f0;
  border-radius: 14px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.fmj-nl-sub {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.fmj-nl-heading {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.fmj-nl-desc {
  font-size: 0.92rem;
  color: #64748b;
  max-width: 500px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.fmj-nl-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.fmj-nl-input {
  flex: 1;
  min-width: 240px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

.fmj-nl-input:focus {
  border-color: #dc2626;
}

/* FAQ Accordion */
.fmj-post-faq-accordion {
  margin: 32px 0;
}

details.fmj-post-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

details.fmj-post-faq-item[open] {
  border-color: #cbd5e1;
}

details.fmj-post-faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  color: #0f172a;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

details.fmj-post-faq-item summary::-webkit-details-marker {
  display: none;
}

.fmj-faq-answer {
  padding: 16px 20px;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.fmj-faq-answer p {
  margin: 0;
}

/* More on Restaurant Box */
.fmj-more-chain-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.fmj-more-chain-box h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.fmj-more-chain-box p {
  font-size: 0.92rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

.fmj-more-chain-box a {
  color: #dc2626;
  font-weight: 700;
  text-decoration: underline;
}

/* Author Box */
.fmj-author-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin: 36px 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.fmj-author-box .fmj-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fmj-author-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.fmj-author-bio {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* 3. DISCOVERY SECTIONS */
.fmj-post-discovery-section {
  background-color: #f1f5f9;
  padding: 60px 0;
  border-top: 1px solid #e2e8f0;
}

.fmj-discovery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.fmj-discovery-h2 {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f172a;
  margin: 4px 0 0;
}

.fmj-seeall-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #dc2626;
  text-decoration: none;
}

.fmj-seeall-link:hover {
  text-decoration: underline;
}

/* 3-card Discovery Grid */
.fmj-discovery-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fmj-discovery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.fmj-disc-card-media {
  position: relative;
  height: 180px;
  background-color: #1e293b;
  overflow: hidden;
  display: block;
}

.fmj-disc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.fmj-discovery-card:hover .fmj-disc-card-media img {
  transform: scale(1.03);
}

.fmj-disc-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #dc2626;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.fmj-disc-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.fmj-disc-card-date {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.fmj-disc-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.fmj-disc-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.fmj-disc-card-title a:hover {
  color: #dc2626;
}

.fmj-disc-readmore {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #dc2626;
  text-decoration: none;
}

.fmj-disc-readmore:hover {
  text-decoration: underline;
}

/* 5 Restaurant Guides Row */
.fmj-chain-guides-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.fmj-chain-guide-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fmj-chain-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.fmj-chain-guide-media {
  height: 110px;
  background-color: #f8fafc;
  overflow: hidden;
}

.fmj-chain-guide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fmj-chain-guide-info {
  padding: 12px;
  text-align: center;
}

.fmj-chain-guide-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px;
}

.fmj-chain-guide-sub {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .fmj-post-hero-grid {
    grid-template-columns: 1fr;
  }
  .fmj-post-hero-media {
    min-height: 280px;
  }
  .fmj-post-hero-info {
    padding: 32px 28px;
  }
  .fmj-chain-guides-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .fmj-article-entry {
    padding: 28px 20px;
  }
  .fmj-post-hero-title {
    font-size: 1.6rem;
  }
  .fmj-chain-guides-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
