/* Robin blog — sdílené styly pro /blog/ */

/* =========================================
   Checklist table
========================================= */
.checklist-wrap {
  margin: 28px 0;
  width: fit-content;
  border: 1px solid rgba(107,63,244,0.28);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255,255,255,0.025);
}
.checklist-table {
  width: auto;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.checklist-table thead tr {
  background: rgba(107,63,244,0.12);
  border-bottom: 1px solid rgba(107,63,244,0.22);
}
.checklist-table th {
  padding: 13px 20px;
  text-align: left;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-3);
}
.checklist-table th:last-child { color: var(--teal); opacity: 0.8; }
.checklist-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 180ms;
}
.checklist-table tbody tr:last-child { border-bottom: none; }
.checklist-table tbody tr:hover { background: rgba(107,63,244,0.05); }
.checklist-table td { padding: 13px 20px; vertical-align: middle; }
.checklist-table td:first-child {
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
}
.checklist-table td:last-child {
  color: var(--teal);
  font-weight: 500;
}
@media (max-width: 560px) {
  .checklist-table td:first-child { white-space: normal; }
  .checklist-table td { padding: 11px 14px; font-size: 14px; }
  .checklist-table th { padding: 11px 14px; }
}


:root {
  --bg: #06060f;
  --surface: rgba(255,255,255,0.025);
  --modal-surface: #0e0d1c;
  --border: rgba(255,255,255,0.08);
  --border-v: rgba(107,63,244,0.3);
  --violet: #6B3FF4;
  --violet-2: #8D6BFF;
  --violet-dim: rgba(107,63,244,0.16);
  --teal: #00C9A7;
  --teal-dim: rgba(0,201,167,0.12);
  --text-1: #F7F8FF;
  --text-2: rgba(255,255,255,0.65);
  --text-3: rgba(255,255,255,0.42);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 280ms;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text-1); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* Navbar — stejný jako na landing page (floating pill, glassmorphism) */
.nav {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-14px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  width: min(calc(100% - 40px), 760px);
  background: rgba(10,9,22,0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(107,63,244,0.22);
  border-radius: var(--radius-pill);
  opacity: 0;
  animation: navIn 900ms var(--ease) 80ms forwards;
  transition: border-radius 320ms var(--ease), background 320ms, top 600ms var(--ease);
}
.nav.expanded { border-radius: var(--radius-lg); }
.nav.scrolled  { background: rgba(6,6,15,0.88); }
.nav.hidden    { top: -90px; }
@keyframes navIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-row {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; gap: 20px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-owl { display:block; flex-shrink:0; filter:drop-shadow(0 0 14px rgba(107,63,244,.7)) drop-shadow(0 0 6px rgba(0,201,167,.3)); }
.nav-logo-text {
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.02em;
  color: #f0eeff;
}
.nav-logo-text .teal { color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: center; }
.nav-link {
  display: inline-block; overflow: hidden;
  height: 18px; line-height: 18px;
  text-decoration: none; font-size: 13px;
  vertical-align: middle;
}
.nav-link-stack {
  display: flex; flex-direction: column;
  transition: transform 380ms var(--ease);
}
.nav-link:hover .nav-link-stack { transform: translateY(-50%); }
.nav-link span { display: block; height: 18px; line-height: 18px; white-space: nowrap; }
.nav-link span:first-child  { color: rgba(255,255,255,0.72); }
.nav-link span:last-child   { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.btn-violet {
  padding: 7px 16px; font-size: 12px; font-weight: 600;
  color: #fff;
  background: var(--violet);
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  transition: background var(--fast), transform var(--fast);
  white-space: nowrap;
  font-family: inherit;
}
.btn-violet:hover { background: var(--violet-2); transform: scale(1.02); }

.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.65);
}
.nav-mobile {
  display: none; flex-direction: column; align-items: center;
  width: 100%; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 340ms var(--ease), opacity 280ms, padding-top 280ms;
}
.nav-mobile.open { max-height: 420px; opacity: 1; padding-top: 16px; }
.nav-mobile-links { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.nav-mobile-links a { font-size: 15px; color: rgba(255,255,255,0.65); text-decoration: none; }
.nav-mobile-btns { display: flex; gap: 8px; width: 100%; margin-top: 14px; }
.nav-mobile-btns .btn-violet { flex: 1; text-align: center; }

@media (max-width: 680px) {
  .nav-links   { display: none; }
  .nav-actions { display: none; }
  .nav-burger  { display: flex; }
  .nav-mobile  { display: flex; }
}

/* Article container */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(110px, 11vw, 140px) clamp(20px, 5vw, 32px) 64px;
}
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-3);
  margin-bottom: 32px;
  transition: color 200ms;
}
.article-back:hover { color: var(--teal); }
.article-back svg { width: 14px; height: 14px; }

