/* PortaVia — style.css | Updated May 2026 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #005500;
  --green-dark:  #003d00;
  --green-mid:   #006600;
  --green-light: #eaf4ea;
  --green-pale:  #f2faf2;
  --red:         #CC0000;
  --red-light:   #fff0f0;
  --amber:       #b26a00;
  --amber-light: #fff8e6;
  --gray-50:     #f8f9fa;
  --gray-100:    #f0f0f0;
  --gray-200:    #e0e0e0;
  --gray-400:    #9e9e9e;
  --gray-600:    #555555;
  --gray-800:    #1a1a1a;
  --white:       #ffffff;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow:      0 1px 4px rgba(0,0,0,0.08);
  --font:        Georgia, 'Times New Roman', serif;
  --font-ui:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--gray-50);
}

/* ── Header ── */
.site-header {
  background: var(--green);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-flag { font-size: 22px; line-height: 1; }
.logo-text  { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font); }
.tagline    { margin-left: auto; font-size: 12px; opacity: .72; font-style: italic; display: none; }
@media (min-width: 480px) { .tagline { display: block; } }

/* ── Nav ── */
.site-nav { background: var(--green-dark); display: flex; overflow-x: auto; }
.site-nav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
  transition: all .15s;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-bottom-color: rgba(255,255,255,.5);
}

