.word-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2.5rem;
  background-color: #ffffff;
  /* White background */
  border-radius: 1rem;
  /* More rounded corners */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* Softer, larger shadow */
  text-align: center;
  /* Center all content */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* Modern font */
}

.word-container h1 {
  font-size: 3.5rem;
  /* Larger font for the word */
  color: #2c3e50;
  /* Darker, more prominent color */
  margin-bottom: 1.5rem;
  font-weight: 700;
  /* Bold */
  text-transform: capitalize;
  /* Capitalize the first letter */
  position: relative;
  display: inline-block;
  /* To make underline fit content */
}

.word-container h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background-color: #3498db;
  /* A vibrant blue underline */
  border-radius: 2px;
}

.word-container p {
  font-size: 1.2rem;
  color: #34495e;
  /* Slightly lighter text for etymology */
  line-height: 1.8;
  margin-bottom: 1rem;
  padding: 0 1rem;
  /* Some horizontal padding */
}

.word-container p:last-of-type {
  margin-bottom: 0;
}

.word-container p.no-etymology {
  font-style: italic;
  color: #7f8c8d;
  /* Grey for no etymology message */
  margin-top: 2rem;
}

/* Known Words Page Styling */
.known-words-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

.known-words-header {
  text-align: center;
  margin-bottom: 4rem;
}

.known-words-header .page-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.known-words-header .subtitle {
  color: #64748b;
  font-size: 1.15rem;
}

.known-words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.word-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.word-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #3b82f6;
}

.word-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  text-transform: capitalize;
  height: 100%;
  flex: 1;
  word-break: break-word;
  text-align: center;
}

.word-link:hover {
  color: #3b82f6;
}

/* Empty State Card */
.empty-state-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 2px dashed #cbd5e1;
  max-width: 650px;
  margin: 0 auto;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem auto;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon svg {
  width: 32px;
  height: 32px;
}

.empty-state-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.empty-state-card p {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}