/* ==========================================================================
   Uptown Trading — Blog Content Styles
   Magazine-style typography for SEO/AEO/GEO blog posts
   Targets .entry-content (WoodMart single post body) on staging + production
   ========================================================================== */

.entry-content {
  font-family: "Sukhumvit Set", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #2d3436;
  max-width: 760px;
  margin: 0 auto;
}

/* --- Headings --- */
.entry-content h1 {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a2e;
  margin: 0 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid #e8c547;
  letter-spacing: -0.02em;
}

.entry-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #16213e;
  margin: 2.2rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid #e8c547;
  line-height: 1.35;
}

.entry-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f3460;
  margin: 1.6rem 0 0.6rem;
  line-height: 1.4;
}

.entry-content h3::before {
  content: "▸ ";
  color: #e8c547;
  font-weight: 700;
}

/* --- Paragraphs --- */
.entry-content p {
  margin: 0 0 1.1rem;
}

.entry-content p > strong:first-child {
  color: #16213e;
}

/* --- Links --- */
.entry-content a {
  color: #0f3460;
  text-decoration: underline;
  text-decoration-color: #e8c547;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color 0.15s ease;
}

.entry-content a:hover {
  color: #e94560;
}

/* --- Images --- */
.entry-content img {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  height: auto;
  display: block;
}

/* ponytail: override the width="600" inline attr — let images fill container */
.entry-content img[width] {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content p > img:only-child {
  width: 100%;
  max-width: 760px;
  margin: 1.5rem auto;
}

.entry-content img.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
  max-width: 320px;
  width: 320px;
}

.entry-content img.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
  max-width: 320px;
  width: 320px;
}

.entry-content img.aligncenter {
  display: block;
  margin: 1.5rem auto;
  width: 100%;
  max-width: 760px;
}

/* --- Key Takeaways box --- */
.entry-content .key-takeaways {
  background: linear-gradient(135deg, #fff9e6 0%, #fffef5 100%);
  border-left: 5px solid #e8c547;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 2px 12px rgba(232, 197, 71, 0.12);
}

.entry-content .key-takeaways h2 {
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  font-size: 1.3rem;
  color: #b8860b;
}

.entry-content .key-takeaways ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.entry-content .key-takeaways li {
  margin-bottom: 0.6rem;
  padding-left: 0.3rem;
}

.entry-content .key-takeaways li::marker {
  color: #e8c547;
}

/* --- Lists --- */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.2rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}

.entry-content ul li::marker {
  color: #e8c547;
  font-weight: 700;
}

.entry-content ol li::marker {
  color: #0f3460;
  font-weight: 700;
}

/* --- Tables (comparison) --- */
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
}

.entry-content thead {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  color: #fff;
}

.entry-content thead th {
  padding: 0.9rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.entry-content tbody tr:nth-child(even) {
  background: #f8f9fb;
}

.entry-content tbody tr:nth-child(odd) {
  background: #fff;
}

.entry-content tbody tr:hover {
  background: #fff9e6;
}

.entry-content td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

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

.entry-content td strong {
  color: #16213e;
}

/* --- FAQ / People Also Ask --- */
.entry-content h2 + h3 {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 1rem 0 0.4rem;
  font-size: 1.05rem;
  border-left: 3px solid #0f3460;
}

.entry-content h2 + h3::before {
  content: "Q: ";
  color: #e94560;
  font-weight: 700;
}

/* --- About Author box --- */
.entry-content h2:last-of-type,
.entry-content:has(.author-box) h2 {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  border-left: none;
  margin-bottom: 0.5rem;
}

/* --- Disclaimer --- */
.entry-content p em:only-child,
.entry-content p > em:first-child:last-child {
  display: block;
  background: #fff5f5;
  border-left: 4px solid #e94560;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6c757d;
  font-size: 0.9rem;
}

/* --- Related Products list --- */
.entry-content h2 + ul {
  background: #f8f9fb;
  border-radius: 10px;
  padding: 1rem 1.5rem 1rem 2.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.entry-content h2 + ul li {
  background: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid #e8c547;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.entry-content h2 + ul li::before {
  content: "🛒 ";
}

/* --- Schema script (hide) --- */
.entry-content script {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .entry-content {
    font-size: 16px;
    padding: 0 0.5rem;
  }
  .entry-content h1 { font-size: 1.6rem; }
  .entry-content h2 { font-size: 1.3rem; }
  .entry-content h3 { font-size: 1.05rem; }
  .entry-content img.alignright,
  .entry-content img.alignleft {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    width: 100%;
  }
  .entry-content table {
    font-size: 0.85rem;
  }
  .entry-content td,
  .entry-content th {
    padding: 0.6rem 0.5rem;
  }
  .entry-content h2 + ul {
    flex-direction: column;
  }
}

/* --- Print-friendly --- */
@media print {
  .entry-content {
    max-width: none;
    color: #000;
  }
  .entry-content a {
    text-decoration: none;
    color: #000;
  }
}
