/* WorldCams — decoy portal stylesheet */
:root {
  --bg: #0b0f14;
  --panel: #121821;
  --panel-2: #171f2b;
  --line: #232c3a;
  --text: #e6edf3;
  --muted: #8b98a5;
  --accent: #4da3ff;
  --live: #ff4d4f;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.55;
}

.wrap { width: min(1160px, 92%); margin: 0 auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; gap: clamp(10px, 3vw, 28px);
  padding: 12px 0; flex-wrap: wrap;
}
.logo {
  font-weight: 800; font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text); letter-spacing: .3px; display: inline-flex; align-items: center;
}
.logo span { color: var(--accent); }
.logo-small { font-size: 17px; }
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--live); margin-right: 9px;
  box-shadow: 0 0 0 4px rgba(255, 77, 79, .18);
}
.site-nav { display: flex; gap: clamp(10px, 2.4vw, 22px); flex-wrap: wrap; }
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.search {
  margin-left: auto; min-width: 160px; flex: 0 1 240px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 13px; font-size: 14px; outline: none;
}
.search:focus { border-color: var(--accent); }
.search::placeholder { color: var(--muted); }

/* hero */
.hero {
  display: grid; gap: 20px;
  grid-template-columns: minmax(280px, 5fr) minmax(320px, 7fr);
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0 8px;
}
.hero-copy h1 {
  font-size: clamp(26px, 4.6vw, 44px);
  line-height: 1.15; margin: 0 0 12px;
}
.hero-copy > p { color: var(--muted); margin: 0 0 18px; max-width: 46ch; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
  font-size: 13px; color: var(--muted);
}
.chip-live { color: var(--text); display: inline-flex; align-items: center; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); display: inline-block; margin-right: 8px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, .45); }
  55%      { box-shadow: 0 0 0 6px rgba(255, 77, 79, 0); }
}
.worldclock { color: var(--muted); font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.worldclock b { color: var(--text); font-weight: 600; }
.featured-caption { color: var(--muted); font-size: 13px; grid-column: 2; margin: 0 0 8px; }

/* frames */
.cam-frame {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-2);
  aspect-ratio: 16 / 9;
}
.featured { box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.cam-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.thumb-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1b2432 0%, #10231e 60%, #231a2e 100%);
}
.thumb-fallback span { font-size: 44px; color: rgba(230, 237, 243, .5); }
.cam-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  background: rgba(10, 14, 19, .18);
  transition: background .15s ease;
}
.cam-play::before {
  content: ""; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(10, 14, 19, .62);
  border: 1px solid rgba(255, 255, 255, .28);
  position: absolute; z-index: 0; transition: transform .15s ease;
}
.cam-play:hover { text-decoration: none; background: rgba(10, 14, 19, .32); }
.cam-play:hover::before { transform: scale(1.07); }
.cam-frame.playing .cam-play { display: none; }
.cam-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.badge-live, .badge-rec {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  border-radius: 999px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  display: inline-flex; align-items: center;
}
.badge-live { background: rgba(255, 77, 79, .92); color: #fff; }
.badge-live .dot { background: #fff; margin-right: 6px; animation: none; }
.badge-rec { background: rgba(18, 24, 33, .92); color: var(--text); border: 1px solid var(--line); }

/* sections and grid */
.section { padding: clamp(26px, 4.5vw, 44px) 0 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.section-head h2, .about-text h2 { font-size: clamp(20px, 3vw, 26px); margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  background: var(--panel); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; cursor: pointer;
  transition: color .12s ease, border-color .12s ease;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { color: var(--text); border-color: var(--accent); }

.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(430px, 100%), 1fr)); }

.cam-card { display: flex; flex-direction: column; gap: 10px; }
.cam-meta h3 { margin: 2px 0 2px; font-size: 16.5px; }
.cam-meta p { margin: 0; color: var(--muted); font-size: 13.5px; }
.cam-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; font-size: 13px;
}
.viewers { color: var(--muted); }
.cam-row a { color: var(--accent); }
.empty { color: var(--muted); padding: 18px 0 30px; }

/* about text */
.about-text {
  padding-bottom: clamp(30px, 5vw, 50px);
  max-width: 76ch;
}
.about-text p { color: var(--muted); }
.about-text h2 { margin-bottom: 12px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  background: var(--panel);
}
.footer-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 26px 0; flex-wrap: wrap;
}
.footer-note { color: var(--muted); font-size: 13px; max-width: 52ch; margin: 8px 0 0; }
.footer-nav { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); }

/* static pages */
.page-head { padding: clamp(26px, 5vw, 46px) 0 4px; }
.page-head h1 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 10px; }
.page-body { max-width: 76ch; padding-bottom: clamp(30px, 5vw, 50px); }
.page-body p, .page-body li { color: var(--muted); }
.page-body h2 { font-size: 19px; margin: 26px 0 8px; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .featured-caption { grid-column: 1; }
}
@media (max-width: 640px) {
  .search { flex-basis: 100%; order: 3; margin-left: 0; }
  .grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
}
