/*
 * mediplant-indigenous.css
 * Styling for the Indigenous Plant Collection feature.
 * Loads alongside mediplant-shared.css.
 *
 * Design intent: warm earth tones (ochre, terra cotta, warm cream) —
 * visually distinct from the main Mediplant green palette, respectful and grounded.
 *
 * This file has zero effect when MP_INDIGENOUS_ENABLED = false
 * because none of these classes are ever written to the DOM.
 */

:root {
  --mp-indig-bg:          #fdf7ee;   /* warm parchment */
  --mp-indig-bg-deep:     #f5ead8;   /* ochre wash */
  --mp-indig-border:      #c8973e;   /* warm gold */
  --mp-indig-border-soft: #e8d4a8;
  --mp-indig-accent:      #9b4f1a;   /* terra cotta */
  --mp-indig-accent-dark: #6e3510;
  --mp-indig-text:        #3d2208;   /* deep warm brown */
  --mp-indig-muted:       #8a6035;
  --mp-indig-badge-bg:    #fde8cc;
  --mp-indig-badge-text:  #8b3e0f;
  --mp-indig-radius:      14px;
}

/* ── Section wrapper ───────────────────────────────────────────── */
.mp-indigenous-section {
  margin-top: 36px;
  padding: 28px 28px 24px;
  background: var(--mp-indig-bg);
  border: 1.5px solid var(--mp-indig-border-soft);
  border-top: 3px solid var(--mp-indig-border);
  border-radius: var(--mp-indig-radius);
  position: relative;
}

.mp-indigenous-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mp-indig-accent), var(--mp-indig-border), var(--mp-indig-accent));
  border-radius: var(--mp-indig-radius) var(--mp-indig-radius) 0 0;
}

/* Tool result inset version (slightly tighter) */
.mp-indigenous-tool-section {
  padding: 22px 24px 20px;
}

/* ── Header ────────────────────────────────────────────────────── */
.mp-indigenous-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mp-indig-border-soft);
}

.mp-indigenous-icon {
  font-size: 22px;
  margin-bottom: 4px;
  line-height: 1;
}

.mp-indigenous-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--mp-indig-text);
  margin: 0;
  letter-spacing: -0.2px;
}

.mp-indigenous-subtitle {
  font-size: 13px;
  color: var(--mp-indig-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Filter pill (herbs page) ──────────────────────────────────── */
.mp-pill-indigenous {
  background: var(--mp-indig-badge-bg);
  color: var(--mp-indig-badge-text);
  border: 1.5px solid var(--mp-indig-border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, box-shadow 0.15s;
}

.mp-pill-indigenous:hover,
.mp-pill-indigenous.active {
  background: var(--mp-indig-accent);
  color: #fff;
  border-color: var(--mp-indig-accent-dark);
  box-shadow: 0 2px 8px rgba(155, 79, 26, 0.25);
}

/* ── Herb card grid (herbs page) ───────────────────────────────── */
.mp-indigenous-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.mp-herb-card-indigenous {
  background: #fff;
  border: 1.5px solid var(--mp-indig-border-soft);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  transition: box-shadow 0.15s, transform 0.15s;
}

.mp-herb-card-indigenous:hover {
  box-shadow: 0 4px 16px rgba(155, 79, 26, 0.15);
  transform: translateY(-2px);
}

/* ── Inline badge — output by mpMarkIndigenous(h) ─────────────── */
/* mp-badge-indigenous: the 🪶 tag injected inline into herb cards  */
.mp-badge-indigenous {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: var(--mp-indig-badge-bg);
  color: var(--mp-indig-badge-text);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  vertical-align: middle;
  margin-left: 6px;
}

/* mp-indigenous-meta: nation name shown beneath the herb name inline */
.mp-indigenous-meta {
  font-size: 11px;
  font-weight: 500;
  color: var(--mp-indig-muted);
  font-style: italic;
  margin-top: 3px;
  line-height: 1.4;
}

/* ── Section badge (used in full-section rendering if needed) ──── */
.mp-indigenous-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--mp-indig-badge-bg);
  color: var(--mp-indig-badge-text);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

/* ── Nation tag ────────────────────────────────────────────────── */
.mp-indigenous-nation {
  font-size: 12px;
  font-weight: 500;
  color: var(--mp-indig-muted);
  margin-bottom: 6px;
  font-style: italic;
}

.mp-indigenous-nation-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--mp-indig-muted);
  font-style: italic;
  margin-bottom: 4px;
}

/* ── Traditional uses (tool section) ──────────────────────────── */
.mp-indigenous-uses {
  font-size: 12px;
  color: var(--mp-indig-muted);
  margin: 6px 0 10px;
  line-height: 1.5;
}

/* ── Tool section card row ─────────────────────────────────────── */
.mp-indigenous-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-indigenous-card {
  background: #fff;
  border: 1px solid var(--mp-indig-border-soft);
  border-left: 4px solid var(--mp-indig-border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-indigenous-card .mp-herb-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--mp-indig-text);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.mp-btn-indigenous {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--mp-indig-accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.mp-btn-indigenous:hover {
  background: var(--mp-indig-accent-dark);
  color: #fff;
  text-decoration: none;
}

.mp-btn-indigenous-sm {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  background: transparent;
  color: var(--mp-indig-accent);
  border: 1.5px solid var(--mp-indig-accent);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  align-self: flex-start;
}

.mp-btn-indigenous-sm:hover {
  background: var(--mp-indig-accent);
  color: #fff;
  text-decoration: none;
}

/* ── Disclaimer ────────────────────────────────────────────────── */
.mp-indigenous-disclaimer {
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--mp-indig-bg-deep);
  border-left: 3px solid var(--mp-indig-border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--mp-indig-muted);
  line-height: 1.6;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .mp-indigenous-section {
    padding: 20px 16px 18px;
  }
  .mp-indigenous-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .mp-indigenous-card-grid {
    grid-template-columns: 1fr;
  }
}