/* Mobile-first sports odds page - v32 (In-card ARB panel professional redesign) */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', sans-serif; color: var(--text-primary); background: var(--bg-primary); }

.odds-page { background: var(--bg-primary); min-height: 100vh; padding-bottom: 60px; }

/* Hero Section */
.odds-hero {
  background: linear-gradient(135deg, #0f1923 0%, #1a2535 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
  text-align: center;
}
.odds-hero h1 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -1px; }
.odds-hero p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 16px; opacity: 0.9; }
.odds-updated { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Control Bar */
.odds-controls-wrap {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 1000;
}
.odds-controls-inner { max-width: 1100px; margin: 0 auto; }

.sport-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 12px;
}
.sport-tabs::-webkit-scrollbar { display: none; }
.sport-tab {
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sport-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.sport-tab.active { color: var(--accent-gold); border-bottom-color: var(--accent-gold); background: rgba(240,185,11,0.06); }
.sport-tab .tab-count { font-size: 0.75rem; background: var(--border); color: var(--text-muted); padding: 2px 8px; border-radius: 12px; }

.controls-row { display: flex; flex-wrap: wrap; padding: 12px 16px; gap: 16px; align-items: center; border-top: 1px solid var(--border); }
.control-item { display: flex; align-items: center; gap: 10px; }
.control-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; }
.control-input {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-primary); padding: 10px 14px; font-size: 0.9rem; font-family: inherit; outline: none;
}

/* Main Section */
.matches-section { padding: 32px 16px; }

/* Dual Hero Visibility */
.hero-desktop { display: none; }
.hero-mobile { display: block; }
@media (min-width: 768px) { .hero-desktop { display: block; } .hero-mobile { display: none; } }

/* --- Shared Hero Styling --- */
.arb-hero-label { font-size: 0.8rem; font-weight: 950; text-transform: uppercase; letter-spacing: 2.5px; color: #00c853; margin-bottom: 16px; }
.arb-hero-match { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 8px; }
.arb-hero-league { font-size: 0.9rem; font-weight: 700; color: var(--accent-gold); margin-bottom: 32px; text-transform: uppercase; opacity: 0.9; }

.hero-mobile .arb-hero { background: rgba(0,200,83,0.12); border: 1px solid rgba(0,200,83,0.3); border-radius: 20px; padding: 24px 16px; text-align: center; margin-bottom: 24px; }
.hero-mobile .arb-hero-match { font-size: 1.4rem; }
.hero-mobile .arb-hero-stakes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.hero-mobile .arb-stake { background: rgba(0,0,0,0.3); border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255,255,255,0.05); }

.hero-desktop .arb-hero { background: linear-gradient(135deg, rgba(0,200,83,0.18) 0%, rgba(0,200,83,0.08) 100%); border: 1px solid rgba(0,200,83,0.5); border-radius: 32px; padding: 28px 32px; text-align: center; max-width: 1000px; margin: 0 auto 28px; box-shadow: 0 25px 60px rgba(0,0,0,0.4); }
.hero-desktop .arb-hero-label { font-size: 1.6rem !important; margin-bottom: 16px; }
.hero-desktop .arb-hero-stakes { display: flex; gap: 20px; margin-bottom: 20px; justify-content: center; }
.hero-desktop .arb-stake { background: rgba(0,0,0,0.4); border: 1px solid rgba(0,200,83,0.25); border-radius: 20px; padding: 18px; flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }

