/* =========================================================
   FEA T03 Micro – Trust Layer for T06 Cards
   Purpose: isolated trust layer for T06 card body
   ========================================================= */

.fea-t03m,
.fea-t03m *,
.fea-t03m *::before,
.fea-t03m *::after {
  box-sizing: border-box;
}

.fea-t03m {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04), 0 1px 2px rgba(17, 24, 39, 0.03);
}

.fea-t03m[data-has-metrics="0"][data-has-review="0"][data-has-badges="0"][data-has-cta-support="0"] {
  display: none !important;
}

/* ---------- Metrics ---------- */
.fea-t03m__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.fea-t03m__metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.fea-t03m__metric-value {
  display: block;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.fea-t03m__metric-label {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  color: #667085;
}

/* ---------- Review ---------- */
.fea-t03m__review {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,250,252,0.94) 100%);
}

.fea-t03m__review-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: #1f2937;
  text-wrap: pretty;
}

.fea-t03m__review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fea-t03m__review-author,
.fea-t03m__review-role {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  color: #667085;
}

.fea-t03m__review-role::before {
  content: "·";
  margin-right: 6px;
}

/* ---------- Badges ---------- */
.fea-t03m__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.fea-t03m__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  background: #f8fafc;
  color: #475467;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- CTA Support ---------- */
.fea-t03m__cta-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: #475467;
}

.fea-t03m__cta-support::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #12b76a 0%, #039855 100%);
  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
  flex: 0 0 auto;
}

/* ---------- Creator ---------- */
.fea-t03m__creator {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding-top: 4px;
}

.fea-t03m__creator-image-wrap {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f4f6;
}

.fea-t03m__creator-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fea-t03m__creator-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fea-t03m__creator-name {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

.fea-t03m__creator-role {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  color: #667085;
}

/* ---------- Brand tuning ---------- */
.fea-meal-card--brand-foodie .fea-t03m {
  border-color: rgba(217, 55, 68, 0.10);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

.fea-meal-card--brand-foodie .fea-t03m__metric-value,
.fea-meal-card--brand-foodie .fea-t03m__review-text {
  color: #d93744;
}

.fea-meal-card--brand-delikas .fea-t03m {
  border-color: rgba(92, 59, 34, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
}

.fea-meal-card--brand-delikas .fea-t03m__metric-value,
.fea-meal-card--brand-delikas .fea-t03m__review-text {
  color: #8b5a2b;
}

.fea-meal-card--brand-crusty .fea-t03m {
  border-color: rgba(240, 184, 49, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #fffcef 100%);
}

.fea-meal-card--brand-crusty .fea-t03m__metric-value,
.fea-meal-card--brand-crusty .fea-t03m__review-text {
  color: #8a6400;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .fea-t03m {
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .fea-t03m__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fea-t03m__metric {
    padding: 9px 10px;
    border-radius: 12px;
  }

  .fea-t03m__metric-value {
    font-size: 15px;
  }

  .fea-t03m__review {
    padding: 11px 12px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fea-t03m,
  .fea-t03m * {
    transition: none !important;
    animation: none !important;
  }
}
