* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f0f0f;
  --card-bg: #1a1a1a;
  --text: #e5e5e5;
  --text-muted: #888;
  --accent: #6366f1;
  --accent-hover: #818cf8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.container {
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.quote-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  transition: opacity 0.2s ease;
}

.quote-card.loading {
  opacity: 0.5;
}

blockquote {
  line-height: 1.7;
}

.quote-ko {
  font-family: 'Gowun Batang', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  word-break: keep-all;
}

.quote-en {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #333;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-weight: 600;
  color: var(--text);
}

.source {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tag {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  text-transform: lowercase;
}

.random-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.random-btn:hover {
  background: var(--accent-hover);
}

.random-btn:active {
  transform: scale(0.98);
}

.random-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.footer {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 480px) {
  .quote-card {
    padding: 1.5rem;
  }

  .quote-ko {
    font-size: 1.25rem;
  }

  .quote-en {
    font-size: 0.9rem;
  }
}
