/* Tool Container Styles */
.tool-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Email Tool Styles — golden luxury */
.email-tool {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.97), rgba(248, 238, 222, 0.97));
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 14px 36px -24px rgba(94, 65, 30, 0.35);
  border: 1px solid rgba(145, 103, 48, 0.2);
}

.input-section {
  margin-bottom: 30px;
}

.input-section label {
  display: block;
  color: #5e4329;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#emailInput {
  width: 100%;
  background: #fffaf2;
  border: 1px solid rgba(145, 103, 48, 0.26);
  border-radius: 8px;
  padding: 16px;
  color: #4a351f;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#emailInput:focus {
  outline: none;
  border-color: #ab7c34;
  box-shadow: 0 0 0 3px rgba(171, 124, 52, 0.16);
}

#emailInput::placeholder {
  color: #8c7558;
}

/* Action Buttons */
.action-buttons.btn-contain-x {
  margin-bottom: 25px;
}

/* Error Message */
.error-message {
  background: rgba(173, 82, 47, 0.12);
  border: 1px solid rgba(154, 63, 43, 0.26);
  color: #9a3f2b;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: center;
  animation: errorSlide 0.3s ease;
}

@keyframes errorSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Result Sections */
.result-section {
  margin-bottom: 25px;
  background: #fffaf2;
  border-radius: 12px;
  border: 1px solid rgba(145, 103, 48, 0.18);
  overflow: hidden;
  transition: all 0.3s ease;
}

.result-section.result-valid {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(248, 238, 222, 0.96));
  border: 1px solid rgba(145, 103, 48, 0.32);
  box-shadow: 0 4px 22px rgba(94, 65, 30, 0.1);
}

.result-section.result-invalid {
  background: linear-gradient(180deg, rgba(255, 248, 245, 0.98), rgba(250, 236, 232, 0.95));
  border: 1px solid rgba(184, 74, 61, 0.22);
  box-shadow: 0 4px 20px rgba(184, 74, 61, 0.06);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(182, 138, 58, 0.08);
  border-bottom: 1px solid rgba(145, 103, 48, 0.12);
  transition: all 0.3s ease;
}

.result-section.result-valid .result-header {
  background: rgba(182, 138, 58, 0.12);
  border-bottom: 1px solid rgba(145, 103, 48, 0.22);
}

.result-section.result-invalid .result-header {
  background: rgba(201, 74, 58, 0.08);
  border-bottom: 1px solid rgba(184, 74, 61, 0.2);
}

.result-header h3 {
  color: #7a5526;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.result-section.result-valid .result-header h3 {
  color: #6d5a38;
}

.result-section.result-invalid .result-header h3 {
  color: #b84a3d;
}

.result-header h3 i {
  font-size: 1rem;
}

.result-content {
  padding: 20px;
}

.results-output {
  background: #fff8ef;
  color: #4a351f;
  padding: 20px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  border: 1px solid rgba(145, 103, 48, 0.12);
  transition: all 0.3s ease;
}

.result-section.result-valid .results-output {
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid rgba(145, 103, 48, 0.2);
}

.result-section.result-invalid .results-output {
  background: rgba(255, 248, 245, 0.95);
  border: 1px solid rgba(184, 74, 61, 0.15);
}

.result-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(145, 103, 48, 0.1);
}

.result-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.result-label {
  color: #7a5526;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.result-value {
  color: #4a351f;
  word-break: break-all;
}

.result-value.valid {
  color: #756338;
  font-weight: 600;
}

.result-value.invalid {
  color: #b84a3d;
  font-weight: 600;
}

.email-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  word-break: normal;
}

.copy-btn {
  background: rgba(182, 138, 58, 0.12);
  border: 1px solid rgba(145, 103, 48, 0.28);
  color: #7a572c;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.copy-btn:hover {
  background: rgba(182, 138, 58, 0.22);
  border-color: #ab7c34;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(94, 65, 30, 0.15);
}

.copy-btn:active {
  transform: translateY(0);
}

.copy-btn i {
  font-size: 0.8rem;
}

/* Trust Score Styles */
.trust-score-item {
  animation: scoreFadeIn 0.5s ease;
}

@keyframes scoreFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.trust-score-display {
  text-shadow: 0 1px 4px rgba(94, 65, 30, 0.12);
  transition: all 0.3s ease;
}

.score-green {
  color: #756338;
}

.score-yellow {
  color: #b89848;
}

.score-red {
  color: #a84a3e;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .tool-container {
    padding: 0 15px;
  }

  .email-tool {
    padding: 25px 20px;
  }

  .email-display {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }
}
