/* 8Xbet Sportsbook Theme v2 – denser layout */
:root {
  --primary: #018CE7;
  --primary-dark: #0A3A6E;
  --primary-light: #4B9EEA;
  --bg: #0B1220;
  --bg-card: #111827;
  --bg-elevated: #1A2332;
  --border: #1F2A3C;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --green: #10B981;
  --red: #EF4444;
  --live: #EF4444;
  --radius: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Header */
.site-header {
  background: #060D18;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 16px;
}
.logo img { height: 32px; border-radius: 4px; }
.header-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.header-nav a {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  transition: .15s;
}
.header-nav a:hover,
.header-nav a.active {
  color: #fff;
  background: rgba(1,140,231,0.15);
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: .15s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: #0277c7; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-soft {
  background: rgba(1,140,231,0.15);
  color: var(--primary-light);
}
.btn-soft:hover { background: rgba(1,140,231,0.25); }

/* Main layout – sportsbook style */
.sportsbook {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 12px;
  padding: 12px;
  min-height: calc(100vh - 120px);
}
@media (max-width: 1100px) {
  .sportsbook { grid-template-columns: 1fr; }
  .sidebar-left, .sidebar-right { display: none; }
}

/* Left sidebar – sports */
.sidebar-left {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.sidebar-title {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.sport-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: .12s;
}
.sport-item:hover,
.sport-item.active {
  background: rgba(1,140,231,0.12);
  color: #fff;
}
.sport-item .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Center – main content */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hero strip */
.hero-strip {
  background: linear-gradient(135deg, #0A3A6E 0%, #062A50 100%);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid rgba(1,140,231,0.3);
}
.hero-strip h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 4px;
}
.hero-strip p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin: 0;
}
.hero-ctas { display: flex; gap: 8px; flex-wrap: wrap; }

/* Match list */
.match-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.section-header h2 {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.match-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: center;
  transition: .12s;
}
.match-row:hover { background: rgba(1,140,231,0.06); }
.match-row:last-child { border-bottom: none; }

.match-info {
  min-width: 0;
}
.match-league {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.match-teams {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.match-time.live { color: var(--live); font-weight: 700; }

.odds-group {
  display: flex;
  gap: 6px;
}
.odd-btn {
  min-width: 58px;
  padding: 8px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: .12s;
}
.odd-btn:hover {
  border-color: var(--primary);
  background: rgba(1,140,231,0.15);
}
.odd-label {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.odd-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
}

/* Markets pills */
.markets-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.pill {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
}
.pill.active {
  background: rgba(1,140,231,0.2);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Right sidebar – bet slip + register */
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.panel-header {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.panel-body { padding: 14px; }
.reg-form input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
}
.reg-form input::placeholder { color: var(--text-muted); }
.reg-form .btn { width: 100%; margin-top: 4px; }

.betslip-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.betslip-empty svg { margin-bottom: 8px; opacity: 0.4; }

/* Feature cards row */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 800px) {
  .features-row { grid-template-columns: repeat(2, 1fr); }
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.feature-card .icon { font-size: 1.4rem; margin-bottom: 6px; }
.feature-card h3 { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.feature-card p { font-size: 11px; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: #060D18;
  border-top: 1px solid var(--border);
  padding: 32px 16px 80px;
  margin-top: 24px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
.footer-brand p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  max-width: 1400px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* Mobile bottom nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #060D18;
  border-top: 1px solid var(--border);
  padding: 8px 0;
  z-index: 90;
  justify-content: space-around;
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: var(--text-muted);
  gap: 2px;
}
.mobile-nav a.active { color: var(--primary-light); }
@media (max-width: 1100px) {
  .mobile-nav { display: flex; }
  .site-footer { padding-bottom: 70px; }
}

/* Page content (inner pages) */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.text-muted { color: var(--text-muted); }
.badge-soft {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(1,140,231,0.15);
  color: var(--primary-light);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin: 2px;
}

/* Extra for new pages */
.entry-content p { margin-bottom: 14px; }
.entry-content a { color: var(--primary-light); }
textarea:focus, input:focus {
  outline: none;
  border-color: var(--primary) !important;
}
