
:root {
  --photo-navy: #0b2f44;
  --photo-orange: #c94c0c;
  --photo-cream: #fbf4e9;
  --photo-sage: #84946f;
  --photo-border: #eadfce;
}

body { background: #fffdf9; }
.navbar { box-shadow: 0 2px 14px rgba(11, 47, 68, 0.15); }
h1, h2, h3 { color: var(--photo-navy); }
h1 { font-weight: 800; }
a { text-underline-offset: 3px; }

.hero-image, .week-image, .overview-image, .day-image {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(11, 47, 68, 0.13);
}
.hero-image { margin-bottom: 1.5rem; }
.week-image { margin-bottom: 1.2rem; }
.overview-image { margin: 0.7rem 0 1.5rem; }

.lead-panel {
  background: linear-gradient(135deg, #fff8ed, #f2f5ed);
  border: 1px solid var(--photo-border);
  border-left: 6px solid var(--photo-orange);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  margin: 1rem 0 1.5rem;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.week-card {
  display: block;
  background: white;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--photo-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 7px 22px rgba(11, 47, 68, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}
.week-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-3px);
  border-color: #d8b894;
  box-shadow: 0 12px 30px rgba(11, 47, 68, 0.14);
}
.week-card:focus-visible {
  outline: 4px solid rgba(201, 76, 12, .28);
  outline-offset: 4px;
}
.week-card img { width: 100%; display: block; }
.week-card-content { padding: 1rem 1.1rem 1.2rem; }
.week-card-content h3 { margin-top: 0; }
.week-button {
  display: inline-flex;
  align-items: center;
  margin-top: .25rem;
  padding: .48rem .82rem;
  border-radius: 999px;
  background: var(--photo-orange);
  color: white;
  font-weight: 700;
  line-height: 1.2;
}
.week-card:hover .week-button { background: #a93f08; }

.day-card {
  background: #ffffff;
  border: 1px solid var(--photo-border);
  border-radius: 20px;
  padding: 1.15rem;
  margin: 1rem 0 3rem;
  box-shadow: 0 10px 30px rgba(11, 47, 68, 0.09);
}
.day-card h3 { margin-top: .7rem; }
.day-details {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 1rem;
  margin-top: 1rem;
}
.info-box {
  background: var(--photo-cream);
  border-radius: 14px;
  padding: .9rem 1rem;
}
.info-box strong { color: var(--photo-navy); }
.goal-box {
  background: #f2f5ed;
  border-left: 5px solid var(--photo-sage);
  border-radius: 12px;
  padding: .9rem 1rem;
  margin: 1rem 0;
}
.day-status {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #fff7ec;
  border: 1px solid #f3d5b5;
  border-radius: 12px;
  padding: .75rem 1rem;
  margin: 1rem 0;
  font-weight: 700;
}
.day-checkbox { width: 1.25rem; height: 1.25rem; accent-color: var(--photo-orange); }
.day-notes {
  width: 100%;
  min-height: 130px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: .8rem;
  font: inherit;
  background: #fff;
}
details {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: .75rem 1rem;
  margin-top: 1rem;
}
details summary { cursor: pointer; font-weight: 700; color: var(--photo-navy); }

.progress-card {
  background: linear-gradient(135deg, var(--photo-navy), #174e66);
  color: white;
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  margin: 1.3rem 0 2rem;
  box-shadow: 0 10px 28px rgba(11,47,68,.2);
}
.progress-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.progress-track { height: 14px; background: rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; margin-top: .8rem; }
#progress-bar { height: 100%; width: 0; background: #f0a125; border-radius: 999px; transition: width .25s ease; }
#reset-progress {
  border: 1px solid rgba(255,255,255,.55);
  color: white;
  background: transparent;
  border-radius: 999px;
  padding: .42rem .82rem;
  cursor: pointer;
}
#reset-progress:hover { background: rgba(255,255,255,.13); }
#reset-progress:focus-visible { outline: 3px solid #f0a125; outline-offset: 3px; }

.small-note { color: #5c6870; font-size: .92rem; }
.image-credit { font-size: .82rem; color: #69767e; }

@media (max-width: 850px) {
  .week-grid, .day-details { grid-template-columns: 1fr; }
  .day-card { padding: .75rem; }
  .progress-row { align-items: flex-start; flex-direction: column; }
}

/* Zvýraznenie položky rozbaľovacieho menu */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background-color: #183B5B;
  color: white;
}

/* Aktívny výsledok vyhľadávania */
#quarto-search-results li.aa-Item[aria-selected="true"] .search-item,
.aa-DetachedOverlay li.aa-Item[aria-selected="true"] .search-item {
  background-color: #183B5B !important;
  color: #ffffff !important;
}

/* Vnorený text aktívneho výsledku */
#quarto-search-results li.aa-Item[aria-selected="true"] .search-item *,
.aa-DetachedOverlay li.aa-Item[aria-selected="true"] .search-item * {
  background-color: #183B5B !important;
  color: #ffffff !important;
}

#quarto-search-results li.aa-Item[aria-selected="true"] mark.search-match,
.aa-DetachedOverlay li.aa-Item[aria-selected="true"] mark.search-match {
  background-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

