/* POCTA ŽENÁM SO ŠTÝLOM 2026 – Hodnotenie poroty */
:root {
  /* Farby prevzaté z loga Ženy so štýlom */
  --cream: #fbf7f1;
  --cream-2: #f4ebdf;
  --sand: #d8b890;
  --sand-2: #c9a778;
  --peach: #e0b090;
  --peach-soft: #f6e4d6;
  --brick: #c86028;
  --brick-dark: #a84a1e;
  --mint: #a8c0b0;
  --mint-soft: #e3ece6;
  --mint-dark: #6f9a86;
  --teal: #2f8c7e;
  --maroon: #682830;
  --maroon-2: #86343e;
  --ink: #2f2226;
  --ink-soft: #6e5a5e;
  --line: #e6d9c8;
  --white: #ffffff;
  --danger: #a8302a;
  --danger-bg: #f9e5e2;
  --success-bg: #e3ece6;
  --info-bg: #f4ebdf;
  --warning-bg: #f6e4d6;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(104, 40, 48, 0.07);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--brick-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--maroon); line-height: 1.2; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--brick); font-weight: 600; margin-bottom: .4rem; }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.page { padding: 36px 24px 60px; flex: 1; }

/* Topbar */
.topbar { background: var(--white); border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--mint), var(--brick), var(--sand)) 1; position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--maroon); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 56px; width: auto; flex-shrink: 0; }
.simple-logo { display: block; margin: 0 auto 16px; width: 150px; height: auto; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--maroon); color: var(--sand); font-family: var(--serif); font-weight: 700; font-size: .95rem; letter-spacing: .05em; flex-shrink: 0; }
.brand-mark.large { width: 64px; height: 64px; font-size: 1.3rem; margin: 0 auto 14px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.brand-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--brick); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink-soft); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--cream-2); text-decoration: none; color: var(--maroon); }
.nav a.active { background: var(--cream-2); color: var(--maroon); }
.nav-user { padding: 8px 10px; font-size: .9rem; color: var(--maroon) !important; font-weight: 600; border-left: 1px solid var(--line); margin-left: 6px; border-radius: 0 !important; }
.nav-form { display: inline; margin: 0; }
.nav-logout { color: var(--brick) !important; background: none; border: none; font: inherit; font-size: .93rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.nav-logout:hover { background: var(--cream-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 1.2rem; cursor: pointer; color: var(--maroon); }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); margin-bottom: 24px; }
.card-soft { background: var(--cream-2); border-color: var(--sand); box-shadow: none; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.page-title { margin-bottom: 28px; }
.page-title h1 { margin-bottom: .2em; }

/* Stat */
.stat { text-align: left; }
.stat-value { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--maroon); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

/* Progress */
.progress { height: 8px; background: var(--cream-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brick), var(--brick-dark)); border-radius: 99px; transition: width .4s ease; }
.progress.mint > span { background: linear-gradient(90deg, var(--mint), var(--mint-dark)); }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.progress-row strong { font-family: var(--serif); font-size: 1.1rem; color: var(--maroon); }
.progress-item { margin-bottom: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: all .15s ease; background: var(--brick); color: var(--white); text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--brick-dark); text-decoration: none; color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--maroon); border-color: var(--sand-2); }
.btn-outline:hover { background: var(--cream-2); color: var(--maroon); }
.btn-dark { background: var(--maroon); }
.btn-dark:hover { background: var(--maroon-2); }
.btn-mint { background: var(--mint-dark); }
.btn-mint:hover { background: #4e836a; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #8e2c22; }
.btn-sm { padding: 8px 16px; font-size: .78rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.btn-link { background: none; border: none; color: var(--brick-dark); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* Forms */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--maroon); }
label .hint { font-weight: 400; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--sand-2); border-radius: 10px; background: var(--white); font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(200, 85, 45, .12); }
textarea { min-height: 120px; resize: vertical; }
.form-inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-inline .form-group { margin-bottom: 0; flex: 1; min-width: 160px; }
.help { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); margin-bottom: 10px; cursor: pointer; font-weight: 400; color: var(--ink); font-size: .95rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brick); flex-shrink: 0; }
.check.checked { border-color: var(--mint-dark); background: var(--mint-soft); }