.article-meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--text-3);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.article-category {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(107,63,244,0.18);
  color: var(--violet-2);
  border-radius: 999px;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 11px;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

.article h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 20px;
}
.article-lead {
  font-size: 18px; line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.article-body { font-size: 16px; line-height: 1.72; color: rgba(255,255,255,0.84); }
.article-body h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 48px 0 16px;
  color: #fff;
}
.article-body h3 {
  font-size: 18px; font-weight: 600;
  margin: 32px 0 12px;
  color: rgba(255,255,255,0.92);
}
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: #fff; font-weight: 600; }
.article-body em { color: var(--teal); font-style: normal; font-weight: 500; }
.article-body a {
  color: var(--teal);
  border-bottom: 1px solid rgba(0,201,167,0.35);
  transition: border-color 200ms;
}
.article-body a:hover { border-bottom-color: var(--teal); }
.article-body blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--violet-2);
  background: rgba(107,63,244,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px; color: rgba(255,255,255,0.88);
  font-style: italic;
}
.article-body blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 13px; color: var(--text-3);
  font-style: normal; letter-spacing: 0.02em;
}

/* Inline CTA box */
.article-cta {
  margin: 40px 0;
  padding: 28px;
  background: linear-gradient(135deg, rgba(107,63,244,0.10) 0%, rgba(0,201,167,0.05) 100%);
  border: 1px solid rgba(107,63,244,0.25);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 12px;
}
.article-cta-title { font-size: 17px; font-weight: 600; color: #fff; margin: 0; }
.article-cta-body { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin: 0; }
.article-cta-btn {
  align-self: flex-start;
  display: inline-block;
  padding: 11px 22px;
  background: var(--violet); color: #fff !important;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
  text-decoration: none;
  transition: background 200ms, transform 200ms;
  margin-top: 4px;
}
.article-cta-btn:hover { background: #7E55F8; transform: translateY(-1px); }

/* Source footnote */
.article-sources {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
  line-height: 1.7;
}
.article-sources h3 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; font-weight: 600; }
.article-sources ul { padding-left: 18px; }

/* Related */
.related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.related-title { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 24px; font-weight: 600; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 300ms, background 300ms, transform 300ms;
}
.related-card:hover {
  border-color: rgba(107,63,244,0.35);
  background: rgba(107,63,244,0.04);
  transform: translateY(-2px);
}
.related-card-cat {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet-2); font-weight: 600; margin-bottom: 10px;
}
.related-card-title { font-size: 16px; font-weight: 600; line-height: 1.35; color: #fff; margin: 0; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

/* Footer */
.blog-footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}
.blog-footer a { color: var(--text-2); }
.blog-footer a:hover { color: var(--teal); }

/* Blog index */
.blog-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(130px, 13vw, 160px) clamp(20px, 5vw, 32px) 48px;
  text-align: center;
}
.blog-hero-eyebrow { font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 14px; }
.blog-hero h1 { font-size: clamp(36px, 6vw, 54px); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 16px; line-height: 1.08; }
.blog-hero-sub { font-size: 17px; color: var(--text-2); line-height: 1.55; margin: 0; }

.blog-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px) 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.blog-post-card {
  display: flex; flex-direction: column;
  padding: 36px 32px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 300ms, background 300ms, transform 300ms;
  min-height: 220px;
}
.blog-post-card:hover {
  border-color: rgba(107,63,244,0.40);
  background: rgba(107,63,244,0.05);
  transform: translateY(-3px);
}
.blog-post-card-cat {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet-2); font-weight: 600; margin-bottom: 12px;
}
.blog-post-card h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #fff;
}
.blog-post-card-excerpt { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin: 0 0 18px; }
.blog-post-card-meta { margin-top: auto; display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-3); letter-spacing: 0.03em; }
.blog-post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
@media (max-width: 760px) { .blog-list { grid-template-columns: 1fr; } }

/* =========================================
   Contact modal (na blog stránkách)
========================================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 300ms;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 520px;
  background: var(--modal-surface);
  border: 1px solid rgba(107,63,244,0.25);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 350ms var(--ease);
  max-height: 90svh;
  overflow-y: auto;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer; color: var(--text-2);
  transition: background var(--fast), color var(--fast);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.modal-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--violet-dim); border: 1px solid var(--border-v);
  font-size: 11px; font-weight: 500; color: var(--violet-2);
  margin-bottom: 16px;
}
.modal-title { font-size: 24px; font-weight: 700; letter-spacing: -0.022em; color: #fff; margin: 0 0 6px; }
.modal-sub   { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 0 0 28px; }
.modal-form  { display: flex; flex-direction: column; gap: 14px; }
.modal-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-form .t-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-3);
}
.modal-form .form-input {
  padding: 11px 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; color: #fff; font-family: inherit;
  outline: none; width: 100%;
  transition: border-color 200ms, background 200ms;
}
.modal-form .form-input::placeholder { color: var(--text-3); }
.modal-form .form-input:focus { border-color: rgba(107,63,244,0.5); background: rgba(107,63,244,0.05); }
.modal-textarea {
  padding: 11px 13px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: #fff; font-family: inherit;
  outline: none; width: 100%; resize: none; height: 100px;
  transition: border-color 200ms, background 200ms; line-height: 1.55;
}
.modal-textarea::placeholder { color: var(--text-3); }
.modal-textarea:focus { border-color: rgba(107,63,244,0.5); background: rgba(107,63,244,0.05); }
.modal-submit {
  width: 100%; padding: 13px; font-size: 15px; font-weight: 600;
  color: #fff; background: var(--violet); border: none;
  border-radius: var(--radius-pill); cursor: pointer;
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
  margin-top: 4px; font-family: inherit;
}
.modal-submit:hover {
  background: var(--violet-2); transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(107,63,244,0.35);
}
.modal-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.modal-success {
  display: none; flex-direction: column; align-items: center;
  text-align: center; gap: 16px; padding: 20px 0;
}
.modal-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--teal-dim); border: 1px solid rgba(0,201,167,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--teal);
}

/* =========================================
   LIGHT MODE
========================================= */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  cursor: pointer;
  padding: 6px 8px;
  display: flex; align-items: center;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}
