/* Pretvornik – slog z uporabo berljivih sans-serif pisav */
:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --ink: #07152f;
  --muted: #6f7480;
  --accent: #006bb6;
  --accent-soft: #e4f1fb;
  --border: #d9d2c2;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --radius: 6px;

  --font-body: "Noto Sans", "Inter", "Source Sans 3", Arial, sans-serif;
  --font-pron: "Charis SIL", "Gentium Plus", "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 28px;
}
.site-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lead {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

main.container { padding-top: 28px; padding-bottom: 48px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.form-card form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

select, input[type="text"] {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
select:focus, input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.form-actions { display: flex; gap: 10px; }

.btn-primary {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  cursor: pointer;
}
.btn-primary:hover { background: #005a9e; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
}

.info-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: none;
}

.info-body p {
  margin: 0 0 10px;
  color: var(--ink);
}

.info-body p:last-child {
  margin-bottom: 0;
}

.info-body strong {
  color: var(--ink);
  font-weight: 600;
}

.name-example {
  font-style: italic;
  color: var(--muted);
  font-weight: 500;
}

.results { display: grid; gap: 18px; }

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) {
  .result-grid { grid-template-columns: 1fr; }
}

.result-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--accent);
}
.result-card h3 {
  margin: 18px 0 6px;
  font-size: 15px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.result-card h3:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }

.form-list { display: grid; grid-template-columns: 80px 1fr; gap: 6px 14px; margin: 0; }
.form-list dt { font-weight: 600; color: var(--muted); }
.form-list dd { margin: 0; }
.form-list .pron {
  font-family: var(--font-pron);
  color: var(--muted);
  font-style: italic;
  margin-left: 6px;
}
.form-list .placeholder { color: #b3aea0; font-style: italic; }

.chinese-card {
  background: var(--surface);
  padding: 0;
}
.chinese-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}
.chinese-card > summary::-webkit-details-marker { display: none; }
.chinese-card .chinese-toggle {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chinese-card[open] .chinese-toggle::before { content: "skrij"; }
.chinese-card[open] .chinese-toggle { font-size: 0; }
.chinese-card[open] .chinese-toggle::before { font-size: 13px; }
.chinese-card .chinese-body {
  padding: 0 20px 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.chinese-card .pinyin-line {
  font-size: 20px;
  font-weight: 600;
}
.chinese-card .pron-line {
  font-family: var(--font-pron);
  font-style: italic;
  color: var(--muted);
  margin-top: 4px;
}

.error-card {
  border-color: #c8a39a;
  background: #fbeeea;
  color: #6a1717;
}
.error-card strong { display: block; margin-bottom: 4px; }

.placeholder-note {
  font-size: 14px;
  color: var(--muted);
}
.placeholder-note h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 22px 0;
  font-size: 13px;
  color: var(--muted);
}
.site-footer p { margin: 0; }
