/* Portál pro předání podkladů - staví na designu webu (styles.css) */

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1360px;
  margin-inline: auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.portal-nav .u-link { font-size: 0.95rem; }

.portal { max-width: 860px; padding-block: clamp(2.5rem, 6vw, 5rem); }

.portal-title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 850;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.95;
}
.portal-sub {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

.gate-form { max-width: 420px; margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.gate-form .pf-error { margin-top: 0; }

.pf-section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.pf-section h2 {
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pf-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-stretch: 100%;
}

.pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.pf-field-wide { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; }
}

.pf-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.pf-opt { color: var(--muted); font-weight: 400; font-size: 0.9em; }
.pf-field input,
.pf-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.7rem 0.95rem;
  min-height: 48px;
}
.pf-field textarea { resize: vertical; min-height: 160px; }
.pf-field input:focus-visible,
.pf-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pf-field.invalid input { border-color: #b3261e; }
.pf-field-msg { color: #b3261e; font-size: 0.9rem; margin-top: 0.35rem; min-height: 1.2em; }

/* dropzone */
.dropzone {
  border: 2px dashed var(--ink);
  background: var(--paper-2);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.dropzone.dragover { background: #dfe2ff; border-color: var(--accent); border-style: solid; }
.dropzone:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dz-big { font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
.dz-or { color: var(--muted); margin: 0.5rem 0 0.9rem; }
.dz-hint { color: var(--muted); font-size: 0.9rem; margin-top: 1.1rem; }

/* tlačítka portálu */
.btn-solid {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
}
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-big { padding: 1rem 2.4rem; font-size: 1.1rem; }
.btn-solid[disabled] { opacity: 0.55; cursor: default; }
.btn-solid[disabled]:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost-p {
  font: inherit;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  margin-top: 2rem;
}
.btn-ghost-p:hover { background: var(--ink); color: var(--paper); }

/* seznam souborů */
.file-list { list-style: none; margin-top: 1.25rem; }
.file-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.2rem;
  border-top: 1px solid var(--line);
}
.file-row:last-child { border-bottom: 1px solid var(--line); }
.file-ext {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--paper);
  padding: 0.3rem 0.5rem;
  min-width: 3.2rem;
  text-align: center;
}
.file-info { min-width: 0; flex: 1; }
.file-name { font-weight: 600; overflow-wrap: anywhere; }
.file-meta { color: var(--muted); font-size: 0.88rem; }
.file-state { font-size: 0.88rem; white-space: nowrap; }
.file-state.ok { color: #1a7a3a; }
.file-state.fail { color: #b3261e; }
.file-remove {
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
}
.file-remove:hover { color: #b3261e; }

.pf-error { color: #b3261e; margin-top: 1.5rem; min-height: 1.4em; }
.pf-submit { margin-top: 1.5rem; }

/* progress */
.progress { margin-top: 1.75rem; }
.progress-label { font-weight: 600; margin-bottom: 0.6rem; }
.progress-track { height: 14px; background: var(--paper-2); border: 1px solid var(--ink); }
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.25s linear;
}

/* potvrzení */
.success-ref { margin-top: 2rem; font-size: 1.15rem; }
.mono-ref {
  font-family: var(--font-mono);
  background: var(--ink);
  color: var(--paper);
  padding: 0.35rem 0.8rem;
  letter-spacing: 0.08em;
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1360px;
  margin-inline: auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.portal-footer a { text-decoration: underline; text-underline-offset: 3px; }
