/* Home page: the hero band with the generator card laid over its edge, and the generator controls restyled for that card.
   The generator keeps its classes and IDs (script.js drives them); shared blocks (gs-*) come from sections.css. */

/* Accent: the site red on light surfaces, the sky blue on navy bands. */
.gs-page.pc-page {
  --gs-accent: var(--accent);
  --gs-accent-on-dark: var(--gs-sky);
}
/* The navy hero starts right under the header rule. */
.gs-page:has(.pc-hero) > .site-header { margin-bottom: 0; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.pc-hero { align-items: center; text-align: center; gap: 16px; padding: 56px 0 170px; }
.pc-badge { font-family: var(--mono); font-size: 12px; color: var(--gs-navy); background: var(--gs-sky); border-radius: 999px; padding: 3px 10px; }
.pc-hero .gs-hero-lead { max-width: 680px; }

/* ── Card ───────────────────────────────────────────────────────────────────── */
.pc-card {
  position: relative; z-index: 2; margin-top: -140px;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 32, 68, 0.22);
  padding: 28px 32px;
}
.pc-card .tab-panel { display: flex; flex-direction: column; gap: 16px; }
.pc-card .tab-panel.tab-hidden { display: none !important; }

/* Tabs: Fraze / Lozinke / Poruka on the left, Provjera sigurnosti on the right */
.pc-card .mode-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.pc-card .mode-tabs { flex: 0 1 auto; gap: 6px; background: var(--surface2); border: 0; border-radius: 10px; padding: 4px; box-shadow: none; }
.pc-card .mode-tab { flex: none; min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 8px; }
.pc-card .mode-tab.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(26, 58, 92, 0.12); }
.pc-card .btn-checker {
  margin-left: auto; gap: 8px; min-height: 46px; height: auto; padding: 10px 18px; border-radius: 10px;
  font-size: 15px; font-weight: 600; background: #fff1f2; color: #b91c1c; border: 1px solid #fca5a5;
}
.pc-card .btn-checker:hover { background: #ffe4e6; border-color: #f87171; }
.pc-card .btn-checker.active { background: #dc3545; color: #ffffff; border-color: #dc3545; box-shadow: none; }
body.dark-theme .pc-card .btn-checker { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
body.dark-theme .pc-card .btn-checker.active { background: #dc3545; color: #ffffff; border-color: #dc3545; }
.pc-card .mode-tab:focus-visible, .pc-card .btn-checker:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Output: label, then the phrase in a box with the description field, the strength bar and the buttons */
.pc-card .output-card { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; overflow: visible; display: flex; flex-direction: column; gap: 10px; }
.pc-card .output-card::before { display: none; }
.pc-card .output-card:hover { box-shadow: none; border-color: transparent; }
.pc-out-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.pc-card .output-label { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-muted); }
.pc-out-box { display: flex; flex-direction: column; gap: 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.pc-card .single-display-row { margin: 0; }
/* Font, size and colouring of the secret are shared with /receive (style.css: ".pc-card #display, #rvPassword") */
.pc-card #display { padding: 0; background: none; border: 0; border-radius: 0; }
.pc-card #display:not(:has(.placeholder)):hover { background: none; border-color: transparent; }
.pc-card .pp-list { margin: 0; }

/* Strength bar (script.js updateStrength sets data-level 1-4; 0 hides it but keeps the space) */
.pc-strength { display: flex; align-items: center; gap: 10px; }
.pc-strength[data-level="0"] { visibility: hidden; }
.pc-strength-track { flex: 1; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.pc-strength-fill { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--gs-ok-text); transition: width 0.3s; }
.pc-strength-label { min-width: 84px; text-align: right; font-size: 13px; font-weight: 600; color: var(--gs-ok-text); }
.pc-strength[data-level="1"] .pc-strength-fill { width: 25%; background: #dc3545; }
.pc-strength[data-level="2"] .pc-strength-fill { width: 50%; background: #f59e0b; }
.pc-strength[data-level="3"] .pc-strength-fill { width: 75%; }
.pc-strength[data-level="4"] .pc-strength-fill { width: 100%; }
.pc-strength[data-level="1"] .pc-strength-label { color: #b91c1c; }
.pc-strength[data-level="2"] .pc-strength-label { color: #b45309; }
body.dark-theme .pc-strength[data-level="1"] .pc-strength-label { color: var(--accent); }
body.dark-theme .pc-strength[data-level="2"] .pc-strength-label { color: #fbbf24; }

/* Buttons: Kopiraj · Nova · × n · QR · Pošalji sigurno */
.pc-card .pc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; }
.pc-card .pc-actions .btn-actions-single { display: contents; }
.pc-card .pc-actions button {
  min-height: 46px; padding: 0 20px; border-radius: 10px; font-family: var(--body); font-size: 15px; font-weight: 600;
  letter-spacing: 0; text-transform: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  background: var(--surface); color: var(--gs-link); border: 1px solid var(--border-strong); box-shadow: none;
}
.pc-card .pc-actions button:hover { background: var(--gs-pill-bg); color: var(--gs-link); border-color: var(--gs-link); }
.pc-card .pc-actions .btn-copy-sm, .pc-actions .btn-copy { order: 1; background: var(--primary); color: #ffffff; border-color: var(--primary); }
.pc-card .pc-actions .btn-copy-sm:hover, .pc-actions .btn-copy:hover { background: var(--primary-light); color: #ffffff; border-color: var(--primary-light); }
body.dark-theme .pc-card .pc-actions .btn-copy-sm, body.dark-theme .pc-actions .btn-copy { color: var(--gs-navy); }
body.dark-theme .pc-card .pc-actions .btn-copy-sm:hover, body.dark-theme .pc-actions .btn-copy:hover { color: var(--gs-navy); }
.pc-card .pc-actions .btn-copy-sm.copied, .pc-actions .btn-copy.copied { background: var(--gs-ok-bg); color: var(--gs-ok-text); border-color: var(--gs-ok-text); }
.pc-card .pc-actions .btn-generate { order: 2; flex: none; margin: 0; width: auto; }
.pc-card .pc-actions .btn-generate::after { display: none; }
.pc-qty { order: 3; display: inline-flex; align-items: center; gap: 4px; }
.pc-card .pc-actions .btn-qr-sm { order: 4; }
.pc-card .pc-actions .btn-secure {
  order: 5; position: relative; margin-left: auto; font-weight: 700;
  background: var(--gs-sky); color: var(--gs-navy); border-color: transparent;
}
.pc-card .pc-actions .btn-secure:hover { background: var(--gs-sky); color: var(--gs-navy); border-color: transparent; filter: brightness(0.92); }
.pc-card .pc-actions .btn-secure:focus-visible { outline: 3px solid var(--gs-navy); outline-offset: 2px; }
body.dark-theme .pc-card .pc-actions .btn-secure:focus-visible { outline-color: #ffffff; }
/* Dark theme: Kopiraj is filled there, so Pošalji sigurno is the outlined one */
body.dark-theme .pc-card .pc-actions .btn-secure { background: transparent; color: var(--gs-sky); border: 2px solid var(--gs-sky); }
body.dark-theme .pc-card .pc-actions .btn-secure:hover { background: rgba(147, 197, 253, 0.14); color: var(--gs-sky); border-color: var(--gs-sky); filter: none; }
.pc-card .pc-actions .btn-secure::before { content: ''; position: absolute; left: -12px; top: 4px; bottom: 4px; width: 1px; background: var(--border); }
.pc-card .qty-multiplier { font-size: 15px; padding: 0 2px; }
.pc-card .btn-qty-segment { height: 46px; border-radius: 10px; }
.pc-card .btn-qty-segment .qty-btn { min-width: 40px; min-height: 44px; padding: 0 12px; font-size: 18px; }
.pc-card .btn-qty-segment .qty-val { font-size: 15px; width: 32px; min-width: 32px; }

/* Škrinjar hint: a navy strip under the output (the space is reserved while it is hidden, so nothing jumps) */
.pc-card .skrinjar-hint.pc-hint {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; min-height: 66px;
  background: var(--gs-navy); color: #ffffff; border: 0; border-radius: 12px; padding: 14px 16px; font-size: 16px; font-weight: 500; line-height: 1.4;
}
.pc-card .skrinjar-hint.pc-hint[hidden] { display: flex; visibility: hidden; }
.pc-hint-mark { flex: none; height: 32px; width: auto; }
.pc-card .skrinjar-hint-text { flex: 1 1 260px; color: #ffffff; }
.pc-card .skrinjar-hint-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  background: #ffffff; color: var(--gs-navy); border: 0; border-radius: 10px; font-size: 15px; font-weight: 600;
}
.pc-card .skrinjar-hint-cta:hover, .pc-card .skrinjar-hint-cta:focus-visible { background: #e8eef5; color: var(--gs-navy); }
.pc-card .skrinjar-hint-cta:focus-visible { outline: 3px solid var(--gs-sky); outline-offset: 2px; }

/* Options row: word count (phrases) · level (passwords) · settings */
.pc-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.pc-opt { display: flex; align-items: center; gap: 8px; margin: 0; }
.pc-card .pills-qty { margin: 0; }
.pc-card .pills-qty-label, .pc-card .pills-section-label, .pc-card .sr-label, .pc-card .settings-section-label {
  font-family: var(--body); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-muted); margin: 0; min-width: 0;
}
.pc-card .qty-stepper { display: inline-flex; align-items: center; gap: 4px; }
.pc-card .qty-stepper .qty-btn { min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 18px; }
.pc-card .qty-stepper .qty-val { color: var(--text); background: none; font-size: 15px; font-weight: 700; width: 40px; min-width: 40px; text-align: center; }
.pc-card .pwd-level-btns { flex-wrap: wrap; gap: 6px; }
.pc-card .sep-btn { min-height: 38px; padding: 6px 14px; font-family: var(--body); font-size: 13px; border-radius: 7px; background: var(--surface); }
.pc-card .sep-btn.active { background: var(--surface); border-color: var(--gs-link); color: var(--gs-link); font-weight: 600; }
body.dark-theme .pc-card .sep-btn.active { background: var(--gs-pill-bg); }
.pc-card .btn-settings-toggle {
  margin-left: auto; height: auto; min-height: 44px; padding: 0 8px; gap: 6px; background: none; border: 0; box-shadow: none;
  font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--gs-link);
}
.pc-card .btn-settings-toggle:hover { color: var(--accent); background: none; }
.pc-card .btn-settings-toggle.active { filter: none; }
.pc-card .btn-settings-toggle .settings-label { margin: 0; }
.pc-card .btn-settings-toggle.active .settings-icon { transform: rotate(180deg); }

/* Settings panel: a grid of Opcije · Razdjelnik · Jezik rječnika · Zapamti postavke, the dictionaries below */
.pc-card .settings-panel { background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; gap: 0; }
.pc-card .settings-panel.settings-open { border-top: 1px solid var(--border); padding: 18px 0 0; max-height: 1600px; gap: 16px; }
.pc-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; }
.pc-set { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.pc-set .toggle-pills { gap: 6px; }
.pc-card .tpill { min-height: 38px; padding: 6px 14px; font-family: var(--body); font-size: 13px; border-radius: 7px; background: var(--surface); }
.pc-card .tpill:has(input:checked) { background: var(--surface); border-color: var(--gs-link); color: var(--gs-link); font-weight: 600; }
body.dark-theme .pc-card .tpill:has(input:checked) { background: var(--gs-pill-bg); color: var(--gs-link); }
.pc-card .sep-row { flex-direction: column; align-items: flex-start; }
.pc-card .sep-row .sep-options { flex-wrap: wrap; }
.pc-card .gen-lang-options { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-set-remember { justify-content: center; }
.pc-card .remember-settings-label { font-weight: 600; }
.pc-dicts { margin: 0; }
.pc-card .dialect-header { margin-bottom: 8px; }

/* Message tab */
.pc-card .msg-card { box-shadow: none; }

/* Security check: two cards, the explanations folded below */
.pc-checker-head { display: flex; flex-direction: column; gap: 4px; }
.pc-checker-title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--text); }
.pc-checker-sub { margin: 0; font-size: 16px; color: var(--text-muted); }
.pc-checker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.pc-card .hibp-card { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: none; }
.pc-card .hibp-card.pc-hibp-email { background: var(--surface2); }
.pc-card .hibp-intro { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-card .hibp-section-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: 0; }
.pc-card .hibp-intro-text { margin: 0; font-size: 14px; color: var(--text-muted); }
.pc-card .hibp-input { min-height: 46px; }
.pc-card .hibp-btn {
  align-self: flex-start; min-height: 46px; padding: 0 20px; border: 0; border-radius: 10px; background: #dc3545; color: #ffffff;
  font-family: var(--body); font-size: 15px; font-weight: 600; width: auto;
}
.pc-card .hibp-btn:hover:not(:disabled) { filter: brightness(1.08); }
.pc-card .hibp-btn.hibp-btn-email { background: var(--surface); color: var(--gs-link); border: 1px solid var(--border-strong); }
.pc-card .hibp-btn.hibp-btn-email:hover { background: var(--gs-pill-bg); filter: none; }
.pc-how > summary { cursor: pointer; font-size: 13px; color: var(--text-muted); text-decoration: underline; min-height: 44px; display: flex; align-items: center; }
.pc-how[open] > summary { margin-bottom: 8px; }
.pc-how .hibp-how { margin-top: 0; }

/* Trust strip right under the card */
.pc-trust { margin-top: 28px; background: none; }

/* Phones */
/* The phrase can wrap to three lines on a phone: reserve them, so filling it in does not push the rest of the page down */
@media (max-width: 600px) {
  .pc-card #display { min-height: 84px; }
}
@media (max-width: 820px) {
  .pc-hero { padding: 40px 0 150px; }
  .pc-card { padding: 20px 16px; margin-top: -130px; }
  .pc-out-box { padding: 16px; }
  .pc-card .btn-checker { margin-left: 0; flex: 1 1 100%; justify-content: center; }
  .pc-card .mode-tabs { flex: 1 1 100%; }
  .pc-card .mode-tab { flex: 1; padding: 10px 8px; }
  .pc-card .btn-settings-toggle { margin-left: auto; }
  .gs-feature { padding: 22px; gap: 20px; }
  .gs-feature-compact { padding: 20px; }
}
@media (max-width: 520px) {
  .pc-card .skrinjar-hint.pc-hint { min-height: 118px; }
}
/* Actions on phones: Kopiraj full width; Nova | QR; × n; Pošalji sigurno full width in its own row */
@media (max-width: 600px) {
  .pc-card .pc-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .pc-card .pc-actions > button, .pc-card .pc-actions .btn-actions-single > button { width: 100%; min-width: 0; min-height: 46px; padding: 0 10px; gap: 6px; font-size: 14px; }
  .pc-card .pc-actions .btn-copy-sm, .pc-card .pc-actions .btn-copy { grid-column: 1 / -1; order: 1; }
  .pc-card .pc-actions .btn-generate { order: 2; }
  .pc-card .pc-actions .btn-qr-sm { order: 3; }
  .pc-qty { order: 4; grid-column: 1 / -1; justify-content: center; min-width: 0; }
  .pc-card .pc-actions .btn-qty-segment .qty-btn { min-width: 36px; padding: 0 8px; }
  .pc-card .pc-actions .btn-qty-segment .qty-val { width: 28px; min-width: 28px; }
  .pc-card .pc-actions .btn-secure { order: 5; grid-column: 1 / -1; margin-left: 0; }
  .pc-card .pc-actions .btn-secure::before { display: none; }
}

/* Touch targets */
.pc-card .gen-lang-btn { min-height: 44px; }
.pc-card .msg-send-btn { min-height: 46px; }

/* Before script.js runs, the bulk "copy all" button is hidden like it is afterwards (no jump when the script hides it) */
.pc-card .pc-actions .btn-copy:not([style]) { display: none; }

/* ── Web v2: two entries, the business section, the FAQ and the newsletter ───────────────────────────── */
.pc-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 56px 0 24px; }
.pc-entry { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.pc-entry-biz { background: var(--gs-navy); border-color: var(--gs-navy); color: #ffffff; --gs-accent: var(--gs-accent-on-dark); }
.pc-entry-biz .gs-eyebrow { color: var(--gs-sky); }
.pc-entry .gs-actions { margin-top: auto; align-items: center; }
.pc-story-actions { margin-top: 8px; }
.pc-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pc-outcome { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.pc-outcome p { margin: 0; }
.pc-outcome-t { font-size: 17px; font-weight: 700; line-height: 1.3; }
.pc-nl .newsletter-blog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4px 24px; align-items: center; margin-top: 32px; padding: 22px 26px; color: #ffffff; background: var(--gs-navy); border-radius: 12px; }
.pc-nl .newsletter-blog-heading { margin: 0; font-size: 18px; font-weight: 700; color: #ffffff; }
.pc-nl .newsletter-blog-subheading { margin: 0; font-size: 15px; color: #cbd5e1; }
.pc-nl .newsletter-blog .newsletter-form { grid-column: 2; grid-row: 1 / span 2; }
.pc-nl .newsletter-privacy, .pc-nl .newsletter-status { color: #cbd5e1; }
@media (max-width: 820px) {
  .pc-entries, .pc-outcomes { grid-template-columns: minmax(0, 1fr); }
  .pc-nl .newsletter-blog { grid-template-columns: minmax(0, 1fr); }
  .pc-nl .newsletter-blog .newsletter-form { grid-column: 1; grid-row: auto; }
}
