/**
 * Market Guide Auto Publisher – Front-end Styles
 * Applied to generated Market Guide pages on the public site.
 */

/* ──────────────────────────────────────────────────
   Highlight Box
────────────────────────────────────────────────── */
.highlight-box {
  background: #eaffea;
  border-left: 4px solid #00ff00;
  padding: 20px 24px;
  border-radius: 10px;
  margin: 24px 0;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1f2e;
  position: relative;
}

.highlight-box::before {
  content: "💡";
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

/* ──────────────────────────────────────────────────
   Info Card
────────────────────────────────────────────────── */
.info-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 24px 0;
}

.info-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a1f2e;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ──────────────────────────────────────────────────
   FAQ Section
────────────────────────────────────────────────── */
.faq {
  margin: 24px 0;
}

.faq strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1a1f2e;
  margin-top: 20px;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid #00cc44;
}

.faq p,
.faq > *:not(strong) {
  color: #4b5563;
  line-height: 1.75;
  font-size: 15px;
  margin: 0 0 8px;
}

/* ──────────────────────────────────────────────────
   Styled Tables
────────────────────────────────────────────────── */
table.mgap-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

table.mgap-table thead {
  background: #1a1f2e;
  color: #ffffff;
}

table.mgap-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

table.mgap-table thead th:first-child {
  border-radius: 0;
}

table.mgap-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

table.mgap-table tbody tr:last-child {
  border-bottom: none;
}

table.mgap-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

table.mgap-table tbody tr:hover {
  background: #eaffea;
}

table.mgap-table tbody td {
  padding: 13px 18px;
  color: #374151;
  vertical-align: middle;
  line-height: 1.5;
}

table.mgap-table tbody td strong {
  color: #1a1f2e;
}

/* ──────────────────────────────────────────────────
   Key Points List
────────────────────────────────────────────────── */
.mgap-key-points {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.mgap-key-points li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  color: #374151;
  line-height: 1.6;
  font-size: 15px;
}

.mgap-key-points li:last-child {
  border-bottom: none;
}

.mgap-key-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00cc44;
  font-weight: 700;
  font-size: 16px;
}

/* ──────────────────────────────────────────────────
   Warning Box
────────────────────────────────────────────────── */
.warning-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  color: #78350f;
  font-size: 14px;
  line-height: 1.6;
}

.warning-box::before {
  content: "⚠️ ";
  font-style: normal;
}

/* ──────────────────────────────────────────────────
   Responsive
────────────────────────────────────────────────── */
@media (max-width: 640px) {
  table.mgap-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