.arb-stake-label { font-size: 0.8rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.arb-stake-bookie { font-size: 0.85rem; font-weight: 800; color: var(--accent-gold); }
.arb-stake-value { font-size: 1.5rem; font-weight: 950; color: #00c853; }

/* Match Cards */
.match-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; margin-bottom: 20px; overflow: hidden; transition: all 0.3s; }
.match-card:hover { border-color: rgba(255,215,0,0.3); transform: translateY(-3px); }
.match-card.has-arb { border-left: 5px solid #00c853; }

.match-header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.match-league { font-size: 0.75rem; font-weight: 900; text-transform: uppercase; color: var(--accent-gold); letter-spacing: 0.5px; }
.match-time { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.match-teams { padding: 20px; font-size: 1.25rem; font-weight: 900; color: #fff; }

.odds-row { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--border); background: rgba(0,0,0,0.1); }
.odds-cell { padding: 16px 10px; text-align: center; border-right: 1px solid var(--border); }
.odds-cell:last-child { border-right: none; }
.odds-cell.best { background: rgba(240,185,11,0.06); }
.odds-cell-label { font-size: 0.65rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; font-weight: 800; }
.odds-cell-value { font-size: 1.2rem; font-weight: 900; color: #fff; }
.odds-cell.best .odds-cell-value { color: var(--accent-gold); }

/* Card Arb Panel */
.arb-panel { background: rgba(0,200,83,0.08); border-top: 1px solid rgba(0,200,83,0.25); padding: 24px 20px; }
.arb-title { font-size: 0.8rem; font-weight: 900; text-transform: uppercase; color: #00c853; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.arb-stakes { display: flex; gap: 12px; margin-bottom: 20px; }
.arb-stake-card { background: rgba(0,200,83,0.12); border: 1px solid rgba(0,200,83,0.15); border-radius: 12px; padding: 12px; flex: 1; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.arb-stake-card .arb-stake-bookie { font-size: 0.65rem; }
.arb-stake-card .arb-stake-value { font-size: 1.1rem; }

.stake-input-wrap { background: rgba(0,0,0,0.2); border-radius: 16px; padding: 16px; margin-bottom: 16px; border: 1px solid var(--border); }
.stake-main-input { width: 100%; background: var(--bg-primary); border: 2px solid var(--border); color: var(--accent-gold); font-size: 1.6rem; font-weight: 900; padding: 12px; border-radius: 14px; text-align: center; outline: none; }

.roi-tag { padding: 4px 10px; border-radius: 8px; font-weight: 900; font-size: 0.8rem; background: rgba(0,200,83,0.2); color: #00c853; }

/* Q&A Section - FIXED COLORS & ALIGNMENT */
.odds-qa-section { padding: 80px 16px 60px; border-top: 1px solid var(--border); margin-top: 60px; background: rgba(0,0,0,0.15); }
.odds-qa-header { text-align: center; margin-bottom: 50px; }
.odds-qa-header h2 { font-size: 2.5rem; font-weight: 950; color: #fff; margin-bottom: 16px; }
.odds-qa-header p { font-size: 1.1rem; color: var(--text-secondary); opacity: 0.9; }

.qa-list { border: 1px solid var(--border); border-radius: 28px; overflow: hidden; max-width: 900px; margin: 0 auto; background: var(--bg-card); }
.qa-item { border-bottom: 1px solid var(--border); }
.qa-item:last-child { border-bottom: none; }
.qa-question {
  width: 100%; text-align: left; background: transparent; border: none;
  color: #fff; padding: 28px 32px; font-size: 1.15rem; font-weight: 800;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s;
}
.qa-question:hover { background: rgba(255,255,255,0.03); }
.qa-icon { color: var(--accent-gold); font-size: 1.5rem; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.qa-question.open .qa-icon { transform: rotate(45deg); }
.qa-answer { display: none; background: rgba(0,0,0,0.25); padding: 32px 40px; font-size: 1.1rem; line-height: 1.8; color: #cbd5e1; border-top: 1px solid var(--border); }
.qa-answer.open { display: block; }
.qa-answer p { margin-bottom: 16px; }
.qa-answer strong { color: #fff; font-weight: 900; }

/* Hub Grid */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; padding: 0 16px; }
.league-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 32px; text-decoration: none; transition: all 0.4s; display: flex; flex-direction: column; gap: 12px; }
.league-card:hover { border-color: var(--accent-gold); transform: translateY(-8px); background: rgba(240,185,11,0.04); }
.league-card-title { font-size: 1.6rem; font-weight: 900; color: #fff; margin-bottom: 4px; }
.league-card-meta { font-size: 1rem; color: var(--text-muted); font-weight: 600; }
.league-card-link { color: var(--accent-gold); font-weight: 900; font-size: 1rem; margin-top: auto; display: flex; align-items: center; gap: 8px; }

@media (min-width: 768px) {
  .odds-hero h1 { font-size: 3.5rem; }
  .sport-tabs { justify-content: center; }
  .controls-row { justify-content: center; max-width: 1000px; margin: 0 auto; }
}
@keyframes arb-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* v29 Hero Enhancements */
.hero-mobile .arb-hero { 
  padding: 32px 20px; 
  background: linear-gradient(180deg, rgba(0,200,83,0.15) 0%, rgba(0,0,0,0.3) 100%);
  border: 1px solid rgba(0,200,83,0.4);
}
.hero-mobile .arb-hero-match { font-size: 1.5rem; margin-bottom: 10px; }
.hero-mobile .arb-hero-league { margin-bottom: 24px; font-size: 0.85rem; }

.hero-mobile .arb-stake {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px;
  padding: 16px 20px;
}
.arb-stake-right {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.investment-label {
  font-size: 0.75rem; 
  font-weight: 800; 
  color: var(--text-muted); 
  text-transform: uppercase; 
  margin-bottom: 10px; 
  display: block;
}

.arb-hero-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.hero-profit {
  color: #00c853;
  font-weight: 950;
  font-size: 1.4rem;
}
.hero-roi {
  margin-top: 8px;
}
.hero-roi .roi-tag {
  font-size: 1rem;
  padding: 6px 16px;
}

.hero-desktop .arb-hero-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .hero-mobile .arb-stake { flex-direction: row !important; align-items: center !important; }
  .arb-stake-right { width: auto; gap: 20px; }
}

/* v31 — Desktop hero professional redesign: tight, compact, premium */
@media (min-width: 768px) {
  /* Card shell — tighter padding and correct desktop border-radius */
  .hero-desktop .arb-hero {
    padding: 20px 28px;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  /* Label — badge treatment, not subheading */
  .hero-desktop .arb-hero-label {
    font-size: 0.75rem !important;
    margin-bottom: 8px;
    letter-spacing: 2px;
  }

  /* Match name — reduce dominance */
  .hero-desktop .arb-hero-match {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }

  /* League — tighter gap before stakes */
  .hero-desktop .arb-hero-league {
    margin-bottom: 12px;
  }

  /* Stakes row — tighter gap, reduced margin */
  .hero-desktop .arb-hero-stakes {
    gap: 12px;
    margin-bottom: 12px;
  }

  /* Stake cards — ROW layout, no minimum width, equal flex */
  .hero-desktop .arb-stake {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: unset;
    flex: 1;
    padding: 10px 14px;
  }

  /* Stake value — slightly smaller */
  .hero-desktop .arb-stake-value {
    font-size: 1.1rem;
  }

  /* Input — smaller, tighter wrapper */
  .stake-input-wrap {
    max-width: 320px;
    margin: 0 auto 10px;
  }
  .stake-main-input {
    font-size: 1.1rem;
  }

  /* Footer — reduced margin-top, tighter gap */
  .hero-desktop .arb-hero-footer {
    margin-top: 8px;
    gap: 16px;
  }
  .hero-profit {
    font-size: 1.2rem;
  }
  .hero-roi .roi-tag {
    font-size: 0.85rem;
  }
}

/* v32 — In-card ARB panel professional redesign (used on sub-pages with match cards) */
.arb-panel .arb-title {
  font-size: 0.75rem;
  margin-bottom: 10px;
}
.arb-panel .arb-stake-card .arb-stake-bookie {
  font-size: 0.75rem;
}
.arb-panel .stake-main-input {
  font-size: 1.1rem;
}
.arb-panel-profit {
  font-size: 1.1rem;
  font-weight: 900;
  color: #00c853;
  text-align: center;
}

/* In-card ARB panel tighter spacing on desktop */
@media (min-width: 768px) {
  .arb-panel {
    padding: 16px 16px;
  }
  .arb-panel .arb-title {
    margin-bottom: 10px;
  }
  .arb-panel .arb-stakes {
    gap: 8px;
    margin-bottom: 12px;
  }
  .arb-panel .arb-stake-card {
    padding: 10px 8px;
  }
  .arb-panel .stake-input-wrap {
    margin-bottom: 10px;
  }
}