/* ── Layout ── */
.container { max-width: 740px; margin: 0 auto; padding: 28px 16px; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* ── Page title ── */
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
  font-family: var(--font);
}
.page-subtitle {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.updated-badge {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #b8d8b8;
}

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.field-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.radio-group { display: flex; flex-direction: column; gap: 6px; }
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  font-size: 14px;
  line-height: 1.4;
  background: var(--white);
}
.radio-option:hover { border-color: var(--green-mid); background: var(--green-light); }
.radio-option input[type="radio"] {
  accent-color: var(--green-mid);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.radio-option:has(input:checked) {
  border-color: var(--green-mid);
  background: var(--green-light);
}
.radio-option:has(input:checked) span { font-weight: 600; color: var(--green-dark); }

@media (min-width: 560px) {
  .radio-group.two-col { flex-direction: row; flex-wrap: wrap; }
  .radio-group.two-col .radio-option { flex: 1 1 calc(50% - 3px); }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  text-align: center;
}
.btn-primary { background: var(--green-mid); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary {
  background: var(--white);
  color: var(--gray-800);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover { background: var(--gray-100); }
.btn-sm { padding: 6px 14px; font-size: 12px; width: auto; }
.btn-export {
  background: var(--gray-100);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all .15s;
}
.btn-export:hover { background: var(--gray-200); }

/* ── Result box ── */
.result-box {
  border: 2px solid var(--green-mid);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--green-light);
  margin-bottom: 16px;
  animation: fadeUp .3s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.visa-badge {
  display: inline-block;
  background: var(--green-mid);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .07em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.result-box h2  { font-size: 19px; color: var(--green-dark); margin-bottom: 8px; font-family: var(--font); }
.result-box > p { font-size: 14px; color: #2a3a2a; line-height: 1.65; }
.result-note {
  background: var(--amber-light);
  border: 1px solid #e8c97a;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: #5a3a00;
  margin-top: 10px;
  line-height: 1.5;
}
.result-time {
  font-size: 13px;
  color: var(--green-dark);
  margin-top: 10px;
  background: rgba(0,100,0,.08);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.result-actions a { flex: 1 1 180px; }

/* ── Checklist ── */
.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.progress-label { font-size: 13px; color: var(--gray-600); }
.progress-bar-wrap {
  background: var(--gray-200);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--green-mid);
  border-radius: 20px;
  transition: width .35s ease;
}
.doc-list {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  transition: background .1s;
  cursor: pointer;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item:hover  { background: #fafff8; }
.checklist-item.checked { background: var(--green-pale); }
.checklist-item input[type="checkbox"] {
  accent-color: var(--green-mid);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.doc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  transition: all .1s;
}
.checklist-item.checked .doc-name { text-decoration: line-through; color: var(--gray-400); }
.doc-meta { font-size: 12px; color: var(--gray-600); margin-top: 3px; line-height: 1.5; }
.doc-tip {
  font-size: 12px;
  color: #1a4a1a;
  background: #d8edd8;
  border-radius: 4px;
  padding: 4px 8px;
  margin-top: 6px;
  display: inline-block;
  line-height: 1.5;
}
.doc-info { flex: 1; }

/* ── Timeline ── */
.timeline-summary-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.tl-total-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  border-radius: 20px;
  padding: 4px 12px;
}
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  position: relative;
  margin-bottom: 14px;
  cursor: pointer;
}
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--gray-600);
  font-weight: 700;
  z-index: 1;
  transition: all .2s;
  box-shadow: 0 0 0 2px var(--gray-200);
}
.timeline-item[data-status="in-progress"] .timeline-dot { background: #f5a623; color: #fff; box-shadow: 0 0 0 2px #fde8b8; }
.timeline-item[data-status="done"]        .timeline-dot { background: var(--green-mid); color: #fff; box-shadow: 0 0 0 2px #b8d8b8; }

.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gray-200);
  padding: 12px 14px;
  transition: all .2s;
}
.timeline-item:hover .timeline-card { border-color: var(--gray-400); }
.timeline-item[data-status="in-progress"] .timeline-card { border-left-color: #f5a623; background: #fffdf7; }
.timeline-item[data-status="done"]        .timeline-card { border-left-color: var(--green-mid); background: var(--green-pale); }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
}
.timeline-item[data-status="done"] .timeline-title { text-decoration: line-through; color: var(--gray-400); }
.status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-todo     { background: var(--gray-100); color: var(--gray-600); }
.badge-progress { background: #fff3e0; color: #8a5500; }
.badge-done     { background: #e0f4e0; color: #1a5c1a; }
.timeline-desc  { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.timeline-duration { font-size: 11px; color: var(--gray-400); margin-top: 3px; }
.timeline-hint  { font-size: 10px; color: var(--gray-400); margin-top: 4px; font-style: italic; }

/* ── Visa tag (checklist/timeline pages) ── */
.visa-type-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.visa-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.visa-select-row label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.visa-select-row select {
  padding: 7px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--white);
  cursor: pointer;
  min-width: 220px;
  font-family: var(--font-ui);
}
.module-nav { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.module-nav a, .module-nav button {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--green-mid);
  background: none;
  color: var(--green-mid);
  text-decoration: none;
  font-family: var(--font-ui);
  transition: all .15s;
}
.module-nav a:hover, .module-nav a.active,
.module-nav button:hover, .module-nav button.active {
  background: var(--green-mid);
  color: #fff;
}

/* ── Schengen Calculator ── */
.calc-box {
  background: #f0f7ff;
  border: 1px solid #b8d4f4;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.calc-box h3 { font-size: 14px; font-weight: 700; color: #0c447c; margin-bottom: 10px; }
.calc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.calc-row label { font-size: 13px; color: var(--gray-600); min-width: 120px; }
.calc-row input[type="date"] {
  padding: 6px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-ui);
}
.calc-result {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #b8d4f4;
  display: none;
}
.calc-result.ok   { border-color: #a0d0a0; background: #f0faf0; color: #1a5c1a; }
.calc-result.warn { border-color: #f5c07a; background: #fffaf0; color: #7a4a00; }
.calc-result.bad  { border-color: #f0a0a0; background: #fff5f5; color: #8b0000; }

/* ── Nationality warning (SC page) ── */
.nationality-warn {
  background: var(--amber-light);
  border: 1px solid #e8c97a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: #5a3a00;
  margin-bottom: 14px;
  line-height: 1.6;
  display: none;
}
.nationality-warn.visible { display: block; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-600);
}
.empty-state p { margin-bottom: 16px; font-size: 14px; }

/* ── Last updated info ── */
.last-updated-note {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

/* ── Disclaimer & footer ── */
.disclaimer {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  padding: 14px 0 8px;
  border-top: 1px solid var(--gray-200);
  margin-top: 8px;
  line-height: 1.6;
}
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.6);
  text-align: center;
  font-size: 12px;
  padding: 16px;
  margin-top: 24px;
}
.site-footer strong { color: #fff; }

/* ── Print styles ── */
@media print {
  .site-header, .site-nav, .site-footer, .module-nav, .btn-export, .btn, .calc-box { display: none !important; }
  .container { padding: 0; max-width: 100%; }
  .checklist-item.checked .doc-name::after { content: ' ✓'; }
}

@media (min-width: 600px) {
  .container { padding: 32px 20px; }
  .card { padding: 26px; }
}
