@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #0c0c0e;
  --surface: #141418;
  --surface-2: #1a1a20;
  --line: #2a2a32;
  --text: #e8e8ec;
  --muted: #8b8b96;
  --gold: #c9a227;
  --gold-dim: #8a7020;
  --accent: #3d8f6e;
  --live: #d64545;
}

* { box-sizing: border-box; }

body {
  font-family: "Heebo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* נגישות: מצב פוקוס ברור לכל רכיב אינטראקטיבי */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* נגישות: הפחתת אנימציות למשתמשים שמעדיפים זאת */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Realistic panels — flat, editorial */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.panel-header {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Gold opportunity — restrained, not neon AI */
.gold-strip {
  background: linear-gradient(90deg, #1a1810 0%, #141418 50%, #1a1810 100%);
  border: 1px solid var(--gold-dim);
  border-right: 3px solid var(--gold);
}

.gold-badge {
  background: #1f1c12;
  border: 1px solid var(--gold-dim);
  color: #e8d48a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.gold-badge-pulse {
  animation: gold-soft 2.5s ease-in-out infinite;
}

@keyframes gold-soft {
  0%, 100% { border-color: var(--gold-dim); }
  50% { border-color: var(--gold); box-shadow: 0 0 12px rgba(201, 162, 39, 0.15); }
}

.match-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.15s;
}

.match-row:hover { border-color: #3a3a44; }

.match-row.is-golden {
  border-color: var(--gold-dim);
  border-right-width: 3px;
  border-right-color: var(--gold);
}

.team-brief-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.85rem 1rem;
}

.upgrade-cta {
  background: linear-gradient(180deg, #1a1810 0%, var(--surface) 100%);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  padding: 1rem;
}

.locked-score {
  opacity: 0.45;
  border-style: dashed;
}

.locked-pick-placeholder {
  background: var(--surface-2);
}

.prose-block .prose-line {
  margin: 0 0 0.65rem;
  line-height: 1.65;
  font-size: 0.9rem;
}

.prose-block .prose-line:last-child {
  margin-bottom: 0;
}

.brief-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.brief-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.brief-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.banker-header {
  line-height: 1.4;
}

.banker-mark {
  text-align: center;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.banker-mark.ready {
  border-color: var(--gold-dim);
  background: linear-gradient(180deg, #1a1810 0%, var(--surface-2) 100%);
}

.banker-mark.caution {
  border-color: #5a3a3a;
  background: #1a1414;
}

.banker-mark-value {
  font-size: 3rem;
  font-weight: 800;
  color: #e8d48a;
  line-height: 1;
  margin: 0.25rem 0;
}

.premium-block {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.premium-block-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.premium-block-list {
  margin: 0;
  padding-right: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.premium-block-list li {
  margin-bottom: 0.35rem;
}

.odds-legend {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: var(--surface-2);
  border-radius: 2px;
  border: 1px solid var(--line);
}

.odds-legend-1,
.odds-legend-2 {
  font-weight: 800;
  color: #e8d48a;
}

.odds-legend-x {
  font-weight: 700;
}

.odds-legend-sep {
  margin: 0 0.25rem;
  opacity: 0.5;
}

.odds-btn {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
  transition: background 0.12s, border-color 0.12s;
  min-height: 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.odds-symbol {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #e8d48a;
}

.odds-role {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.odds-team-name {
  font-size: 0.65rem;
  line-height: 1.2;
  margin-top: 0.2rem;
  min-height: 0.85rem;
  color: var(--text);
}

.odds-value {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.pick-hero-map {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8d48a;
  line-height: 1.4;
}

.odds-btn:hover {
  background: #222228;
  border-color: #444;
}

.odds-btn.pick {
  border-color: var(--gold);
  background: #1f1c12;
  color: #e8d48a;
}

.analyst-box {
  background: var(--surface-2);
  border-right: 2px solid var(--accent);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #c8c8d0;
}

.league-sidebar {
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.country-block summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
}
.country-block summary::-webkit-details-marker { display: none; }

.league-item-active {
  background: #222228;
  border-right: 2px solid var(--accent);
  color: #fff;
}

.btn-action {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn-action:hover { filter: brightness(1.08); }

.ticker-item {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-left: 1px solid var(--line);
  font-size: 0.75rem;
  white-space: nowrap;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast-enter { animation: toast-in 0.3s ease-out; }

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--line);
  animation: pulse-skel 1.2s ease-in-out infinite;
}
@keyframes pulse-skel {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.flash-odds { outline: 1px solid var(--accent); outline-offset: 1px; }

.score-ring-wrap {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  margin-top: 0.35rem;
}

.score-ring-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.score-ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 2.5;
}

.score-ring-progress {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke 0.35s ease, stroke-dasharray 0.35s ease;
}

.score-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.score-ring-wrap.locked-score .score-ring-value {
  color: var(--muted);
}

.gold-insight-header {
  color: #c9a227 !important;
}

.gold-insight-list {
  margin: 0;
  padding-right: 1.1rem;
  line-height: 1.6;
  color: var(--text);
}

.gold-insight-list li {
  margin-bottom: 0.45rem;
}

.gold-insight-list li:last-child {
  margin-bottom: 0;
}

.banker-box.premium-banker-primary {
  border-color: var(--gold-dim);
  border-right-width: 3px;
  border-right-color: var(--gold);
}

.ticker-label {
  align-self: center;
}

/* המלצה ראשית — הדגשה למנוי בתשלום */
.pick-hero {
  background: linear-gradient(165deg, #1f1c12 0%, var(--surface) 55%, var(--surface-2) 100%);
  border: 1px solid var(--gold-dim);
  border-right: 4px solid var(--gold);
  border-radius: 6px;
  padding: 1.1rem 1rem 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.pick-hero-golden {
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(201, 162, 39, 0.14);
}

.pick-hero-banker {
  border-right-color: #7dce9a;
  background: linear-gradient(165deg, #121a14 0%, var(--surface) 60%, var(--surface-2) 100%);
}

.pick-hero-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.pick-hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.pick-hero-key {
  font-size: 4.25rem;
  font-weight: 900;
  line-height: 1;
  color: #e8d48a;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(232, 212, 138, 0.35);
}

.pick-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-align: right;
}

.pick-hero-pct {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pick-hero-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e8d48a;
  background: #1f1c12;
  border: 1px solid var(--gold-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.pick-hero-sub {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pick-hero-modal .pick-hero-key {
  font-size: 5.5rem;
}

.pick-hero-modal .pick-hero-pct {
  font-size: 2.5rem;
}

.pick-hero-modal {
  padding: 1.35rem 1.25rem;
}

/* שכבות מנוי מצטברות */
.tier-section {
  margin-bottom: 0.75rem;
}

.tier-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.45rem;
  padding-right: 0.15rem;
}

.tier-section-free .team-brief-box {
  border-color: var(--line);
  background: var(--surface);
}

.tier-section-gold .tier-section-label {
  color: #c9a227;
}

.tier-section-premium .tier-section-label {
  color: #7dce9a;
}

.tier-section-premium .banker-box {
  margin-bottom: 0;
}

.tier-section-locked {
  opacity: 1;
}

/* השוואת מנויים לפרסום */
.plans-table {
  border-collapse: collapse;
}

.plans-table th,
.plans-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  vertical-align: middle;
}

.plans-table th {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}

.plans-table tbody tr:hover {
  background: var(--surface-2);
}

.cmp-yes {
  color: #7dce9a;
  font-weight: 800;
  font-size: 1rem;
}

.cmp-no {
  color: #666;
}

.publish-snippet {
  background: var(--surface-2);
}

.publish-snippet .snippet-text {
  color: var(--text);
}

/* דף /plans */
.tier-card {
  display: flex;
  flex-direction: column;
  min-height: 12rem;
}

.tier-card-gold {
  border-color: var(--gold-dim);
  border-right-width: 3px;
  border-right-color: var(--gold);
}

.tier-card-premium {
  border-color: #3d6b52;
  border-right-width: 3px;
  border-right-color: #7dce9a;
}
