:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e8e6e3;
  --accent: #c9a227;
  --accent2: #4a90a4;
  --verified: #2ecc71;
  --border: #2d3a4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
  border-bottom: 1px solid var(--border);
}

header h1 {
  margin: 0;
  font-size: 2.8rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

header p {
  max-width: 600px;
  margin: 1rem auto 0;
  opacity: 0.85;
  font-size: 1.1rem;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.search-section, .verify-section {
  margin-bottom: 2.5rem;
}

.search-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

input[type="text"], textarea {
  flex: 1;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #0f1419;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

button:hover {
  opacity: 0.9;
}

.thesaurus-hint {
  font-size: 0.9rem;
  opacity: 0.7;
  min-height: 1.5em;
}

.results, .share-section {
  margin-top: 2rem;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.1s;
}

.quote-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.quote-text {
  font-size: 1.25rem;
  font-style: italic;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.quote-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  opacity: 0.9;
}

.verified-badge {
  background: var(--verified);
  color: #0f1419;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.source {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}

.share-section textarea {
  width: 100%;
  margin: 0.75rem 0 1rem;
  resize: vertical;
}

.actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quote-preview {
  background: var(--surface);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  margin-bottom: 1.5rem;
  font-style: italic;
  font-size: 1.2rem;
}

#shareCanvas {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  margin-top: 1rem;
  display: block;
}

.hidden {
  display: none !important;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  opacity: 0.6;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

@media (max-width: 600px) {
  .search-box, .actions {
    flex-direction: column;
  }
  header h1 {
    font-size: 2.2rem;
  }
}
