/* -----------------------------
PROOFREADING HIGHLIGHTER
----------------------------- */

/* General Section Styling */
.proofreading {
  background: radial-gradient(circle at top left, #ffecd2, #fcb69f);
  padding: 50px 20px;
  padding-top: 150px;
  border-radius: 20px;
  color: #333;
  text-align: center;
  font-family: 'Urbanist', sans-serif;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  transition: background 0.5s ease;
}

/* Section Titles */
.proofreading .section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #4b2e83;
}

.proofreading .section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #6e5494;
}

/* Textarea Input */
.proofreading textarea {
  width: 100%;
  max-width: 700px;
  padding: 15px;
  font-size: 1rem;
  border-radius: 12px;
  border: 2px solid #4b2e83;
  background: rgba(255,255,255,0.9);
  color: #333;
  outline: none;
  margin-bottom: 15px;
  resize: vertical;
  transition: all 0.3s ease;
}

.proofreading textarea:focus {
  border-color: #6e5494;
  box-shadow: 0 0 10px rgba(110, 84, 148, 0.4);
}

/* Button Styling */
.proofreading .btn {
  background: #6e5494;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.proofreading .btn:hover {
  background: #4b2e83;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(75, 46, 131, 0.4);
}

/* Options (like checkboxes or select dropdowns) */
.proofreading .options {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.proofreading .options label {
  font-size: 0.95rem;
  color: #4b2e83;
  cursor: pointer;
}

/* Result Box */
.proofreading .result-box {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  padding: 25px;
  border-radius: 15px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.proofreading .result-box:hover {
  transform: translateY(-5px);
}

/* Result Heading */
.proofreading .result-box h3 {
  margin-bottom: 10px;
  color: #4b2e83;
  font-weight: 700;
}

/* Result Text */
.proofreading .result-text {
  word-wrap: break-word;
  color: #333;
  font-weight: 500;
  line-height: 1.6;
}

/* Highlighted Errors */
.proofreading .highlight {
  background-color: rgba(255, 69, 0, 0.3);
  font-weight: 600;
  border-radius: 3px;
  padding: 2px 4px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .proofreading textarea {
    font-size: 0.95rem;
  }
  .proofreading .section-title {
    font-size: 2rem;
  }
  .proofreading .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .proofreading .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  .proofreading .section-title {
    font-size: 1.8rem;
  }
  .proofreading .options {
    flex-direction: column;
    gap: 10px;
  }
}

/* Optional: subtle animation for error highlights */
@keyframes highlightFlash {
  0%, 100% { background-color: rgba(255,69,0,0.3); }
  50% { background-color: rgba(255,69,0,0.6); }
}

.proofreading .highlight {
  animation: highlightFlash 1s ease-in-out infinite;
}
