/* ookhq gallery - shared styles, consistent with the ookhq.com family. */
:root {
  --bg: #161412; --bg-raise: #1f1c19; --bg-card: #242019; --border: #3a342c;
  --text: #e8e2d8; --text-dim: #a89f90; --accent: #d8703c; --link: #e0956b;
  --ok: #6aa84f; --bad: #e05545;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, "Segoe UI", Roboto, sans-serif; line-height: 1.55;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--link); }
.site-header { background: var(--bg-raise); border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.crumbs { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.brand { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.03em; }
.brand a { color: inherit; text-decoration: none; }
.brand a:hover { color: var(--link); }
.brand span { color: var(--accent); font-weight: 400; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.who { font-size: 0.85rem; color: var(--text-dim); }

h1 { font-size: 1.6rem; margin: 1.6rem 0 0.4rem; }
.blurb { color: var(--text-dim); max-width: 70ch; }

.btn {
  display: inline-block; background: var(--accent); color: #1b1410;
  border: 1px solid var(--accent); border-radius: 8px; padding: 0.5rem 1.05rem;
  font-weight: 600; text-decoration: none; cursor: pointer; font-size: 0.95rem;
}
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: var(--bg-raise); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--accent); filter: none; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.filters { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 1rem 0; }
.chip {
  background: var(--bg-raise); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-dim); font-size: 0.82rem; padding: 0.2rem 0.75rem; cursor: pointer;
}
.chip.on { border-color: var(--accent); color: var(--text); background: var(--bg-card); }

.grid {
  columns: 3 280px;
  column-gap: 0.9rem;
  margin: 1.2rem 0 3rem;
}
.card {
  break-inside: avoid; margin-bottom: 0.9rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
}
.card a.view { display: block; }
.card img { display: block; width: 100%; height: auto; background: var(--bg-raise); cursor: zoom-in; }
.card .meta { padding: 0.55rem 0.8rem 0.7rem; }
.card .title { font-weight: 600; font-size: 0.95rem; }
.card .sub { color: var(--text-dim); font-size: 0.8rem; margin-top: 0.15rem; }
.cat {
  display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid var(--border); border-radius: 4px; padding: 0.05rem 0.4rem;
  color: var(--text-dim); margin-right: 0.4rem; vertical-align: middle;
}
.empty {
  color: var(--text-dim); border: 1px dashed var(--border); border-radius: 10px;
  padding: 2rem; text-align: center; margin: 2rem 0;
}

/* admin controls on gallery cards */
.card.is-hidden { opacity: 0.55; outline: 1px dashed #c9a227; }
.admin-ctl {
  display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap;
  margin-top: 0.5rem; border-top: 1px solid var(--border); padding-top: 0.5rem;
}
.admin-ctl button {
  background: var(--bg-raise); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 5px; padding: 0.15rem 0.6rem; font-size: 0.78rem; cursor: pointer;
}
.admin-ctl button:hover { border-color: var(--accent); color: var(--text); }
.admin-ctl button.del { color: #e0907f; border-color: #6b2a1f; }
.admin-ctl button.del:hover { background: #3d1712; }
.admin-ctl button[disabled] { opacity: 0.5; cursor: default; }
.admin-ctl .hidden-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #c9a227; }
.admin-ctl .up { font-size: 0.72rem; color: var(--text-dim); margin-left: auto; }

/* forms */
.panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.1rem 1.3rem; max-width: 34rem; margin: 1.2rem 0;
}
.panel label { display: block; font-size: 0.9rem; margin: 0.8rem 0 0.25rem; }
.panel input[type="text"], .panel select {
  width: 100%; background: var(--bg-raise); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); padding: 0.45rem 0.65rem; font-size: 0.95rem;
}
.hint { color: var(--text-dim); font-size: 0.78rem; margin-top: 0.2rem; }
.status { margin-top: 0.8rem; font-size: 0.9rem; min-height: 1.3em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--bad); }
.drop {
  border: 2px dashed var(--border); border-radius: 10px; padding: 1.6rem;
  text-align: center; color: var(--text-dim); cursor: pointer; margin-top: 0.4rem;
}
.drop.over, .drop:hover { border-color: var(--accent); }
.drop img { max-width: 100%; max-height: 260px; border-radius: 6px; }

.mine { margin: 2rem 0 3rem; }
.mine h2, .queue h2 { font-size: 1.1rem; }
.rowitem {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.5rem 0.8rem; margin-bottom: 0.5rem; flex-wrap: wrap;
}
.rowitem img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.rowitem .grow { flex: 1; min-width: 10rem; }
.rowitem .sub { color: var(--text-dim); font-size: 0.8rem; }
.st { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 4px; padding: 0.08rem 0.45rem; border: 1px solid var(--border); }
.st.pending { color: #d9c25e; border-color: #5c531e; background: #363011; }
.st.approved { color: #9bc98a; border-color: #33512a; background: #1c2b16; }

.site-footer { margin-top: 2rem; border-top: 1px solid var(--border); background: var(--bg-raise); padding: 1.2rem 0 1.5rem; }
.site-footer p { color: var(--text-dim); font-size: 0.85rem; }
