

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0f172a;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: min(900px, 92%);
  margin: 0 auto;
  padding: 24px 0 60px;
}

h1,
.page-title {
  text-align: center;
}

h2 {
  margin-top: 0;
}

.page-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

/* NAVBAR */
.navbar {
  background: #111;
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid #333;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 17px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.navbar a:hover,
.navbar a.active {
  background: #333;
}

/* HERO */
.hero {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #2b3548;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 20px auto;
  font-size: 1.1rem;
}

.hero img {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

/* CARDS */
.card,
.section {
  background: #1e293b;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* GRID / FORM */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 6px;
  font-weight: 700;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #0f0f0f;
  color: #fff;
}

/* BUTTONS */
button,
.btn,
.button {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: #f2b300;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

button:hover,
.btn:hover,
.button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn.secondary {
  background: #2d2d2d;
  color: #fff;
  border: 1px solid #444;
}

.button {
  background: #28a745;
  color: white;
  border-radius: 6px;
}

.button:hover {
  background: #218838;
}

/* CTA BUTTON GROUPS */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* PRESET BUTTONS */
.presets {
  margin-bottom: 15px;
}

.presets button {
  background: #1e293b;
  color: white;
  border: none;
  padding: 8px 14px;
  margin: 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.presets button:hover {
  background: #334155;
}

/* RESULTS */
.results .result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.result-item {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 14px;
}

.result-item span {
  display: block;
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 8px;
}

.result-item strong {
  font-size: 1.2rem;
}

.summary {
  margin-top: 18px;
  color: #ddd;
}

/* TABLES */
.strategy-table,
.strategy-chart {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  overflow: hidden;
}

.strategy-table {
  background: #1a1a1a;
  border-radius: 8px;
}

.strategy-table th,
.strategy-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.strategy-table th {
  background: #222;
}

.strategy-table tr:hover {
  background: #202020;
}

.strategy-chart {
  text-align: center;
  font-weight: bold;
}

.strategy-chart th,
.strategy-chart td {
  padding: 10px;
  border: 1px solid #333;
}

.strategy-chart th {
  background: #222;
}

/* STRATEGY MOVE COLORS */
.hit {
  background: #1f77b4;
  color: white;
}

.stand {
  background: #2ecc71;
  color: black;
}

.double {
  background: #f1c40f;
  color: black;
}

.split {
  background: #9b59b6;
  color: white;
}

.legend span {
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 6px;
  display: inline-block;
}

/* FOOTER */
.site-footer {
  margin-top: 70px;
  padding: 40px 20px;
  background: #111;
  color: #bbb;
  text-align: center;
  border-top: 1px solid #333;
  font-size: 14px;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin: 0 12px;
  font-size: 15px;
}

.footer-links a:hover {
  color: white;
}

.site-footer p {
  max-width: 700px;
  margin: 10px auto;
  line-height: 1.6;
}

.gambling-warning {
  color: #f2c94c;
}

.responsible a {
  color: #4ea3ff;
}

.copyright {
  color: #777;
  font-size: 12px;
  margin-top: 20px;
}

/* MOBILE */
@media (max-width: 768px) {
  .container {
    width: min(94%, 900px);
    padding: 20px 0 50px;
  }

  .page-title {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .navbar {
    gap: 10px;
  }

  .navbar a {
    font-size: 15px;
    padding: 7px 10px;
  }

  .strategy-table th,
  .strategy-table td,
  .strategy-chart th,
  .strategy-chart td {
    padding: 8px;
    font-size: 0.92rem;
  }
}