/* Linki tools — neo-brutalist design system (2026-05).
   Shared CSS for all tools at linki.cz/apps/<tool>/.
   Source: linki-new-website-2026/linki-theme/assets/css/main.css */

:root {
  --primary: #7AB80E;
  --primary-light: #e8f5d0;
  --primary-dark: #5a8a0a;
  --secondary: rgb(189, 10, 129);
  --secondary-light: #f9e0f0;
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #1a1a1a;
  --border-light: #e0e0e0;
  --row-alt: #f8f9fa;

  --radius-card: 0;
  --radius-button: 0;
  --radius-input: 0;
  --radius-tag: 0;

  --shadow: 6px 6px 0 var(--secondary);
  --shadow-hover: 3px 3px 0 var(--secondary);
  --shadow-dark: 6px 6px 0 var(--text);
  --shadow-mini: 4px 4px 0 var(--secondary);

  --border-thick: 2px solid var(--text);

  --texture-bg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/></svg>");

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-base-size: 16px;

  --container-max: 1200px;
  --content-max: 720px;
  --container-padding: 1.5rem;

  --transition: 0.15s ease-out;
}

@media (max-width: 640px) {
  :root {
    --container-padding: 1rem;
    --shadow: 4px 4px 0 var(--secondary);
    --shadow-hover: 2px 2px 0 var(--secondary);
  }
}

/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--texture-bg);
  background-repeat: repeat;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link:focus {
  position: absolute; top: 8px; left: 8px; z-index: 1000;
  padding: 0.5em 1em; background: var(--primary); color: #fff; text-decoration: none;
}

/* === Site header === */
.site-header {
  background: var(--primary);
  border-bottom: 4px solid var(--text);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: none;
  padding: 0.7rem 2rem;
  min-height: 64px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}
.site-header__logo { flex-shrink: 0; }
.site-header__logo img { height: 36px; width: auto; display: block; }
.site-header__tagline {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bg);
  white-space: nowrap;
  border-left: 2px solid rgba(255,255,255,0.5);
  padding-left: 0.8rem;
}
.site-header__cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Header search */
.header-search {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: var(--border-thick);
  flex: 0 1 320px;
  box-shadow: var(--shadow-mini);
}
.header-search input {
  flex: 1;
  border: 0;
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text);
  min-width: 0;
}
.header-search input:focus { outline: 0; background: var(--primary-light); }
.header-search button {
  background: var(--text);
  color: var(--bg);
  border: 0;
  padding: 0 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
.header-search button:hover { background: var(--secondary); }

/* Mobile toggles */
.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--bg);
}
.mobile-toggle__bars { display: flex; flex-direction: column; gap: 4px; }
.mobile-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bg);
}
.mobile-toggle__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 600;
}

.mobile-search-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--bg);
}

.mobile-mail {
  display: none;
  color: var(--bg);
  padding: 0.4rem;
}

/* Primary nav */
.primary-nav__menu {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav__menu a {
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.primary-nav__menu a:hover { color: var(--text); text-decoration: none; }

/* Header CTA */
.site-header .linki-cta,
.site-header__cta .linki-cta {
  background: var(--bg);
  color: var(--text);
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-mini);
}
.site-header .linki-cta:hover,
.site-header__cta .linki-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--secondary);
}

/* === Tool hero bar === */
.tool-hero {
  background: var(--bg);
  padding: 1.2rem 0;
}
.tool-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.tool-hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}
.tool-hero__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* === Main content === */
main, .site-content {
  flex: 1;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 2rem var(--container-padding);
}

/* === CTA buttons === */
.linki-cta {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border: var(--border-thick);
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  font-family: inherit;
  cursor: pointer;
}
.linki-cta:hover {
  transform: translate(3px, 3px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: var(--text);
}
.linki-cta--primary { background: var(--primary); }
.linki-cta--mini {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-mini);
}
.linki-cta--mini:hover { box-shadow: 2px 2px 0 var(--secondary); }

