/* Global wine-themed styles */
:root {
  --wine-900: #4e0d22;
  --wine-800: #650f29;
  --wine-700: #7b1e3a;
  --wine-600: #8e2a45;
  --wine-500: #a23450;
  --rose-300: #f1b5b8;
  --blush-100: #fff5f7;
  --cream: #fffaf3;
  --ink: #2f2a2a;
  --muted: #666;
  --card-shadow: 0 6px 18px rgba(0,0,0,0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 120% -10%, rgba(171, 47, 77, 0.08), transparent 60%),
    radial-gradient(1000px 500px at -20% 110%, rgba(171, 47, 77, 0.06), transparent 60%),
    var(--cream);
  margin: 0;
  color: var(--ink);
}

header {
  background: #fff;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

header .brand { display: flex; align-items: center; gap: 10px; }
header h1 { font-size: 1.4rem; margin: 0; color: var(--wine-700); letter-spacing: 0.5px; }

nav a {
  text-decoration: none;
  margin-left: 18px;
  color: var(--ink);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}
nav a:hover { background: var(--blush-100); color: var(--wine-700); }

.container { max-width: 900px; margin: 36px auto; padding: 0 20px; }

.tagline { text-align: center; font-size: 1.15rem; margin-bottom: 24px; color: var(--muted); }

.form-box, .card {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.input-row { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; }

input[type="text"] {
  padding: 14px 16px;
  width: 100%;
  max-width: 700px;
  border: 1px solid #e6e0dd;
  border-radius: 10px;
  font-size: 16px;
}

button {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--wine-700), var(--wine-600));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(123, 30, 58, 0.25);
}
button:hover { filter: brightness(1.02); }
button:active { transform: translateY(1px); }

.helper { font-size: 0.85rem; color: var(--muted); }

.result-card { margin-top: 18px; }

footer { margin-top: 50px; padding: 24px; text-align: center; font-size: 0.9rem; color: #999; }

.article-list article {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  margin-bottom: 16px;
}
.article-list h2 { margin: 0 0 8px 0; color: var(--wine-700); }
.article-list p { margin: 0 0 12px 0; color: var(--muted); }

.read-more { display: inline-block; margin-top: 6px; color: #fff; background: var(--wine-600); padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.read-more:hover { background: var(--wine-700); }

.hero-quiz { background: linear-gradient(135deg, var(--blush-100), #fff); border: 1px solid #f3e9eb; }

.badge { display: inline-block; background: var(--rose-300); color: var(--wine-900); padding: 4px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }

.quiz-question { margin: 16px 0 8px; font-weight: 700; }
.quiz-options label { display: block; margin: 6px 0; }
.quiz-result { margin-top: 20px; padding: 16px; border: 1px dashed #e3c5cc; border-radius: 10px; background: #fff; }

@media (max-width: 600px) {
  .input-row { flex-direction: column; align-items: stretch; }
  input[type="text"] { max-width: 100%; }
  button { width: 100%; }
}
