/* static/style.css — Daily Korean website styles.
   Plain, clean CSS. The accent color matches the daily email (#1a6ed8). */

:root {
  --accent: #1a6ed8;
  --ink: #1a1a1a;
  --muted: #777;
  --line: #e8e8e8;
  --bg: #fafafa;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header / nav */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand { font-weight: 700; font-size: 18px; }
.site-header nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--accent);
  font-size: 15px;
}
.site-header nav a:hover { text-decoration: underline; }

main.wrap { padding-top: 24px; padding-bottom: 60px; }

h1 { font-size: 24px; margin: 0 0 4px 0; }
.muted { color: var(--muted); font-size: 14px; margin-top: 0; }

/* Flash messages */
.flash {
  background: #fff7e6;
  border: 1px solid #ffe1a8;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Empty state */
.empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
}

/* Login */
.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  max-width: 360px;
  margin: 60px auto;
}
.login-card h1 { margin-bottom: 0; }
.login-card form { margin-top: 18px; }
.login-card label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.login-card input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
}
button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
}
button:hover { background: #155bb5; }

/* Word cards (archive) */
.word-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.word-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hangul { font-size: 28px; font-weight: 700; }
.respell { font-size: 15px; color: var(--accent); }
.rom { font-size: 14px; color: #aaa; }
.english { font-size: 16px; margin-top: 2px; }
.meta { margin: 6px 0 4px 0; display: flex; gap: 10px; align-items: center; }
.tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 2px 8px;
}
.date { font-size: 12px; color: var(--muted); }

.sentences { margin-top: 12px; }
.sentence { padding: 10px 0; border-top: 1px solid #f0f0f0; }
.sentence:first-child { border-top: none; }
.chunks { display: flex; flex-wrap: wrap; gap: 0 14px; }
.chunk { margin-bottom: 4px; }
.c-ko { font-size: 17px; }
.c-re { font-size: 12px; color: var(--accent); }
.c-en { font-size: 12px; color: var(--muted); }
.natural { font-size: 14px; color: #444; font-style: italic; margin-top: 4px; }

/* Queue manager */
.save-btn { margin: 8px 0 16px 0; }
.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}
.queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--card);
  cursor: default;
}
.queue-row:first-child { border-top: none; }
.queue-row.is-dragging { opacity: 0.4; background: #eef4fd; }
.handle { cursor: grab; color: #bbb; font-size: 18px; user-select: none; }
.q-hangul { font-size: 18px; font-weight: 600; min-width: 70px; }
.q-respell { font-size: 13px; color: var(--accent); min-width: 90px; }
.q-english { flex: 1; font-size: 14px; color: #444; }

/* Word-group builder */
hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
h2 { font-size: 19px; margin: 0 0 6px 0; }
.theme-form label, .insert-options label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.theme-form input[type="text"], .theme-form input[type="number"] {
  display: block;
  width: 100%;
  max-width: 460px;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
}
.words-box {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.7;
}
.insert-options { margin: 12px 0; }
.insert-options label { display: inline-block; margin-right: 20px; color: var(--ink); }
code { background: #f0f0f0; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
