/* Kimmie's admin page (/admin/): made for a phone in one hand behind the counter.
   Uses the website's colors and buttons from style.css. */

body.admin { padding-bottom: 0; background: var(--cream); }
.card { background: var(--white); border-radius: 18px; padding: 20px; box-shadow: 0 8px 24px rgba(14, 42, 71, .1); }
.card-title { font-size: 1.7rem; text-transform: uppercase; margin: 0 0 6px; }
.hl { color: var(--sun); }
.muted { color: var(--muted); }
.btn-small { padding: .5em .9em; font-size: .9rem; }
.btn-line { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--navy); }
.btn-danger { background: var(--white); color: var(--red); border-color: rgba(217, 65, 43, .35); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.form { display: grid; gap: 14px; }

/* log in */
.login {
  min-height: 100svh; display: grid; place-items: center; padding: 20px;
  background:
    radial-gradient(700px 360px at 85% 110%, rgba(242, 134, 30, .45), transparent 60%),
    linear-gradient(180deg, #0b2440 0%, #123a63 60%, #1d5784 100%);
}
.login-card { width: min(400px, 100%); display: grid; gap: 16px; text-align: center; padding: 28px 24px; }
.login-brand { justify-content: center; color: var(--navy); }
.login-brand .brand-caps { color: var(--sun); }
.login-card h1 { font-size: 2.6rem; text-transform: uppercase; margin: 0; }
.login-card .form { text-align: left; }
.sub-title { font-size: 1.7rem; text-transform: uppercase; text-align: center; margin: 0; }
.remember { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.remember input { width: 22px; height: 22px; accent-color: var(--sun); }
.login-links { display: flex; justify-content: space-between; gap: 10px; }
.linkish { border: 0; background: none; padding: 6px 0; color: var(--river); font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.back-site { font-weight: 700; color: var(--muted); text-decoration: none; font-size: .95rem; }

/* the app */
.app { width: min(760px, 100%); margin: 0 auto; padding: 0 14px calc(100px + env(safe-area-inset-bottom)); }
.a-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  margin: 0 -14px 16px; padding: 10px 14px; background: rgba(14, 42, 71, .97); color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.a-top .brand-badge { width: 40px; height: 40px; }
.a-title { flex: 1; min-width: 0; line-height: 1.2; }
.a-title b { display: block; font: 700 1.3rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.a-title small { color: var(--sun2); font-weight: 700; }
.starter-pin {
  width: 100%; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--sun2);
  background: #fff4d6; color: #6b4300; font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.tab { display: grid; gap: 14px; }
.tip { margin: 14px 0 0; font-size: .88rem; color: var(--muted); }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.share code { padding: 10px 12px; border-radius: 8px; background: var(--cream); border: 1px solid var(--line); font-size: .92rem; word-break: break-all; }

.a-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--navy); box-shadow: 0 -6px 20px rgba(0, 0, 0, .2);
}
.a-tabs button {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 9px 2px; border: 0; background: none;
  border-radius: 12px; font: 600 .85rem/1 var(--head); text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255, 255, 255, .8); cursor: pointer;
}
.a-tabs svg { width: 24px; height: 24px; }
.a-tabs button[aria-current='page'] { color: var(--navy); background: var(--sunset); }
.badge {
  position: absolute; top: 4px; right: calc(50% - 26px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font: 700 .7rem/18px var(--body); font-style: normal;
}

/* Catch Wall photos */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ph { border-radius: 14px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; }
.ph img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sand); }
.ph .cap { margin: 8px 10px 0; font-weight: 700; font-size: .92rem; line-height: 1.3; }
.ph .cap.none { color: var(--muted); font-weight: 400; font-style: italic; }
.ph .acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 10px; margin-top: auto; }
.ph .acts .btn { padding: .4em .7em; font-size: .8rem; }
.cap-form { display: grid; gap: 8px; padding: 10px; }

/* reviews */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: .5em 1em; border-radius: 999px; border: 2px solid var(--line); background: var(--white);
  font: 600 .9rem/1 var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--navy); cursor: pointer;
}
.chip[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--white); }
#rev-list { display: grid; gap: 10px; }
.rev { padding: 14px 16px; border-radius: 14px; background: var(--white); border: 2px solid var(--line); display: grid; gap: 8px; }
.rev.held { border-color: var(--sun2); background: #fffaf0; }
.rev.hidden { opacity: .6; }
.rev header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.rev header b { font: 700 1.25rem/1.1 var(--head); text-transform: uppercase; color: var(--navy); }
.rev header small { display: block; color: var(--muted); }
.rev .stars-text { color: var(--sun); font-size: 1.15rem; letter-spacing: 2px; }
.rev p { margin: 0; white-space: pre-wrap; }
.rev .reply { padding: 10px 12px; border-left: 3px solid var(--sun); background: var(--cream); border-radius: 0 8px 8px 0; font-size: .95rem; }
.rev .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rev form { display: grid; gap: 10px; }
.rst { padding: 5px 9px; border-radius: 8px; font: 700 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.rst.shown { background: #dff5e7; color: #1f7a45; }
.rst.held { background: #fff0c7; color: #8a5a00; }
.rst.hidden { background: var(--sand); color: var(--muted); }

.walkup { padding: 0; }
.walkup summary {
  padding: 18px 20px; cursor: pointer; font: 700 1.2rem/1 var(--head); text-transform: uppercase; letter-spacing: .05em;
  color: var(--river); list-style: none;
}
.walkup summary::-webkit-details-marker { display: none; }
.walkup[open] summary { border-bottom: 1px solid var(--line); }
.walkup form { margin: 16px 20px 20px; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 80;
  padding: 12px 18px; border-radius: 12px; background: var(--navy); color: var(--white); font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 16px; }
}