.theme-toggle:hover { color: var(--text-1); border-color: var(--border-v); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
body.light .theme-toggle .icon-sun  { display: block; }
body.light .theme-toggle .icon-moon { display: none; }

body.light {
  --bg:            #F7F6FF;
  --surface:       #fff;
  --modal-surface: #fff;
  --border:        rgba(107,63,244,0.14);
  --border-v:      rgba(107,63,244,0.38);
  --text-1:        #0F0E1A;
  --text-2:        rgba(15,14,26,0.62);
  --text-3:        rgba(15,14,26,0.45);
  --violet-dim:    rgba(107,63,244,0.10);
  --teal-dim:      rgba(0,201,167,0.10);
  color-scheme: light;
}

/* Navbar */
body.light .nav {
  background: rgba(247,246,255,0.88);
  border-color: rgba(107,63,244,0.16);
  box-shadow: 0 4px 24px rgba(107,63,244,0.08);
}
body.light .nav.scrolled { background: rgba(247,246,255,0.98); }
body.light .nav-logo-text { color: #0F0E1A; }
body.light .nav-link span:first-child { color: rgba(15,14,26,0.60); }
body.light .nav-link span:last-child  { color: #0F0E1A; }
body.light .nav-mobile-links a { color: rgba(15,14,26,0.62); }
body.light .nav-burger { color: rgba(15,14,26,0.6); }

/* Article */
body.light .article h1 { color: #0F0E1A; }
body.light .article-lead { color: var(--text-2); border-bottom-color: var(--border); }
body.light .article-body { color: rgba(15,14,26,0.80); }
body.light .article-body h2 { color: #0F0E1A; }
body.light .article-body h3 { color: rgba(15,14,26,0.88); }
body.light .article-body strong { color: #0F0E1A; }
body.light .article-body blockquote {
  background: rgba(107,63,244,0.05);
  color: rgba(15,14,26,0.82);
}
body.light .article-back { color: var(--text-3); }
body.light .article-category { background: rgba(107,63,244,0.10); color: var(--violet); }

/* Checklist table */
body.light .checklist-wrap { background: #fff; border-color: rgba(107,63,244,0.20); }
body.light .checklist-table thead tr { background: rgba(107,63,244,0.08); }
body.light .checklist-table td:first-child { color: rgba(15,14,26,0.88); }
body.light .checklist-table tbody tr:hover { background: rgba(107,63,244,0.04); }

/* CTA box */
body.light .article-cta {
  background: linear-gradient(135deg, rgba(107,63,244,0.08) 0%, rgba(0,201,167,0.04) 100%);
  border-color: rgba(107,63,244,0.20);
}
body.light .article-cta-title { color: #0F0E1A; }

/* Sources */
body.light .article-sources { border-top-color: var(--border); color: var(--text-3); }

/* Related */
body.light .related-card {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(107,63,244,0.07);
}
body.light .related-card:hover { background: var(--surface); border-color: rgba(107,63,244,0.30); }
body.light .related-card-cat { color: var(--violet); }
body.light .related-card-title { color: #0F0E1A; }

/* Footer */
body.light .blog-footer { border-top-color: var(--border); color: var(--text-3); }
body.light .blog-footer a { color: var(--text-2); }

/* Blog index */
body.light .blog-hero h1 { color: #0F0E1A; }
body.light .blog-hero-sub { color: var(--text-2); }
body.light .blog-hero-eyebrow { color: var(--text-3); }
body.light .blog-post-card {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(107,63,244,0.07);
}
body.light .blog-post-card:hover { background: var(--surface); border-color: rgba(107,63,244,0.30); }
body.light .blog-post-card-cat { color: var(--violet); }
body.light .blog-post-card h2 { color: #0F0E1A; }
body.light .blog-post-card-excerpt { color: var(--text-2); }

/* Modal */
body.light .modal { background: #fff; border-color: rgba(107,63,244,0.20); }
body.light .modal-title { color: #0F0E1A; }
body.light .modal-form .form-input,
body.light .modal-textarea {
  background: #fff;
  border-color: rgba(107,63,244,0.20);
  color: #0F0E1A;
}
body.light .modal-close { background: rgba(107,63,244,0.06); color: var(--text-2); }
body.light .modal-close:hover { background: rgba(107,63,244,0.12); color: #0F0E1A; }
