/* GEOCAMS-2026-11-06 — Geopolitical Cameras page.
   Estate tokens only (style.css :root): surfaces #0a0d0a/#0e130e,
   green #00e676 family, ink #f2f7f2, line rgba(0,230,118,.16).
   No purple, ever. Motion per DESIGN-LANGUAGE.md: M-01 press-sink
   (260ms spring), M-05 ease-out expand (350ms), M-09 capped stagger
   (motion.css), M-14 sliding filter indicator (200ms ease-out),
   filter glide 350ms ease-out. All motion collapses under
   prefers-reduced-motion (final block). */

/* ---------- featured viewer ---------- */
.gc-viewer { margin: 0 0 8px; }
.gc-stage {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: #000; border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden;
  box-shadow: 0 0 0 1px var(--bg), var(--shadow-2);
}
.gc-stage iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block; background: #000;
}
.gc-stage-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .4em;
  text-align: center; padding: 1.5em;
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(0,230,118,.07), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.gc-stage-title {
  font-family: var(--font-disp); font-weight: 700; font-size: 1.25em;
  color: var(--ink); margin: 0;
}
.gc-stage-empty .dim { margin: 0; }
.gc-opening {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--dim);
  font-family: var(--font-mono); font-size: .9em; letter-spacing: .06em;
  background: rgba(0,0,0,.55);
}
.gc-opening[hidden] { display: none; }

.gc-viewer-meta {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: .6em 1.4em;
  padding: .9em .2em 0;
  animation: gc-expand var(--dur-expand, 350ms) var(--ease-out);
}
.gc-viewer-meta[hidden] { display: none; }
@keyframes gc-expand {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.gc-viewer-id h2 { margin: 0; font-size: 1.45em; letter-spacing: -.01em; }
.gc-v-loc { margin: .25em 0 0; color: var(--dim); }
.gc-v-loc .gc-clock { color: var(--grn); font-family: var(--font-mono); font-size: .95em; }
.gc-v-src { margin: 0; color: var(--dim); font-size: .92em; }
.gc-close {
  font: inherit; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .5em 1.15em;
  transition: transform 260ms var(--spring, cubic-bezier(.34,1.56,.64,1)),
    background-color 180ms ease, border-color 180ms ease;
}
.gc-close:hover { background: rgba(0,230,118,.07); }
.gc-close:active { transform: scale(.95); }
.gc-offline {
  margin: .8em 0 0; padding: .8em 1em;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface); color: var(--txt);
}
.gc-offline[hidden] { display: none; }

/* ---------- category filters (M-14 sliding indicator) ---------- */
.gc-filters {
  position: relative; display: flex; flex-wrap: wrap; gap: .5em;
  margin: 1.6em 0 1.2em;
}
.gc-pill {
  position: relative; z-index: 1;
  font: inherit; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .5em 1.15em;
  transition: transform 260ms var(--spring, cubic-bezier(.34,1.56,.64,1)),
    color 180ms ease, border-color 180ms ease;
}
.gc-pill:hover { border-color: var(--grn); }
.gc-pill:active { transform: scale(.95); }
.gc-pill.is-active { color: #04150a; border-color: transparent; }
.gc-pill-ind {
  position: absolute; z-index: 0; top: 0; left: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #00e676, #00c853);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), var(--btn-shadow);
  opacity: 0; pointer-events: none;
  transition: transform 200ms var(--ease-out), width 200ms var(--ease-out),
    height 200ms var(--ease-out), opacity 140ms ease;
}
.gc-pill-ind.on { opacity: 1; }

/* ---------- camera grid ---------- */
.gc-grid {
  display: grid; gap: 1.1em;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.gc-card {
  background: var(--surf); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--card-highlight), var(--card-shadow);
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
}
.gc-card.gc-hide { opacity: 0; transform: translateY(8px); pointer-events: none; }
.gc-card[hidden] { display: none; }
.gc-card.is-now { border-color: var(--line-strong); }
.gc-open {
  display: block; width: 100%; padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
  transition: transform 260ms var(--spring, cubic-bezier(.34,1.56,.64,1));
}
.gc-open:active { transform: scale(.98); }
.gc-open:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.gc-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9;
  background: #000; overflow: hidden;
}
.gc-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gc-thumb-fallback {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 1em;
  font-family: var(--font-disp); font-weight: 700; color: var(--dim);
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(0,230,118,.07), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.gc-live {
  position: absolute; top: .6em; left: .6em;
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-mono); font-size: .68em; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: rgba(4,10,6,.78);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .3em .7em;
}
.gc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px rgba(0,230,118,.18);
}
.gc-play {
  position: absolute; right: .6em; bottom: .6em;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #00e676, #00c853); color: #04150a;
  font-size: .8em; padding-left: 2px;
  box-shadow: var(--btn-shadow);
  transition: transform 260ms var(--spring, cubic-bezier(.34,1.56,.64,1));
}
.gc-card:hover .gc-play { transform: scale(1.08); }
.gc-card:hover { border-color: var(--line-strong); }
.gc-body { display: block; padding: .85em 1em .95em; }
.gc-name {
  display: block; font-family: var(--font-disp); font-weight: 700;
  font-size: 1.02em; color: var(--ink); line-height: 1.25;
}
.gc-loc { display: block; color: var(--dim); font-size: .9em; margin-top: .15em; }
.gc-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8em; margin-top: .6em;
}
.gc-tag {
  font-family: var(--font-mono); font-size: .66em; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-deep); border: 1px solid var(--line);
  border-radius: 999px; padding: .28em .65em;
}
.gc-clock {
  font-family: var(--font-mono); font-size: .92em; color: var(--grn);
  font-variant-numeric: tabular-nums;
}
.gc-credit {
  /* GEOCAMS-FIX 2026-11-06: one line, always — the provider
     credit truncates with an ellipsis and the source link never
     wraps (it wrapped to two lines on long provider names). */
  margin: 0; padding: 0 1em .9em; color: var(--dim); font-size: .78em;
  display: flex; align-items: baseline; gap: .45em;
}
.gc-credit .gc-credit-src {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.gc-credit a { flex: none; white-space: nowrap; }
.gc-credit .gc-credit-sep { flex: none; }
.gc-poster-note {
  /* GEOCAMS-POLISH 2026-11-06: the designed-poster disclosure.
     The poster's own label line is printed on the image but sits
     in the crop zone of the card thumb's 16:9 frame, so the fact
     also rides here — small, mono, dim — where every visitor
     actually sees it. Renders only under designed posters. */
  margin: -.45em 0 0; padding: 0 1em .9em;
  color: var(--dim); font-size: .78em;
  font-family: var(--font-mono); letter-spacing: .04em;
}
.gc-card-offline {
  margin: 0; padding: 0 1em .9em; color: var(--txt); font-size: .85em;
}
.gc-card-offline[hidden] { display: none; }
.gc-empty { margin: 1.2em 0; }
.gc-empty[hidden] { display: none; }
.gc-about { margin-top: 2.4em; max-width: 760px; }
.gc-about p { color: var(--dim); line-height: 1.65; }

@media (max-width: 700px) {
  .gc-grid { grid-template-columns: 1fr; }
  .gc-viewer-meta { align-items: flex-start; flex-direction: column; }
}

/* Reduced motion: every pattern collapses to an instant change. */
@media (prefers-reduced-motion: reduce) {
  .gc-viewer-meta { animation: none; }
  .gc-pill-ind { transition: none; }
  .gc-card, .gc-open, .gc-close, .gc-pill, .gc-play { transition: none !important; }
}
