/* Spam Word Checker Styles */

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

.spam-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;
}

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

.spam-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .spam-layout {
    grid-template-columns: 1fr;
  }
}

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

.spam-sticky {
  position: sticky;
  top: 20px;
}

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

.spam-field {
  margin-bottom: 1rem;
}

.spam-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.spam-field input,
.spam-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

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

.spam-field textarea {
  resize: vertical;
  min-height: 200px;
}

/* Buttons */
.spam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.spam-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;
}

.spam-btn:hover {
  background: #f3f4f6;
}

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

.spam-btn-primary:hover {
  background: #d97706;
}

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

/* Score Box */
.spam-score-box {
  text-align: center;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.spam-score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  border: 4px solid #d1d5db;
  transition: all 0.3s;
}

.spam-score-circle.score-good {
  background: #d1fae5;
  border-color: #10b981;
}

.spam-score-circle.score-moderate {
  background: #fef3c7;
  border-color: #f59e0b;
}

.spam-score-circle.score-bad {
  background: #fee2e2;
  border-color: #ef4444;
}

#spam-score-num {
  font-size: 2rem;
  font-weight: 700;
  color: #374151;
}

.score-good #spam-score-num { color: #059669; }
.score-moderate #spam-score-num { color: #d97706; }
.score-bad #spam-score-num { color: #dc2626; }

.spam-score-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spam-score-text {
  font-size: 0.9375rem;
  color: #4b5563;
  margin-top: 0.5rem;
}

/* Stats */
.spam-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.spam-stat {
  text-align: center;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
}

.spam-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.spam-stat-bad .spam-stat-num {
  color: #ef4444;
}

.spam-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Results */
.spam-results-content {
  max-height: 300px;
  overflow-y: auto;
}

.spam-placeholder {
  text-align: center;
  color: #9ca3af;
  padding: 2rem;
  margin: 0;
}

.spam-category {
  margin-bottom: 1rem;
}

.spam-category-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spam-category-count {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
}

.spam-words-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.spam-word-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.spam-word-tag.severity-high {
  background: #fee2e2;
  color: #dc2626;
}

.spam-word-tag.severity-medium {
  background: #fef3c7;
  color: #d97706;
}

.spam-word-tag.severity-low {
  background: #e0e7ff;
  color: #4f46e5;
}

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

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

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

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

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

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

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

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

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

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

/* Toast */
.spam-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;
}

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