/* Email Validator Styles */

/* Single email input row */
.ev-single-wrap {
  max-width: 600px;
}

.ev-input-row {
  display: flex;
  gap: 0.75rem;
}

.ev-email-input {
  flex: 1;
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

/* Single result card */
.ev-single-result-card {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 10px;
  border-left: 4px solid;
}

.ev-status-valid { border-color: #10b981; background: #ecfdf5; }
.ev-status-invalid { border-color: #ef4444; background: #fef2f2; }
.ev-status-risky { border-color: #f59e0b; background: #fffbeb; }

.ev-result-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.ev-status-icon {
  font-size: 1.25rem;
}

.ev-status-valid .ev-status-icon { color: #10b981; }
.ev-status-invalid .ev-status-icon { color: #ef4444; }
.ev-status-risky .ev-status-icon { color: #f59e0b; }

.ev-result-email {
  font-family: monospace;
  font-size: 1rem;
  color: #374151;
  margin-bottom: 0.75rem;
  word-break: break-all;
}

.ev-result-issues {
  margin: 0;
  padding-left: 1.25rem;
  color: #6b7280;
  font-size: 0.9375rem;
}

.ev-result-issues li {
  margin-bottom: 0.25rem;
}

.ev-suggestion {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #dbeafe;
  border-radius: 6px;
  color: #1e40af;
  font-size: 0.875rem;
}

.ev-result-details {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ev-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #e5e7eb;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #4b5563;
}

.ev-tag-warn {
  background: #fef3c7;
  color: #92400e;
}

/* Bulk actions */
.ev-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Stats colors */
.ev-stat-valid .ee-stat-num { color: #10b981; }
.ev-stat-invalid .ee-stat-num { color: #ef4444; }
.ev-stat-risky .ee-stat-num { color: #f59e0b; }

/* Results table */
.ev-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.ev-results-table th,
.ev-results-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.ev-results-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.ev-results-table td {
  color: #4b5563;
}

.ev-results-table em {
  color: #2563eb;
  font-style: normal;
}

.ev-row-valid { background: #f0fdf4; }
.ev-row-invalid { background: #fef2f2; }
.ev-row-risky { background: #fffbeb; }

.ev-status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ev-status-badge.ev-status-valid { background: #d1fae5; color: #065f46; }
.ev-status-badge.ev-status-invalid { background: #fee2e2; color: #991b1b; }
.ev-status-badge.ev-status-risky { background: #fef3c7; color: #92400e; }

/* Checks grid */
.ev-checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.ev-check {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.ev-check-icon {
  font-size: 1.25rem;
  color: #10b981;
  flex-shrink: 0;
}

.ev-check strong {
  display: block;
  color: #111827;
  margin-bottom: 0.25rem;
}

.ev-check p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
  .ev-input-row {
    flex-direction: column;
  }
  
  .ev-bulk-actions {
    flex-direction: column;
  }
  
  .ev-bulk-actions .ee-btn {
    width: 100%;
  }
  
  .ev-results-table {
    font-size: 0.8125rem;
  }
  
  .ev-results-table th,
  .ev-results-table td {
    padding: 0.5rem;
  }
}

/* Additional styles for API-based validation */

.ev-checks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.ev-check-pass {
  color: #10b981;
  font-size: 0.875rem;
}

.ev-check-fail {
  color: #ef4444;
  font-size: 0.875rem;
}

.ev-score-good { color: #10b981; font-weight: 600; }
.ev-score-ok { color: #f59e0b; font-weight: 600; }
.ev-score-bad { color: #ef4444; font-weight: 600; }

.ev-tag-info {
  background: #dbeafe;
  color: #1e40af;
}

.ev-summary {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

.ev-progress {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-size: 1rem;
}

.ev-email-cell {
  font-family: monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ev-results-table th:nth-child(3),
  .ev-results-table td:nth-child(3) {
    display: none;
  }
}
