/* URL Email Extractor Styles */

.ue-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.ue-intro {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.5rem;
}

.ue-intro p {
  margin: 0;
  color: #92400e;
  line-height: 1.6;
}

.ue-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ue-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.ue-card-header .ue-section-title {
  margin: 0;
  padding: 0;
  border: none;
}

.ue-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* URL Input */
.ue-url-input-wrap {
  display: flex;
  gap: 0.5rem;
}

.ue-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ue-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.ue-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.ue-textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.ue-hint {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0.75rem 0 0 0;
}

/* Buttons */
.ue-btn {
  padding: 0.75rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  color: #374151;
  white-space: nowrap;
}

.ue-btn:hover:not(:disabled) {
  background: #f3f4f6;
}

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

.ue-btn-primary {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

.ue-btn-primary:hover:not(:disabled) {
  background: #d97706;
}

.ue-btn-light {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.ue-bulk-actions {
  margin-top: 1rem;
}

/* Options */
.ue-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ue-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: #374151;
}

.ue-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
}

/* Stats */
.ue-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ue-stat {
  text-align: center;
  min-width: 100px;
}

.ue-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #f59e0b;
}

.ue-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Results */
.ue-results {
  min-height: 100px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.875rem;
}

.ue-empty {
  text-align: center;
  color: #9ca3af;
  padding: 2rem;
  margin: 0;
  font-family: inherit;
}

.ue-email-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ue-email-list li {
  padding: 0.375rem 0;
  border-bottom: 1px solid #e5e7eb;
  word-break: break-all;
}

.ue-email-list li:last-child {
  border-bottom: none;
}

.ue-progress {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.ue-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-top: 1rem;
  overflow: hidden;
}

.ue-progress-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 4px;
  transition: width 0.3s;
}

/* URL Result Card */
.ue-url-result {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.ue-url-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}

.ue-url-result-url {
  color: #2563eb;
  word-break: break-all;
  font-weight: 500;
}

.ue-url-result-count {
  color: #059669;
  font-weight: 600;
}

.ue-url-result-error {
  color: #dc2626;
}

/* Breakdown */
.ue-breakdown {
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.ue-breakdown-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ue-breakdown-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.8125rem;
}

.ue-breakdown-domain {
  color: #374151;
  font-weight: 500;
}

.ue-breakdown-count {
  color: #f59e0b;
  font-weight: 600;
}

/* Steps */
.ue-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.ue-steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.ue-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tips */
.ue-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.ue-tip {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.ue-tip h3 {
  font-size: 0.9375rem;
  margin: 0 0 0.75rem 0;
  color: #111827;
}

.ue-tip ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.7;
}

/* FAQ */
.ue-faq details {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.ue-faq details:last-child {
  border-bottom: none;
}

.ue-faq summary {
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ue-faq summary::-webkit-details-marker {
  display: none;
}

.ue-faq summary::after {
  content: '+';
  font-size: 1.25rem;
  color: #6b7280;
}

.ue-faq details[open] summary::after {
  content: '−';
}

.ue-faq details p {
  margin: 0.75rem 0 0 0;
  color: #4b5563;
  line-height: 1.6;
}

/* Toast */
.ue-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #10b981;
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 9999;
}

.ue-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ue-toast.ue-toast-error {
  background: #ef4444;
}

.ue-toast.ue-toast-warning {
  background: #f59e0b;
}

/* Responsive */
@media (max-width: 640px) {
  .ue-url-input-wrap {
    flex-direction: column;
  }
  
  .ue-stats {
    gap: 1rem;
  }
  
  .ue-actions {
    width: 100%;
  }
  
  .ue-actions .ue-btn {
    flex: 1;
    text-align: center;
  }
  
  .ue-options-grid {
    flex-direction: column;
    gap: 0.75rem;
  }
}
