/* ============================================================
   Skorio Feature Board — self-contained stylesheet.
   Design tokens copied from Skorio-Website/assets/css/styles.css
   (which sources them from the Skorio app) so the board reads as
   one continuous site. Kept standalone because the board deploys
   separately (roadmap.skorio.app, on-server) from the CDN site.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
  --primary:       #df7c35;
  --primary-hover: #c2631e;
  --secondary:     #5e8949;
  --header-bg:     #293d22;
  --bg:            #f3ead8;
  --surface:       #f7f3ea;
  --text:          #1d2415;
  --text-muted:    #8a806c;
  --border:        #cbd5e1;

  --font-family: 'Nunito', 'Open Sans', Arial, Helvetica, sans-serif;
  --radius-card: 16px;
  --radius-btn:  8px;
  --shadow-card: 0 2px 12px rgba(41,61,34,0.10);
  --shadow-card-hover: 0 6px 24px rgba(41,61,34,0.16);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.02rem;
  color: var(--text);
  background:
    radial-gradient(circle at 110% 10%, rgba(223,124,53,0.22) 0%, transparent 35%),
    radial-gradient(circle at -10% 110%, rgba(94,137,73,0.18) 0%, transparent 35%),
    var(--bg);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { font-family: var(--font-family); font-weight: 800; color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

.container { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem; border-radius: var(--radius-btn);
  font-family: var(--font-family); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:disabled { cursor: default; opacity: 0.65; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover:not(:disabled), .btn-primary:focus-visible { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---- Header ---- */
.site-header { background: var(--header-bg); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.logo-link { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.logo-link img { width: 38px; height: 38px; }
.logo-text { font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: 0.02em; }

/* ---- Page intro ---- */
.board-hero { text-align: center; padding: 2.5rem 0 1rem; }
.board-hero p { color: var(--text-muted); max-width: 40rem; margin: 0.5rem auto 0; }

/* ---- Idea list ---- */
.ideas { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 0 3rem; }
.idea {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 1.1rem 1.25rem;
  transition: box-shadow var(--transition);
}
.idea:hover { box-shadow: var(--shadow-card-hover); }
.idea-body { flex: 1; min-width: 0; }
.idea-body h3 { margin-bottom: 0.25rem; }
.idea-desc { color: var(--text-muted); font-size: 0.95rem; white-space: pre-wrap; overflow-wrap: anywhere; }

.vote {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  min-width: 3.6rem; padding: 0.5rem 0.6rem;
  border: 2px solid var(--border); border-radius: var(--radius-btn);
  background: #fff; color: var(--text); font-family: var(--font-family);
  font-weight: 800; cursor: pointer; transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.vote:hover:not(:disabled), .vote:focus-visible { border-color: var(--primary); color: var(--primary); }
.vote .arrow { font-size: 1.1rem; line-height: 1; }
.vote .count { font-size: 1.05rem; line-height: 1; }
.vote.voted { border-color: var(--secondary); color: #fff; background: var(--secondary); cursor: default; }
.vote:disabled { cursor: default; }

.empty, .loading { text-align: center; color: var(--text-muted); padding: 3rem 0; }

/* ---- Submit form ---- */
.submit-section { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 1.75rem; margin-bottom: 3rem; }
.submit-section h2 { margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-family); font-size: 1rem; color: var(--text);
  padding: 0.6rem 0.75rem; border: 2px solid var(--border); border-radius: var(--radius-btn); background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 4.5rem; }
.form-error { color: #b3402a; font-size: 0.9rem; margin-bottom: 0.75rem; min-height: 1.2rem; }
.thanks { text-align: center; padding: 1rem 0; }
.thanks h2 { color: var(--secondary); }

/* ---- Footer ---- */
.site-footer { background: var(--header-bg); color: rgba(255,255,255,0.85); padding: 1.5rem 0; margin-top: 2rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; }

@media (max-width: 480px) {
  .header-inner { height: 56px; }
  .logo-text { font-size: 1.15rem; }
  .submit-section { padding: 1.25rem; }
}
