/* xbowlingclub.cz – klubová aplikace (navazuje na site.css: barvy, tlačítka). Telefon napřed, dole lišta záložek. */
body.app { background: var(--bg); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.app-top { position: sticky; top: 0; z-index: 5; background: #fff; color: var(--ink); box-shadow: 0 1px 0 #e3e8f2; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.app-top .brand__logo { height: 38px; width: auto; }
.app-nav { display: none; gap: 20px; }
.app-nav a { color: var(--blue-dark); text-decoration: none; font-weight: 600; opacity: .85; }
.app-nav a.is-on { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.app-main { max-width: 720px; margin: 0 auto; padding: 16px; }
.app-loading { color: var(--muted); }
.app-h1 { font-size: 26px; margin: 8px 0 2px; color: var(--blue); font-weight: 900; }
.app-h1row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.notice { background: #fff3e8; border-left: 4px solid var(--orange); padding: 10px 12px; border-radius: 10px; margin: 12px 0 0; }
.notice a { color: var(--orange-dark); font-weight: 700; text-decoration: none; }

.card { background: #fff; border-radius: 16px; padding: 14px 16px; margin: 0 0 12px; box-shadow: 0 2px 10px rgba(13,27,61,.05); }
.card p { margin: 6px 0; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--ghost-blue { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn--danger { background: #fff; color: #b42318; border: 1.5px solid #f1b5ae; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
button.btn { cursor: pointer; font: inherit; font-weight: 700; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.link--danger { color: #b42318; }

/* akce */
.ev { border-left: 5px solid var(--blue); }
.ev--zavod { border-left-color: var(--orange); }
.ev--jine { border-left-color: #7a3fd1; }
.ev--cancelled { opacity: .7; border-left-color: #b9c0d0; }
.ev__head { display: block; text-decoration: none; color: inherit; }
.ev__type { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ev__title { display: block; font-size: 18px; margin: 2px 0; }
.ev__when { display: block; color: var(--muted); font-size: 14px; }
.ev__note { display: block; margin-top: 6px; font-size: 14px; white-space: pre-line; }
.ev__cancel { display: inline-block; margin-top: 6px; background: #fde8e7; color: #b42318; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 6px; }
.ev--cancelled .ev__title { text-decoration: line-through; }
.rsvp { display: flex; gap: 8px; margin-top: 12px; }
.rsvp__btn { flex: 1; padding: 12px 0; border-radius: 12px; border: 1.5px solid #d8deea; background: #f4f6fb; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.rsvp__btn--yes.is-on { background: #2bb24c; border-color: #2bb24c; color: #fff; }
.rsvp__btn--no.is-on { background: #e5322d; border-color: #e5322d; color: #fff; }
.rsvp__note, .rsvp__ask { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.rsvp__ask { color: var(--orange-dark); font-weight: 600; }
.ev__count { margin-top: 10px; font-size: 12px; color: var(--muted); }
.bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 6px; background: #eef1f7; }
.bar i { display: block; flex: 0 0 auto; flex-basis: 0; }
.bar__yes { background: #2bb24c; } .bar__no { background: #e5322d; } .bar__none { background: #d8deea; }

/* lidé u akce */
.people { padding: 4px 16px; }
.person { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #eef1f7; }
.person:last-child { border-bottom: 0; }
.person__name { font-weight: 700; }
.person__note { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.person__att { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eef1f7; color: var(--muted); white-space: nowrap; }
.tag--yes { background: #e3f6e8; color: #17663a; }
.tag--no { background: #fde8e7; color: #b42318; }
.chip { border: 1.5px solid #d8deea; background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chip.is-on { color: #fff; }
.chip--byl.is-on { background: #2bb24c; border-color: #2bb24c; }
.chip--nebyl.is-on { background: #e5322d; border-color: #e5322d; }
.chip--omluven.is-on { background: var(--orange); border-color: var(--orange); }
.chip--small { border-style: dashed; }

/* zprávy */
.post__meta { font-size: 13px; color: var(--muted); }
.post__meta b { color: var(--ink); }
.post__text { font-size: 16px; }

/* formuláře */
.form label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0; }
.form input:not([type=checkbox]), .form select, .form textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1.5px solid #d8deea; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form fieldset { border: 0; padding: 0; margin: 10px 0; }
.form legend { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 6px 0; }
.form .check[hidden] { display: none; }
.checks { max-height: 280px; overflow-y: auto; border: 1px solid #eef1f7; border-radius: 10px; padding: 4px 10px; }
.login { max-width: 420px; margin: 24px auto; }
.login h1 { margin: 0 0 4px; color: var(--blue); }
.menu { padding: 0; }
.menu a { display: block; padding: 14px 16px; border-bottom: 1px solid #eef1f7; text-decoration: none; font-weight: 600; }
.menu a:last-child { border-bottom: 0; }
.series { font-size: 15px; }

/* spodní lišta */
.app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-top: 1px solid #e3e8f2; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.app-tabs[hidden] { display: none; }
.app-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--muted); padding: 4px 0; }
.app-tabs a.is-on { color: var(--blue); }
.app-tabs__ic { width: 24px; height: 24px; border-radius: 7px; border: 2px solid currentColor; position: relative; }
.app-tabs__ic--dnes::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: currentColor; }
.app-tabs__ic--kal::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 2px solid currentColor; }
.app-tabs__ic--msg { border-radius: 8px 8px 8px 2px; }
.app-tabs__ic--more { border: 0; }
.app-tabs__ic--more::before { content: "• • •"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; letter-spacing: -1px; }
.app-tabs a.is-on .app-tabs__ic { background: rgba(0,60,156,.08); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 9; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast--bad { background: #b42318; }

@media (min-width: 861px) {
  body.app { padding-bottom: 24px; }
  .app-nav { display: flex; }
  .app-nav[hidden] { display: none; }
  .app-tabs { display: none !important; }
  .toast { bottom: 24px; }
}

/* rodiče: odpověď za dítě, pozvánky */
.rsvp__who { margin: 12px 0 -4px; font-weight: 700; font-size: 14px; }
.check-inline { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check-inline .person__note { margin-left: 4px; }
.invite-bar { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); margin: 8px 0 12px; }
.invite-bar .btn { width: 100%; box-shadow: 0 6px 18px rgba(0,60,156,.25); }
.invite-link { font-family: ui-monospace, Menlo, monospace; font-size: 13px; word-break: break-all; background: var(--bg); padding: 8px 10px; border-radius: 8px; }
@media (min-width: 861px) { .invite-bar { bottom: 12px; } }