/* === Controls panel === */
.controls, .panel {
  background: var(--bg);
  border: var(--border-thick);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.control-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* === Form elements === */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"],
input[type="url"],
input[type="password"],
textarea,
select {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.5rem 0.8rem;
  border: var(--border-thick);
  background: var(--bg);
  color: var(--text);
}
textarea {
  resize: vertical;
  min-height: 90px;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.5;
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--primary-light);
  outline-offset: 0;
  border-color: var(--primary);
}
/* Suppress Chrome's blue autofill highlight — keep our white bg + dark text */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px dashed var(--border-light);
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color var(--transition), background var(--transition);
}
.file-label:hover { border-color: var(--primary); }
.file-label.has-file {
  border-style: solid;
  border-color: var(--primary);
  background: var(--primary-light);
}
.file-label input { display: none; }

/* === Buttons === */
.btn-primary {
  padding: 0.7rem 2rem;
  background: var(--primary);
  color: white;
  border: var(--border-thick);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-mini);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--secondary);
}
.btn-primary:active { transform: translate(3px, 3px); box-shadow: none; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: var(--shadow-mini); }

.btn-secondary {
  padding: 0.45rem 1rem;
  background: var(--bg);
  color: var(--secondary);
  border: 2px solid var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  box-shadow: var(--shadow-mini);
}
.btn-secondary:hover {
  background: var(--secondary);
  color: white;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--secondary);
}
.btn-secondary:active { transform: translate(3px, 3px); box-shadow: none; }

/* === Guide accordion === */
.guide-section { margin-bottom: 1.5rem; }
.guide-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  background: none; border: var(--border-thick); padding: 0.8rem 1.2rem;
  width: 100%; text-align: left; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text);
  transition: background var(--transition), border-color var(--transition);
}
.guide-toggle:hover { border-color: var(--primary); background: var(--primary-light); }
.guide-toggle .arrow {
  display: inline-block; transition: transform 0.2s;
  font-size: 0.7rem; color: var(--text-muted);
}
.guide-section.open .guide-toggle {
  border-color: var(--primary); background: var(--primary-light);
}
.guide-section.open .arrow { transform: rotate(90deg); }
.guide-body {
  display: none; border: 1px solid var(--border-light); border-top: none;
  padding: 1.8rem 1.5rem; margin-top: -1px;
}
.guide-section.open .guide-body { display: block; }
.guide-body h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.guide-body p { font-size: 0.85rem; margin-bottom: 0.5rem; }

.highlight-box {
  background: var(--primary-light); border-left: 3px solid var(--primary);
  padding: 0.8rem 1rem; margin: 0.8rem 0;
  font-size: 0.84rem;
}
.credential-note { font-size: 0.8rem; margin-top: 0.5rem; line-height: 1.5; }
.credential-note strong { display: block; margin-bottom: 0.2rem; color: var(--primary-dark); }

.step-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem;
}
.step-card { border: var(--border-thick); padding: 1rem; box-shadow: var(--shadow-mini); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; background: var(--primary); color: white;
  border-radius: 50%; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.4rem;
}

.guide-columns {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem;
}
.col-card {
  border: 1px solid var(--border-light);
  padding: 0.6rem 0.8rem; font-size: 0.82rem;
}

.mockup-wrapper {
  border: 1px solid var(--border-light); overflow: hidden;
  background: var(--row-alt); padding: 1rem; margin: 1.2rem 0;
}
.mockup-label {
  text-align: center; font-size: 0.78rem; color: var(--text-muted);
  font-style: italic; margin-top: 0.5rem;
}

/* === Progress bar === */
.progress-section { display: none; margin-bottom: 1.5rem; }
.progress-bar-wrap {
  background: var(--row-alt);
  height: 28px;
  overflow: hidden;
  border: var(--border-thick);
  position: relative;
}
.progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s;
  width: 0%;
}
.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

/* === Results === */
.results-section { display: none; }
.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.results-header h2 { font-size: 1.1rem; }

/* === Filter pills === */
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-pill {
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}
.filter-pill:hover { border-color: var(--primary); }
.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.filter-pill .pill-count {
  display: inline-block;
  margin-left: 0.3rem;
  background: rgba(0,0,0,0.1);
  padding: 0.05rem 0.4rem;
  font-size: 0.72rem;
}
.filter-pill.active .pill-count { background: rgba(255,255,255,0.3); }

