/* remeco — zákaznícka zóna (rozloženie na PC) a admin (kalendár, mriežka). Dopĺňa app.css. */

/* ===================== zákaznícka zóna ===================== */
body.zone { display: flex; flex-direction: column; min-height: 100vh; }
body.zone main { flex: 1; width: 100%; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; }
.site-nav a:hover { background: var(--primary-10); color: var(--primary-dark); }
@media (max-width: 700px) { .site-nav { display: none; } }

.hero-card { background: linear-gradient(135deg, #fff 0%, #fff4ef 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 14px; margin: 0 0 16px; }
.hero-card h1 { font-size: 1.6rem; margin-bottom: .4rem; }
.hero-card p { margin: .5rem 0 0; }
.zone-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.zone-side { position: sticky; top: 16px; }
@media (max-width: 1023px) {
  .zone-grid { grid-template-columns: 1fr; }
  .zone-side { position: static; }
}
.slot-big { font-size: 1.15rem; font-weight: 700; margin: .2rem 0; }
.link-btn { background: none; border: 0; padding: 6px 4px; color: var(--muted); text-decoration: underline; font: inherit; font-size: .88rem; cursor: pointer; }
.link-btn:hover { color: var(--bad); }

/* krokovač */
ol.steps { list-style: none; padding: 0; }
ol.steps li { flex: 1; text-align: center; font-size: .75rem; color: var(--muted); }
ol.steps li::before { content: ""; display: block; height: 6px; border-radius: 3px; background: #e3e3e3; margin-bottom: 6px; }
ol.steps li.done::before { background: var(--primary); }
ol.steps li.now { color: var(--text); font-weight: 600; }
ol.steps li.now::before { background: linear-gradient(90deg, var(--primary) 0 50%, #e3e3e3 50%); }

/* služby */
.svc { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; }
.svc .name { font-weight: 600; }
.svc .price { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.svc ul { margin: 4px 0 0; padding-left: 1.4rem; color: #555; font-size: .9rem; font-weight: 400; }
.svc ul li::marker { color: #aaa; }
.svc.total { border-top: 2px solid var(--primary); font-weight: 700; }

/* hotové súbory */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600; text-align: center; }
.tile span:first-child { font-size: 1.8rem; }
.tile:hover { border-color: var(--primary); background: var(--primary-10); }

/* ponuka kalendára */
.menu { position: relative; }
.menu-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 6px; }
.menu-list a, .menu-list button { display: flex; gap: 8px; align-items: center; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 8px; text-align: left; text-decoration: none; color: var(--text); font: inherit; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--primary-10); }
.menu-list .rec { font-weight: 700; }
.menu-list .rec small { font-weight: 400; color: var(--muted); }

/* výber termínu (rovnaký kalendár ako v objednávke) */
.calendar-section { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
@media (max-width: 700px) { .calendar-section { grid-template-columns: 1fr; } }
.calendar-container, .time-slots-container { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.time-slots-container h3 { margin-top: 0; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.calendar-header h3 { margin: 0; font-size: 1rem; }
.calendar-nav { display: flex; gap: 6px; }
.calendar-nav button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.calendar-nav button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 2px; }
.calendar-weekdays { font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; font-size: .9rem; }
.calendar-day:hover:not(.disabled):not(.selected) { background: var(--primary-10); }
.calendar-day.disabled, .calendar-day.other-month { color: #bbb; cursor: not-allowed; }
.calendar-day.today { border: 2px solid var(--primary); }
.calendar-day.selected { background: var(--primary); color: #fff; }
.time-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.time-slot { padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; }
.time-slot:hover { border-color: var(--primary); }
.time-slot.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.time-slots-empty { grid-column: 1 / -1; color: var(--muted); }

/* platba */
.pay-amount { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.copy-grid { display: grid; gap: 4px; margin: 8px 0; }
.copy { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 6px; font-size: .86rem; }
.copy .k { color: var(--muted); }
html[lang="en"] .copy { grid-template-columns: 62px minmax(0, 1fr); }
/* hodnoty na kopírovanie (.copyable je v app.css) */
.copy .copyable { font-weight: 600; letter-spacing: -.01em; }
#ref .copyable { font-weight: 700; }
.qr { text-align: center; margin-top: 8px; }
.qr img { width: 200px; height: 200px; max-width: 100%; }

/* správy */
.history { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.history summary { cursor: pointer; font-weight: 600; }
.thread { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.thread li { max-width: 85%; padding: 10px 12px; border-radius: 12px; background: #f2f2f2; white-space: pre-line; }
.thread li.me { align-self: flex-end; background: var(--primary-10); }
.thread li small { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 2px; }

/* našepkávač (firma) */
.lookup { position: relative; }
.lookup-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); max-height: 300px; overflow: auto; }
.lookup-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.lookup-list li small { display: block; color: var(--muted); }
.lookup-list li.on, .lookup-list li:hover { background: var(--primary-10); }
.lookup-status { margin: 4px 0 0; font-size: .8rem; color: var(--muted); }
.lookup-status.warn { color: var(--warn); }
.lookup-status.ok { color: var(--ok); }

/* pätička */
/* pätička ako na webe (footer.css): tmavá, oranžový pruh hore, obsah na stred */
.site-footer { background: #1a1a1a; color: #ccc; border-top: 3px solid #DB4A2B; margin-top: 24px; text-align: center; }
.site-footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 28px; padding-bottom: 28px; }
.site-footer p { margin: 0; font-size: .9rem; line-height: 1.8; }
.footer-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.footer-links a { color: #ccc; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--primary); }
@media (max-width: 767px) { .footer-links { flex-direction: column; gap: .75rem; } }

/* ===================== admin ===================== */
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1023px) { .adm-grid { grid-template-columns: 1fr; } }
details.card > summary { cursor: pointer; font-weight: 700; }
details.card[open] > summary { margin-bottom: 10px; }
.reply { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.cal-layout { display: grid; grid-template-columns: 6fr 4fr; gap: 14px; align-items: start; }
@media (max-width: 1023px) { .cal-layout { grid-template-columns: 1fr; } }
.seg { display: inline-flex; border: 1px solid #ccc; border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--primary); color: #fff; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.week .col { border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-height: 180px; background: #fff; }
.week .col.today, .month .cell.today { border-color: var(--primary); }
.week .col h4, .month .cell h4 { margin: 0 0 6px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.month .wd { font-size: .75rem; color: var(--muted); text-align: center; font-weight: 600; }
.month .cell { border: 1px solid var(--line); border-radius: 8px; padding: 4px; min-height: 92px; background: #fff; overflow: hidden; }
.month .cell.out { background: #fafafa; opacity: .55; }
.ev { display: block; font-size: .75rem; line-height: 1.35; padding: 3px 5px; border-radius: 6px; margin: 2px 0; background: #f1f1f1; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.week .ev { white-space: normal; }
.month .ev { white-space: nowrap; }
.ev.confirmed { background: var(--ok-10); }
.ev.held { background: var(--warn-10); }
.ev.block { background: #eceff3; color: #555; }
.ev.holiday { background: #fdecef; color: #9b2c4a; }
@media (max-width: 700px) {
  .week { grid-template-columns: 1fr; }
  .week .col { min-height: 0; }
  .month .cell { min-height: 56px; }
  .month .ev { font-size: 0; height: 6px; padding: 0; }
}
.week .col.sel, .month .cell.sel { box-shadow: 0 0 0 2px var(--primary) inset; background: #fff8f4; }
.week .col, .month .cell { cursor: pointer; }
.day-log .day-ev { border-left: 4px solid #ccc; padding-left: 10px; }
.day-log .day-ev.confirmed { border-left-color: var(--ok); }
.day-log .day-ev.held { border-left-color: var(--warn); }
.day-log .day-ev.holiday { border-left-color: #9b2c4a; }
.day-log .gap-row { padding: 6px 10px; margin: 2px 0; border: 1px dashed var(--line); border-radius: 8px; background: #f7fbf8; color: #1f6b3a; font-size: .88rem; }
.tile.tile-wait { color: #9aa0a6; background: #f6f6f6; border-style: dashed; cursor: default; filter: grayscale(1); opacity: .8; }
.tile.tile-wait:hover { border-color: var(--line); background: #f6f6f6; }

/* časová os: počas úpravy fotiek sa aktuálny krok jemne napĺňa, nech je vidno, že na tom pracujeme */
ol.steps.working li.now::before { background: linear-gradient(90deg, var(--primary) 0 50%, #f6c3ae 50% 60%, #e3e3e3 60%); background-size: 200% 100%; animation: steps-work 2.4s ease-in-out infinite; }
@keyframes steps-work { 0% { background-position: 100% 0; } 50% { background-position: 60% 0; } 100% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { ol.steps.working li.now::before { animation: none; } }

/* súhlasy na stavovej stránke (odstúpenie, predĺženie hostingu, prosba o hodnotenie) */
.consent-checkbox { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.consent-checkbox input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--primary); }
#transportCard { border: 1px solid var(--warn); }