/* Flash */
.flash { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; border: 1px solid transparent; font-size: .95rem; }
.flash-success { background: var(--mint-soft); border-color: var(--mint); color: #2f5f50; }
.flash-error { background: var(--danger-bg); border-color: #efc4be; color: var(--danger); }
.flash-info { background: var(--info-bg); border-color: var(--sand); color: var(--maroon); }
.flash-warning { background: var(--peach-soft); border-color: var(--peach); color: #8a4a1c; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 600; background: var(--cream-2); }
tr:hover td { background: #fcf9f3; }
td.num, th.num { text-align: right; white-space: nowrap; }
.code { white-space: nowrap; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-weight: 600; color: var(--maroon); letter-spacing: .04em; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge-done { background: var(--mint-soft); color: #2f5f50; }
.badge-open { background: var(--cream-2); color: var(--ink-soft); }
.badge-partial { background: var(--peach-soft); color: #8a4a1c; }
.badge-conflict { background: var(--danger-bg); color: var(--danger); }
.badge-brick { background: var(--peach-soft); color: var(--brick-dark); }
.badge-maroon { background: var(--maroon); color: var(--sand); }
.badge-mint { background: var(--mint-soft); color: #2f5f50; }

/* Story */
.story { font-family: var(--serif); font-size: 1.22rem; line-height: 1.7; color: var(--ink); white-space: pre-wrap; padding: 8px 0; }
.story-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.story-code { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--maroon); letter-spacing: .06em; }

/* Scale 1–10 */
.criterion { padding: 20px 0; border-bottom: 1px solid var(--line); }
.criterion:last-of-type { border-bottom: none; }
.criterion-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.criterion-title h3 { margin: 0; }
.criterion-desc { color: var(--ink-soft); font-size: .92rem; margin: 4px 0 12px; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; }
.scale label { position: relative; margin: 0; cursor: pointer; }
.scale input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sand-2); background: var(--white); font-weight: 600; color: var(--maroon); transition: all .12s ease; }
.scale label:hover span { border-color: var(--brick); }
.scale input:checked + span { background: var(--brick); border-color: var(--brick); color: var(--white); transform: scale(1.06); box-shadow: 0 4px 12px rgba(200,85,45,.25); }
.scale input:focus-visible + span { outline: 2px solid var(--brick); outline-offset: 2px; }
.scale-legend { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-soft); margin-top: 6px; max-width: 494px; }
.scale-value { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--brick); min-width: 40px; text-align: right; }

/* Conflict box */
.conflict-box { border: 1px dashed var(--sand-2); border-radius: var(--radius); padding: 20px 24px; background: var(--cream-2); }
.conflict-box[hidden] { display: none; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-weight: 400; color: var(--ink); cursor: pointer; }
.radio input { margin-top: 5px; accent-color: var(--brick); }

/* Nomination list */
.nom-list { display: grid; gap: 10px; }
.nom-item { margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
.nom-item:hover { text-decoration: none; border-color: var(--brick); }
.nom-item .code { font-size: 1rem; }

/* Results */
.result-rank { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--brick); width: 40px; }
.result-winner { background: linear-gradient(135deg, #fff8f1, var(--peach-soft)); border: 1px solid var(--sand-2); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.identity-box { background: var(--maroon); color: var(--sand); border-radius: 10px; padding: 14px 18px; margin-top: 10px; }
.identity-box strong { color: var(--white); }
.tie-alert { background: var(--peach-soft); border: 1px solid var(--peach); color: #8a4a1c; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }

/* Divider */
hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.divider-title { display: flex; align-items: center; gap: 16px; margin: 32px 0 16px; }
.divider-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Simple layout */
body.simple { justify-content: center; align-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, var(--mint-soft) 0, transparent 40%), radial-gradient(circle at 85% 90%, var(--peach-soft) 0, transparent 45%), var(--cream); }
.simple-wrap { width: 100%; max-width: 520px; margin: 0 auto; }
.simple-wrap.wide { max-width: 760px; }
.simple-brand { text-align: center; margin-bottom: 28px; }
.simple-title { font-size: 1.9rem; margin-bottom: .1em; }
.simple-sub { text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; color: var(--brick); font-weight: 600; }
.simple-footer { text-align: center; font-size: .8rem; color: var(--ink-soft); margin-top: 24px; }

/* Rules */
.rules-intro { font-family: var(--serif); font-size: 1.15rem; color: var(--maroon); }
.rules-list .check { padding: 14px 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 20px 0; font-size: .8rem; color: var(--ink-soft); background: var(--white); }
.footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-note { font-family: var(--serif); font-style: italic; color: var(--maroon); }
.footer { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--sand), var(--brick), var(--mint)) 1; }

/* Misc */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.pre { white-space: pre-wrap; font-family: inherit; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; font-size: .95rem; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; }
details summary { cursor: pointer; color: var(--brick-dark); font-weight: 600; }
.admin-only { border-left: 4px solid var(--maroon); padding-left: 16px; }
.warning-text { color: var(--danger); font-weight: 600; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(250,246,239,.96); padding: 14px 0; border-top: 1px solid var(--line); margin-top: 20px; backdrop-filter: blur(4px); }

@media (max-width: 1100px) { .container { max-width: 100%; } .nav a { padding: 8px 8px; font-size: .86rem; } .brand-title { font-size: 1.02rem; } }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .topbar-inner { flex-wrap: wrap; }
  .nav-user { border-left: none; margin-left: 0; }
  .card { padding: 22px 20px; }
  h1 { font-size: 1.8rem; }
  .story { font-size: 1.1rem; }
  .kv { grid-template-columns: 1fr; }
}
