/* Scoped styles for makeup-and-cosmetics-ingredient-lookup (prefix: mcil-) */

.mcil-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text, #1f2937);
}

.mcil-hero {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mcil-pill-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9d174d;
  background-color: #fce7f3;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.mcil-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}

.mcil-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  max-width: 820px;
}

/* Nav Tabs */
.mcil-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.mcil-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -2px;
}

.mcil-tab-btn:hover {
  color: #0f172a;
}

.mcil-tab-active {
  color: #db2777;
  border-bottom-color: #db2777;
}

.mcil-tab-panel {
  display: none;
}

.mcil-panel-active {
  display: block;
}

/* Panel Card */
.mcil-card-panel {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mcil-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
}

.mcil-text-muted {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.25rem 0;
  line-height: 1.45;
}

/* Scanner Box */
.mcil-scanner-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mcil-lbl {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.mcil-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.mcil-textarea:focus, .mcil-input:focus, .mcil-select:focus {
  border-color: #db2777;
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.15);
}

.mcil-scanner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mcil-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mcil-btn-primary {
  background-color: #db2777;
  color: #ffffff;
}

.mcil-btn-primary:hover {
  background-color: #be185d;
}

.mcil-btn-secondary {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.mcil-btn-secondary:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Scanner Results */
.mcil-scan-results {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
}

.mcil-summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mcil-stat-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mcil-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.mcil-stat-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mcil-stat-safe {
  color: #16a34a;
}

.mcil-stat-mod {
  color: #d97706;
}

.mcil-stat-danger {
  color: #dc2626;
}

.mcil-subheading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.85rem 0;
}

.mcil-parsed-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mcil-parsed-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.mcil-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.mcil-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.mcil-item-fn {
  font-size: 0.85rem;
  color: #475569;
}

/* Badges */
.mcil-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.mcil-hz-low {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.mcil-hz-mod {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.mcil-hz-high {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.mcil-badge-comedo {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Directory Section */
.mcil-dir-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mcil-count-badge {
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
  background-color: #f1f5f9;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

.mcil-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .mcil-filter-bar {
    grid-template-columns: 1fr;
  }
}

.mcil-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mcil-search-field {
  flex-grow: 1;
}

.mcil-input, .mcil-select {
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mcil-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.mcil-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.mcil-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  border-color: #f472b6;
}

.mcil-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mcil-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
  line-height: 1.3;
}

.mcil-card-inci {
  font-size: 0.8rem;
  color: #64748b;
}

.mcil-badge-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.mcil-card-function {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.mcil-card-benefits {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.45;
  margin: 0 0 0.85rem 0;
  flex-grow: 1;
}

.mcil-card-extra {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.mcil-extra-item {
  line-height: 1.4;
}

.mcil-no-results {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
}

/* Guide Section */
.mcil-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.mcil-guide-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}

.mcil-guide-box-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.mcil-guide-box p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Ad Slot */
.mcil-ad-slot {
  min-height: 280px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
}

/* Disclaimer */
.mcil-disclaimer {
  background-color: #fdf2f8;
  border-left: 4px solid #db2777;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 2rem 0;
}

.mcil-disclaimer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #9d174d;
  margin-bottom: 0.35rem;
}

.mcil-disclaimer-text {
  font-size: 0.85rem;
  color: #831843;
  margin: 0;
  line-height: 1.5;
}
