.result-section {
  margin-bottom: 5rem;
}

.section-header {
  font-size: 1.5rem;
  color: var(--box-text-color);
  margin-bottom: 1rem;
}

.tone-summary {
  background: var(--primary-color);
  padding: 2rem;
  border-radius: 12px;
  color: white;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: slideIn 0.5s ease;
}

.summary-icon {
  font-size: 3rem;
  opacity: 0.3;
  flex-shrink: 0;
}

.summary-content h3 {
  color: white;
  margin: 0 0 0.75rem 0;
}

.summary-content p {
  margin: 0;
  line-height: 1.6;
  font-size: 1.5rem;
}

.tone-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.metric-card {
  background: var(--box-bg-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--box-shadow);
  display: flex;
  gap: 1.25rem;
  animation: fadeIn 0.5s ease;
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px var(--box-shadow);
}

.metric-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-content {
  flex: 1;
}

.metric-label {
  font-size: 1.1rem;
  color: var(--box-text-color);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color-dark);
  margin-bottom: 0.75rem;
  text-transform: capitalize;
}

.confidence-bar,
.sentiment-score-bar {
  height: 8px;
  background: rgba(26, 116, 251, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.confidence-fill,
.sentiment-score-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 4px;
  transition: width 1s ease;
}

.confidence-text,
.sentiment-score-text {
  font-size: 1.2rem;
  color: var(--box-text-color);
  opacity: 0.8;
}

.sentiment-card .metric-icon.positive {
  color: #10b981;
}

.sentiment-card .metric-icon.negative {
  color: #ef4444;
}

.sentiment-card .metric-icon.neutral {
  color: #6b7280;
}

.sentiment-card .metric-icon.mixed {
  color: #f59e0b;
}

.secondary-tones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tone-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 500;
  animation: popIn 0.3s ease;
  text-transform: capitalize;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.writing-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.style-item {
  background: var(--box-bg-color);
  border: 2px solid rgba(26, 116, 251, 0.1);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  animation: fadeIn 0.5s ease;
  transition: all 0.3s ease;
}

.style-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.style-item-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.style-item-label {
  font-size: 1.2rem;
  color: var(--box-text-color);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.style-item-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color-dark);
  text-transform: capitalize;
}

.emotional-indicators {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.emotion-card {
  background: var(--box-bg-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.25rem;
  animation: slideIn 0.5s ease;
}

.emotion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.emotion-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color-dark);
  text-transform: capitalize;
}

.emotion-intensity {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.intensity-bar {
  width: 100px;
  height: 6px;
  background: rgba(26, 116, 251, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.intensity-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  transition: width 0.8s ease;
}

.intensity-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--box-text-color);
}

.emotion-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.example-phrase {
  background: rgba(26, 116, 251, 0.1);
  color: var(--text-color-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 1.5rem;
  font-style: italic;
}

.key-phrases-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.key-phrase-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: popIn 0.3s ease;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.audience-card {
  background: var(--box-bg-color);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--box-shadow);
  animation: fadeIn 0.5s ease;
  transition: transform 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--box-shadow);
}

.audience-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.audience-card-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.audience-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--box-text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audience-card-value {
  font-size: 1.3rem;
  color: var(--text-color-dark);
  line-height: 1.5;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}
