/* app/assets/stylesheets/etymologies.css */

.etymology-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.etymology-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #333;
}

.etymology-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Etymology Cards */
.etymology-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #eee;
}

.etymology-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card-word {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a90e2;
  min-width: 140px;
  text-transform: capitalize;
}

.card-word a {
  color: inherit;
  text-decoration: none;
}

.card-word a:hover {
  text-decoration: underline;
}

.card-description {
  flex: 1;
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
}

.card-description i {
  color: #333;
  font-style: italic;
}

.card-actions {
  margin-left: auto;
}

.delete-btn-container form {
  display: inline;
}

.delete-btn-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: #dc3545;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
}

.delete-btn-link:hover {
  background: rgba(220, 53, 69, 0.05);
}

.trash-icon {
  width: 18px;
  height: 18px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .etymology-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }

  .card-word {
    min-width: auto;
  }

  .card-actions {
    margin-left: 0;
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 1rem;
  }
}
