/* POSEIDON — site public. Mobil-first, simplu, lizibil. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #1f2937;
  background: #f9fafb;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Banner legal — vizibil sus */
.legal-banner {
  background: #fef3c7;
  color: #78350f;
  text-align: center;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-bottom: 1px solid #fde68a;
  font-weight: 500;
}

/* Header */
header {
  background: linear-gradient(135deg, #0c1e4f 0%, #1e3a8a 45%, #2e4dbf 100%);
  color: #fff;
  padding: 24px 0 0;
  position: relative;
  overflow: hidden;
}
header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Brand identity — POSEIDON MARE, vizibil clar pe fond albastru */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
  position: relative;
  padding: 8px 0 4px;
}
.brand-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 10px rgba(251, 191, 36, 0.5));
  animation: trident-glow 3s ease-in-out infinite;
}
@keyframes trident-glow {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 2px 10px rgba(251, 191, 36, 0.5)); }
  50% { transform: scale(1.06) rotate(-3deg); filter: drop-shadow(0 4px 16px rgba(251, 191, 36, 0.8)); }
}

/* POSEIDON — text MARE, alb solid cu glow auriu (NU gradient shine care arată ca roșu stins) */
.brand-name {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(251, 191, 36, 0.55),
    0 0 36px rgba(251, 191, 36, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.35);
  line-height: 1;
}

.brand-pulse {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 14px #10b981, 0 0 26px rgba(16, 185, 129, 0.55);
  animation: pulse 1.8s ease-in-out infinite;
  margin-left: 6px;
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

.tagline {
  color: #dbeafe;
  font-size: 0.95rem;
  margin-top: 12px;
  letter-spacing: 0.3px;
}
.tagline strong { color: #fbbf24; font-weight: 700; }

@media (max-width: 600px) {
  .brand-name { font-size: 2.3rem; letter-spacing: 3px; }
  .brand-icon { font-size: 2.4rem; }
  .tagline { font-size: 0.82rem; margin-top: 10px; }
  .brand { gap: 10px; }
}
nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
nav a {
  padding: 10px 14px;
  color: #c7d2fe;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-size: 0.95rem;
}
nav a.active {
  color: #fff;
  border-bottom-color: #fbbf24;
  font-weight: 600;
}
nav a:hover { color: #fff; }
nav a.patreon {
  margin-left: auto;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-weight: 700;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6);
  animation: patreon-pulse 2.4s ease-in-out infinite;
  position: relative;
}
nav a.patreon::after {
  content: "♥";
  margin-left: 4px;
  color: #be123c;
  font-size: 0.85rem;
}
nav a.patreon:hover {
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  transform: translateY(-1px);
}
@keyframes patreon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); }
}

/* Support CTA — secțiune vizibilă SUS pe pagina principală (înainte de meciuri) */
.support-cta {
  margin: 0 0 24px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #1e40af 100%);
  color: #fff;
  padding: 32px 24px 28px;
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.25);
}
.support-cta::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.support-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.6));
  margin-bottom: 4px;
  animation: trident-glow 3s ease-in-out infinite;
}
.support-cta h2 {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.4);
}
.support-tagline {
  font-size: 1.05rem;
  color: #dbeafe;
  margin-bottom: 22px;
}
.support-tagline strong { color: #fbbf24; }

.support-reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 0 auto 26px;
  max-width: 720px;
  text-align: left;
}
.reason {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid #fbbf24;
}
.reason-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 4px;
}
.reason strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.reason span {
  display: block;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.4;
}

.support-btn {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.3px;
}
.support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.65);
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}
.support-note {
  color: #93c5fd;
  font-size: 0.8rem;
  margin-top: 12px;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .support-cta { padding: 24px 18px 22px; }
  .support-cta h2 { font-size: 1.55rem; }
  .support-tagline { font-size: 0.95rem; }
  .support-btn { padding: 12px 18px; font-size: 0.95rem; }
}