/* === Status badges === */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.status-2xx { background: #d4edda; color: #155724; }
.status-3xx { background: #cce5ff; color: #004085; }
.status-4xx { background: #fff3cd; color: #856404; }
.status-5xx { background: #f8d7da; color: #721c24; }
.status-err { background: #e2e3e5; color: #383d41; }
.status-changed { color: var(--secondary); font-weight: 700; }
.status-same { color: var(--primary-dark); }

/* === Table === */
.table-wrap {
  overflow-x: auto;
  border: var(--border-thick);
  box-shadow: var(--shadow);
  max-height: 70vh;
  overflow-y: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
thead th {
  position: sticky;
  top: 0;
  background: var(--primary);
  color: white;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
thead th:hover { background: var(--primary-dark); }
thead th .sort-arrow { margin-left: 0.3rem; font-size: 0.7rem; }
tbody td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
tbody tr:nth-child(even) { background: var(--row-alt); }
tbody tr:hover { background: var(--primary-light); }

td.url-cell {
  max-width: 500px;
  word-break: break-all;
  font-size: 0.82rem;
}
td.url-cell a { color: var(--text); text-decoration: none; }
td.url-cell a:hover { color: var(--primary-dark); text-decoration: underline; }
td.numeric { text-align: right; font-variant-numeric: tabular-nums; }

/* === Summary cards === */
.summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.summary-card {
  flex: 1;
  min-width: 120px;
  background: var(--bg);
  border: var(--border-thick);
  padding: 1rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-mini);
}
.summary-card .card-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.summary-card .card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* === Loading overlay === */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.loading-overlay.visible,
.loading-overlay.active {
  display: flex;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Author profile === */
.author-profile {
  max-width: var(--container-max);
  margin: 2rem auto 0;
  padding: 0 var(--container-padding);
}
.author-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: var(--border-thick);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  background: var(--bg);
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--text);
  flex-shrink: 0;
}
.author-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.author-title {
  font-size: 0.82rem;
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}
.author-bio {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  line-height: 1.55;
}
.author-bio a { color: var(--secondary); text-decoration: none; font-weight: 600; }
.author-bio a:hover { text-decoration: underline; }

/* === Site footer === */
.site-footer {
  background-color: var(--text);
  background-image: var(--texture-bg);
  color: var(--bg);
  border-top: 4px solid var(--primary);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.site-footer__heading {
  margin: 0 0 1rem;
  color: var(--bg);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__menu li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.site-footer__menu a { color: #bbb; text-decoration: none; }
.site-footer__menu a:hover { color: var(--primary); text-decoration: none; }
.site-footer__bottom {
  max-width: var(--container-max);
  margin: 1.8rem auto 0;
  padding: 1.4rem var(--container-padding) 0;
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  border-top: 1px solid #333;
}

/* === Responsive === */
@media (max-width: 1080px) {
  .site-header__inner { gap: 1rem; padding: 0.7rem 1.2rem; }
  .header-search { flex: 0 1 240px; }
  .primary-nav__menu { gap: 1rem; }
  .primary-nav__menu a { font-size: 0.88rem; }
}

@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
  .mobile-search-toggle { display: block; }
  .primary-nav__menu { gap: 0.9rem; }
}

@media (max-width: 720px) {
  .primary-nav { display: none; }
  .site-header__inner { gap: 0.8rem; padding: 0.6rem 1rem; }
  .site-header__tagline { display: none; }
  .mobile-toggle { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .mobile-mail { display: block; }
  .site-header__cta { display: none; }
  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    border-bottom: 4px solid var(--text);
    padding: 1rem var(--container-padding);
    z-index: 99;
  }
  .primary-nav.is-open .primary-nav__menu {
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media (max-width: 640px) {
  .tool-hero__title { font-size: 1.2rem; }
  main, .site-content { padding: 1rem; }
  .controls, .panel { padding: 1.2rem; }
  .control-row { flex-direction: column; gap: 1rem; }
  thead th, tbody td { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
  .summary-cards { gap: 0.5rem; }
  .summary-card { min-width: 80px; padding: 0.7rem; }
  .summary-card .card-value { font-size: 1.3rem; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .author-inner { flex-direction: column; text-align: center; padding: 1.2rem 1rem; }
}
