:root {
  --bg: #0a1020;
  --bg-soft: #121d38;
  --panel: #11192e;
  --panel-soft: #0f1729;
  --line: #273556;
  --text: #eaf0ff;
  --muted: #b2bfdc;
  --accent: #51e6c8;
  --accent-2: #ffbf62;
  --danger: #ff7a7a;
  --hold: #ffd17d;
  --bad: #ff9f9f;
  --radius: 14px;
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(900px 460px at 100% -10%, #2f4d8c 0%, transparent 60%),
    radial-gradient(860px 460px at -12% 18%, #1f616d 0%, transparent 52%),
    linear-gradient(165deg, var(--bg) 0%, #080f1d 100%);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(8, 14, 29, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.lang-select {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 8px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 10px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.9rem;
}

.top-nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.26);
}

main.container {
  padding: 22px 0 44px;
}

.hero,
.section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px;
  background: linear-gradient(120deg, rgba(81, 230, 200, 0.11), rgba(255, 191, 98, 0.1));
}

.eyebrow {
  margin: 0 0 8px;
  color: #98e3d0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4.1vw, 2.9rem);
}

h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
}

h3 {
  font-size: 1.02rem;
}

p,
li,
figcaption,
th,
td {
  color: var(--muted);
}

.hero-sub {
  margin: 0 0 10px;
  max-width: 78ch;
}

.hero-note {
  margin: 0;
  max-width: 78ch;
}

.status-callout {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 4px solid var(--danger);
  border-radius: 10px;
  background: rgba(255, 122, 122, 0.12);
  color: #ffd8d8;
  font-weight: 700;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  color: #071326;
}

.button.primary {
  background: linear-gradient(90deg, var(--accent), #8ef8e3);
}

.button.secondary {
  background: linear-gradient(90deg, var(--accent-2), #ffd89b);
}

.section {
  margin-top: 16px;
  padding: 18px;
  background: var(--panel-soft);
}

.section-intro {
  margin-top: 0;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.status-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.status-card h3 {
  margin-bottom: 4px;
}

.status-card.held h3 {
  color: var(--hold);
}

.status-card.broken h3 {
  color: var(--bad);
}

.bullet-list {
  margin: 8px 0 0 18px;
  padding: 0;
}

.bullet-list.compact li {
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.results-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.results-table th,
.results-table td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.results-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.small-note {
  margin-top: 10px;
  font-size: 0.92rem;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.shot-card {
  position: relative;
}

figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.shot-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-width: 32px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(7, 19, 38, 0.75);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  padding: 9px 10px;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 26px;
}

.site-footer p {
  margin: 0;
  color: #95a7ce;
  font-size: 0.9rem;
}

.footer-link {
  color: #95a7ce;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--text);
}

/* RTL support */
html[dir="rtl"] body {
  font-family: "Noto Sans Hebrew", "Rubik", "Segoe UI", sans-serif;
}

html[dir="rtl"] .header-inner,
html[dir="rtl"] .top-nav,
html[dir="rtl"] .hero-cta {
  direction: rtl;
}

html[dir="rtl"] .results-table th,
html[dir="rtl"] .results-table td {
  text-align: right;
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1120px, 94vw);
  }

  .masonry {
    grid-template-columns: 1fr;
  }

  .results-table {
    min-width: 640px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
