/* =========================================================
   Email Blacklist Checker — email-blacklist-checker.css
   ========================================================= */

/* ---------------------------------------------------------
   Form
   --------------------------------------------------------- */
.ebl-form {
  max-width: 600px;
  margin: 0 auto 1.25rem;
}

.ebl-input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0;
}

.ebl-domain-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  font-family: var(--font-mono);
  background: var(--color-bg-card);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

[data-theme="light"] .ebl-domain-input {
  border-color: rgba(0, 0, 0, 0.15);
}

.ebl-domain-input:focus {
  border-color: var(--color-accent);
}

.ebl-check-btn {
  padding: 0.625rem 1.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.ebl-check-btn:hover {
  opacity: 0.85;
}

.ebl-check-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------------------------------------------------
   Status bar
   --------------------------------------------------------- */
.ebl-status-bar {
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.ebl-status-bar--info {
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.ebl-status-bar--error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.ebl-status-bar--warn {
  background: rgba(251, 191, 36, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

/* ---------------------------------------------------------
   Results header
   --------------------------------------------------------- */
.ebl-results-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.ebl-results-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.ebl-results-target {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text-heading);
  font-family: var(--font-mono);
}

.ebl-resolved-ip-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.ebl-resolved-ip {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------
   Summary banner
   --------------------------------------------------------- */
.ebl-summary {
  padding: 0.875rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.ebl-summary--clean {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.ebl-summary--listed {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.ebl-summary--warn {
  background: rgba(251, 191, 36, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

[data-theme="light"] .ebl-summary--clean  { color: #16a34a; }
[data-theme="light"] .ebl-summary--listed { color: #dc2626; }
[data-theme="light"] .ebl-summary--warn   { color: #d97706; }

/* ---------------------------------------------------------
   Two-column grid
   --------------------------------------------------------- */
.ebl-lists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 680px) {
  .ebl-lists-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   List section card
   --------------------------------------------------------- */
.ebl-list-section {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.75rem;
  overflow: hidden;
}

[data-theme="light"] .ebl-list-section {
  border-color: rgba(0, 0, 0, 0.1);
}

.ebl-list-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .ebl-list-section__title {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* ---------------------------------------------------------
   Individual result row
   --------------------------------------------------------- */
.ebl-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
  min-height: 2.5rem;
}

.ebl-row:last-child {
  border-bottom: none;
}

[data-theme="light"] .ebl-row {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.ebl-row__name {
  flex: 1;
  color: var(--color-text);
  font-size: 0.8125rem;
  cursor: default;
}

/* ---------------------------------------------------------
   Status badge
   --------------------------------------------------------- */
.ebl-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ebl-badge--clean {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.ebl-badge--listed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.ebl-badge--unavailable {
  background: rgba(107, 114, 128, 0.12);
  color: var(--color-text-muted);
  font-weight: 500;
  cursor: help;
}

.ebl-badge--error {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  opacity: 0.6;
}

.ebl-badge--checking {
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-accent);
}

[data-theme="light"] .ebl-badge--clean    { color: #16a34a; }
[data-theme="light"] .ebl-badge--listed   { color: #dc2626; }

/* ---------------------------------------------------------
   Delist link and return code
   --------------------------------------------------------- */
.ebl-delist-link {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.12s;
}

.ebl-delist-link:hover {
  background: rgba(6, 182, 212, 0.1);
}

.ebl-return-code {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Note text below the form
   --------------------------------------------------------- */
.ebl-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.625rem;
}

.ebl-domain-na {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: 1rem;
  text-align: center;
  font-style: italic;
}
