/* „Денят“ на живо (dayof-render.js) — в раздела на планера и на страницата по линк (day.php). Първо за телефон.
   Цветовете са от темата на портала, със стойности по подразбиране за публичната страница (там няма style.css). */
.do {
  --do-gold: var(--gold, #8f6d23);
  --do-gold-soft: var(--gold-soft, #f1e6cc);
  --do-gold-ink: var(--gold-ink, #6f5419);
  --do-ink: var(--ink, #292725);
  --do-muted: var(--ink-muted, #6f675d);
  --do-line: var(--line, #e7e1d8);
  --do-sunk: var(--paper-sunk, #f4f1ec);
  --do-ok: #5f8a6d;
  --do-late: #b5563f;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  color: var(--do-ink);
}
.do-ico {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--do-gold-soft);
  color: var(--do-gold-ink);
}
.do-ico svg {
  width: 18px;
  height: 18px;
}
.do-empty {
  padding: 28px 24px;
  border: 1px dashed var(--do-line);
  border-radius: 18px;
  color: var(--do-muted);
  text-align: center;
  line-height: 1.6;
}

/* „Сега“ — голямата карта отгоре */
.do-now {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 22px;
  border: 1px solid var(--gold-line, #e2cf9f);
  border-radius: 24px;
  background: linear-gradient(155deg, #fdf8ee 0%, #f5e6c4 100%);
}
.do-eyebrow {
  color: var(--do-gold-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.do-now h2 {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 500;
  line-height: 1.15;
}
.do-when {
  margin: 0;
  color: var(--do-muted);
  font-size: 15px;
  font-weight: 600;
}
.do-now-place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.do-now-place .do-ico {
  background: #fff;
}
.do .do-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid var(--do-line);
  border-radius: 999px;
  background: #fff;
  color: var(--do-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.do .do-nav svg {
  width: 15px;
  height: 15px;
  color: var(--do-gold);
}
.do .do-nav:hover {
  border-color: var(--do-gold);
}
.do .do-done-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--do-ink);
  color: #fff;
  font: 600 16px/1 var(--font-body, 'Montserrat', 'Segoe UI', Arial, sans-serif);
  cursor: pointer;
}
.do .do-done-btn svg {
  width: 20px;
  height: 20px;
}
.do .do-done-btn:active {
  transform: translateY(1px);
}
.do-next {
  margin: 2px 0 0;
  color: var(--do-muted);
  font-size: 14px;
  line-height: 1.5;
}
.do-next span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.do-next b {
  color: var(--do-ink);
}
.do-next em {
  color: var(--do-gold-ink);
  font-style: normal;
  font-weight: 600;
}
.do-now.is-finished {
  text-align: center;
}

/* Напредък и статус */
.do-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.do-bar {
  flex: 1 1 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--do-sunk);
}
.do-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--do-gold), #c9a45a);
  transition: width 0.5s ease;
}
.do-count {
  color: var(--do-muted);
  font-size: 13px;
  font-weight: 600;
}
.do-status {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.do-status.is-ok,
.do-status.is-done {
  background: #e3efe6;
  color: var(--do-ok);
}
.do-status.is-late {
  background: #f8e3dd;
  color: var(--do-late);
}
.do-status.is-preview {
  background: var(--do-sunk);
  color: var(--do-muted);
}

/* Карти: графикът, местата, доставчиците */
.do-card {
  padding: 20px 18px;
  border: 1px solid var(--do-line);
  border-radius: 22px;
  background: #fff;
}
.do-card h3 {
  margin: 0 0 12px;
  font-family: 'Lora', Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}
.do-line,
.do-places,
.do-vendors {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* времевата линия: вертикална линия зад отметките */
.do-line {
  position: relative;
}
.do-line::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 16px;
  width: 2px;
  background: var(--do-line);
}
.do-line > li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}
.do-place {
  margin-top: 8px;
  padding: 10px 0 !important;
}
.do-place:first-child {
  margin-top: 0;
}
.do-place div,
.do-places div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.do-place strong,
.do-places strong {
  font-size: 15px;
}
.do-place small,
.do-places small {
  color: var(--do-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.do-travel {
  color: var(--do-muted);
  font-size: 13px;
}
.do-travel .do-ico {
  background: var(--do-sunk);
  color: var(--do-muted);
}
.do .do-check {
  position: relative;
  z-index: 1;
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 2px solid var(--do-line);
  border-radius: 50%;
  background: #fff;
  color: transparent;
  cursor: pointer;
}
.do .do-check svg {
  width: 16px;
  height: 16px;
}
.do .do-check:hover {
  border-color: var(--do-gold);
  color: var(--do-gold-soft);
}
.do-step time {
  flex: none;
  width: 46px;
  color: var(--do-gold-ink);
  font-size: 14px;
  font-weight: 700;
}
.do-step div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.do-step strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.do-step small {
  color: var(--do-muted);
  font-size: 12px;
}
.do-step.is-done .do-check {
  border-color: var(--do-ok);
  background: var(--do-ok);
  color: #fff;
}
.do-step.is-done strong {
  color: var(--do-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.25);
}
.do-step.is-done time {
  color: var(--do-muted);
}
.do-step.is-current {
  margin: 4px -10px;
  padding: 10px !important;
  border-radius: 16px;
  background: #fdf6e7;
}
.do-step.is-current .do-check {
  border-color: var(--do-gold);
  box-shadow: 0 0 0 4px var(--do-gold-soft);
  animation: do-pulse 2s ease-in-out infinite;
}
@keyframes do-pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(143, 109, 35, 0.12);
  }
}
.do-step.is-behind time {
  color: var(--do-late);
}
/* места и доставчици */
.do-places li,
.do-vendors li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--do-line);
}
.do-places li:first-child,
.do-vendors li:first-child {
  border-top: 0;
}
.do-vendors time {
  flex: none;
  width: 46px;
  color: var(--do-gold-ink);
  font-weight: 700;
}
.do-vendors strong {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}
.do .do-call {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--do-ok);
  color: #fff;
}
.do .do-call svg {
  width: 17px;
  height: 17px;
}
@media (prefers-reduced-motion: reduce) {
  .do-step.is-current .do-check {
    animation: none;
  }
  .do-bar i {
    transition: none;
  }
}

/* ---------- Раздел „Денят“ в планера: линкът за споделяне ---------- */
.plp-dayof {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#planner .do-share {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 22px;
  border-radius: 22px;
}
#planner .do-share h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 500;
}
.do-share-text p {
  margin: 0;
  line-height: 1.55;
}
.do-share-body {
  display: flex;
  align-items: center;
  gap: 18px;
}
.do-share-body > div:last-child {
  flex: 1;
  min-width: 0;
}
.do-share .pl-actions {
  flex-wrap: wrap;
  margin-top: 10px;
}
.do-qr {
  flex: none;
  width: 110px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.do-qr svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 600px) {
  .do-share-body {
    flex-direction: column;
    align-items: stretch;
  }
  .do-qr {
    align-self: center;
  }
}

/* ---------- Публичната страница (day.php) ---------- */
.dayof-page {
  margin: 0;
  padding: 0 16px 40px;
  background: #faf8f4;
  color: #292725;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.dayof-head {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 0 18px;
}
.dayof-head img {
  width: 92px;
  height: auto;
}
.dayof-head div {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 1px solid #e7e1d8;
}
.dayof-head span {
  color: #6f5419;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
}
.dayof-head h1 {
  margin: 2px 0 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}
.dayof-head p {
  margin: 2px 0 0;
  color: #6f675d;
  font-size: 13px;
}
.dayof-loading {
  padding: 48px 0;
  color: #6f675d;
  text-align: center;
}
.dayof-page #portal-status {
  position: fixed;
  bottom: 16px;
  left: 50%;
  z-index: 20;
  margin: 0;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #292725;
  color: #fff;
  font-size: 14px;
}
.dayof-page #portal-status:not(:empty) {
  padding: 10px 16px;
}
