.wordcount-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .wordcount-container {
    grid-template-columns: 1fr;
  }
}

.wordcount-editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wordcount-editor textarea {
  width: 100%;
  min-height: 400px;
  padding: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e0e6ed;
  resize: vertical;
  outline: none;
}

.wordcount-editor textarea:focus {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
}

.wordcount-editor textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.wordcount-actions {
  display: flex;
  gap: 0.75rem;
}

.wordcount-stats .card {
  position: sticky;
  top: 6rem;
}

.stats-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  color: #e0e6ed;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-align: center;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.813rem;
  color: rgba(255, 255, 255, 0.6);
}

.stats-additional {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  font-size: 0.875rem;
}

.stat-item + .stat-item {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item-label {
  color: rgba(255, 255, 255, 0.6);
}

.stat-item-value {
  color: #e0e6ed;
  font-weight: 500;
}
