/**
 * SEO Checker Impact Visibility Enhancements
 * Improves visibility of Medium and Low impact sections without reducing focus on Critical
 */

/* Summary strips above Medium and Low sections */
.seo-impact-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.seo-impact-summary-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: 1px;
}

.seo-impact-summary-content {
  flex: 1;
  min-width: 0;
}

.seo-impact-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.seo-impact-summary-title {
  font-weight: 600;
  color: var(--color-text);
  font-size: 14px;
  flex: 1;
  min-width: 0;
}

.seo-impact-summary-text {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
  font-size: 13px;
}

.seo-impact-summary-count {
  color: var(--color-text);
  font-weight: 600;
  margin-top: 6px;
  font-size: 13px;
}

/* Status badges for containers */
.seo-impact-summary-status-badge,
.seo-group-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.seo-status-icon {
  font-size: 13px;
  line-height: 1;
}

.seo-status-label {
  font-weight: 600;
}

.seo-status-count {
  opacity: 0.8;
  font-weight: 500;
}

/* Status badge colors */
.seo-status-badge-needs_attention {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.seo-status-badge-optional {
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #94a3b8;
}

.seo-status-badge-all_good {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* Light theme status badges */
html[data-theme="light"] .seo-status-badge-needs_attention {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #d97706;
}

html[data-theme="light"] .seo-status-badge-optional {
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.25);
  color: #64748b;
}

html[data-theme="light"] .seo-status-badge-all_good {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: #16a34a;
}

/* Visual differentiation for Medium impact section */
.seo-check-group[data-group="MEDIUM"] {
  border-left: 3px solid rgba(255, 193, 7, 0.4); /* Amber/blue-amber */
  padding-left: 16px;
  margin-left: -16px;
}

.seo-check-group[data-group="MEDIUM"] .seo-group-header {
  color: rgba(255, 255, 255, 0.92); /* Slightly brighter */
}

.seo-check-group[data-group="MEDIUM"] .seo-group-name {
  font-weight: 600;
}

/* Visual differentiation for Low impact section */
.seo-check-group[data-group="LOW"] {
  border-left: 3px solid rgba(255, 255, 255, 0.15); /* Neutral gray */
  padding-left: 16px;
  margin-left: -16px;
}

.seo-check-group[data-group="LOW"] .seo-group-header {
  color: rgba(255, 255, 255, 0.80); /* Slightly muted */
}

/* Icons in group headers */
.seo-group-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 14px;
  vertical-align: middle;
}

/* Helper line when Critical = 0 */
.seo-no-critical-helper {
  padding: 10px 14px;
  margin-bottom: 12px;
  background: rgba(80, 160, 255, 0.1);
  border: 1px solid rgba(80, 160, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.5;
}

/* Ensure Critical remains visually dominant */
.seo-check-group[data-group="Critical"] {
  border-left: 3px solid rgba(239, 68, 68, 0.6); /* Red - keep dominant */
  padding-left: 16px;
  margin-left: -16px;
}

.seo-check-group[data-group="Critical"] .seo-group-header {
  color: var(--color-text);
  font-weight: 700;
}

/* Light theme adjustments */
html[data-theme="light"] .seo-impact-summary {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .seo-impact-summary-text {
  color: rgba(30, 41, 59, 0.75);
}

html[data-theme="light"] .seo-check-group[data-group="MEDIUM"] {
  border-left-color: rgba(245, 158, 11, 0.4);
}

html[data-theme="light"] .seo-check-group[data-group="MEDIUM"] .seo-group-header {
  color: rgba(30, 41, 59, 0.9);
}

html[data-theme="light"] .seo-check-group[data-group="LOW"] {
  border-left-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .seo-check-group[data-group="LOW"] .seo-group-header {
  color: rgba(30, 41, 59, 0.75);
}

html[data-theme="light"] .seo-group-icon {
  color: rgba(30, 41, 59, 0.6);
  opacity: 0.8;
}

html[data-theme="light"] .seo-no-critical-helper {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: rgba(30, 41, 59, 0.85);
}

html[data-theme="light"] .seo-check-group[data-group="Critical"] {
  border-left-color: rgba(239, 68, 68, 0.6);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .seo-impact-summary {
    padding: 12px;
    gap: 10px;
    font-size: 12px;
  }
  
  .seo-impact-summary-icon {
    width: 18px;
    height: 18px;
    font-size: 14px;
  }
  
  .seo-impact-summary-title {
    font-size: 13px;
  }
  
  .seo-impact-summary-text,
  .seo-impact-summary-count {
    font-size: 12px;
  }
}