/* Main */
main { padding: 24px 0 60px; }
h2 { font-size: 1.4rem; margin-bottom: 8px; color: #1e3a8a; }
h3 { font-size: 1.15rem; margin: 24px 0 10px; color: #1e3a8a; }
p { margin-bottom: 10px; }
.muted { color: #6b7280; font-size: 0.9rem; }

/* Intro */
.intro {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Trust line — bandă vendabilă cu cifre cheie */
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  border-radius: 8px;
}
.trust-item {
  flex: 1 1 auto;
  font-size: 0.8rem;
  text-align: center;
  padding: 4px 6px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.trust-item:last-child { border-right: none; }
.trust-item strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fbbf24;
  line-height: 1.2;
}
@media (max-width: 600px) {
  .trust-line { flex-direction: column; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .trust-item:last-child { border-bottom: none; }
}

/* Filters */
.filters {
  background: #fff;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #374151;
}
.filters label.cb {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.filters select {
  padding: 6px 8px;
  font-size: 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
}

.match-count {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 8px 0 12px;
}

/* Match card — versiune dens, "opt 5" style */
.match {
  background: #fff;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid #1e3a8a;
  transition: box-shadow 0.2s, transform 0.1s;
}
.match:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}
.match.uncalibrated { border-left-color: #f59e0b; }

.match-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.match-title { flex: 1; min-width: 0; }
.match-teams {
  font-weight: 700;
  font-size: 1.08rem;
  color: #0f172a;
  line-height: 1.3;
}
.match-teams .vs {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0 4px;
}
.match-meta {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.match-meta .liga { color: #475569; font-weight: 500; }
.match-meta .when { color: #64748b; }

/* Pick badges (vendabil — semnal vizual pe alegerile dominante) */
.picks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
}
.pick-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.pick-badge.pick-elite { background: linear-gradient(135deg, #065f46, #047857); color: #fff; }
.pick-badge.pick-strong { background: linear-gradient(135deg, #047857, #10b981); color: #fff; }
.pick-badge.pick-good { background: #d1fae5; color: #065f46; }

/* xG section */
.xg-section {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.xg-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 6px;
}
.xg-bar {
  position: relative;
  height: 22px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
.xg-bar-h {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  height: 100%;
  transition: width 0.3s;
}
.xg-bar-a {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  height: 100%;
}
.xg-bar-labels {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  pointer-events: none;
}
.score-prob {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.9rem;
}
.score-label { color: #64748b; font-size: 0.78rem; }
.score-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.score-pct { color: #64748b; font-size: 0.82rem; }

/* Phase rows (FT / HT) */
.phase-row {
  margin-bottom: 10px;
}
.phase-row.ft { }
.phase-row.ht {
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}
.phase-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}
.phase-row.ht .phase-label { color: #7c3aed; }
.muted-xs {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 400;
  margin-left: 6px;
}

.warn-tag {
  display: inline-block;
  background: #fef3c7;
  color: #78350f;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
}
.ok-tag {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
}

.markets, .markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 6px;
}
.market {
  background: #f8fafc;
  padding: 7px 6px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
  border: 1px solid transparent;
  transition: background 0.15s;
}
.market:hover { background: #f1f5f9; }
.market.pick {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #10b981;
}
.market.score-ht {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
}
.market .label {
  color: #64748b;
  font-size: 0.7rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.market .val {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
  margin-top: 2px;
  display: block;
}
.market .val.high { color: #065f46; }
.market .val.low { color: #991b1b; }
.market .raw-note {
  display: block;
  font-size: 0.7rem;
  color: #6b7280;
  font-style: italic;
  margin-top: 2px;
}

.xg-row {
  background: #eef2ff;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 8px 0;
}

/* Calibration tables (track record) */
.calibration-card {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid #f3f4f6; }
th:first-child, td:first-child { text-align: left; }
th { background: #f9fafb; color: #374151; font-weight: 600; }
tr:hover { background: #f9fafb; }

.card-info {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 12px 0;
}

/* Footer */
footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 40px;
}
footer p { margin-bottom: 6px; }
footer strong { color: #fff; }
footer a { color: #93c5fd; }

/* Mobile */
@media (max-width: 600px) {
  header h1 { font-size: 1.3rem; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters label { width: 100%; }
  nav a.patreon { margin-left: 0; }
}
