/* ======================= */
/* FONTES E RESET BASICO */
/* ======================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  width: 100%;
}

/* ======================= */
/* GRID PRINCIPAL */
/* ======================= */
.odds-guru-page {
  display: grid;
  grid-template-columns: 1fr 3fr 1.5fr;
  gap: 20px;
  padding: 20px;
}

select {
  all: revert;
  background-color: #2b2d35;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

select:hover, select:focus {
  background-color: #3a3c46 !important;
  border-color: #ffb400 !important;
  outline: none !important;
  color: #fff;
}

/* seta do select personalizada */
select::-ms-expand {
  display: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* For Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ======================= */
/* LATERAL ESQUERDA - FILTROS */
/* ======================= */
.sidebar-left {
  background-color: #2b2d35;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  color: #fff;
  position: sticky;
  height: fit-content;
  top: 20px;
  align-self: start;
}

.sidebar-left h3 {
  all: revert;
  margin-bottom: 15px;
  color: #ffb400 !important;
  font-weight: 600;
}

.filter-group {
  all: revert;
  margin-bottom: 20px;
}

.filter-group h4 {
  all: revert;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #fff !important;
}

.filter-group label {
  display: block;
  font-size: 13px;
  color: #ccc !important;
  margin-bottom: 6px;
}

.filter-group span {
  font-size: small;
  text-align: justify;
  width: 100%;
  display: block;
}

.filter-group input {
  background-color: #333333;
  color: #fff;
  max-width: 70px;
}

.bookstype {
  text-align: left;
}

.range-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

input[type="range"] {
  width: 100% !important;
  margin: 0 10px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* --- Modal base --- */
.modal {
  display: none;
  position: fixed !important;
  z-index: 999 !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.7) !important;
}
.modal-content {
  background: #1c1c1c !important;
  color: #fff;
  padding: 20px !important;
  width: 400px !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
}
.modal-scroll {
  overflow-y: auto !important;
  flex: 1 !important;
  margin-top: 10px !important;
  border-top: 1px solid #333 !important;
  border-bottom: 1px solid #333 !important;
}
.modal-scroll label {
  all: revert !important;
  display: block !important;
  margin: 6px 0 !important;
}
.close {
  align-self: flex-end !important;
  cursor: pointer !important;
  font-size: 22px !important;
}
.apply-modal {
  margin-top: 15px !important;
  background: #ffb400 !important;
  border: none !important;
  padding: 10px !important;
  color: #000 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: bold !important;
}
.apply-modal:hover {
  background: #f90 !important;
}
.modal-toggle {
  background: #333 !important;
  color: #fff;
  border: none !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
}
.modal-toggle:hover {
  background: #444 !important;
}

.toggle-all {
  background: #555 !important;
  color: #fff;
  border: none !important;
  padding: 6px 10px !important;
  margin-top: 5px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  align-self: flex-start !important;
}
.toggle-all:hover {
  background: #666 !important;
}

/* BOTÃO MOBILE */
.filter-toggle {
  display: none !important;
  width: 100% !important;
  background: #222 !important;
  color: #fff;
  border: none !important;
  padding: 12px !important;
  font-size: 16px !important;
  text-align: left !important;
  cursor: pointer !important;
  border-radius: 6px !important;
}

/* ======================= */
/* CONTEÚDO CENTRAL */
/* ======================= */
.main-content {
  border-radius: 10px;
  padding: 0 25px 25px 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.main-content h2 {
  color: #111;
  font-weight: 700;
  margin-bottom: 5px;
}

.main-content .subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.bet-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bet-card {
  position: relative;
  background: #1e1f25;
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  transition: transform 0.2s ease;
  margin: 15px;
  font-size: small;
}

#odds-container {
  margin-top: -10px;
}

.bet-card:hover {
  border: 1px solid #0092f6;
}

.market_item {
  border-bottom: 1px dotted #fff;
}

/* Tooltip */
.bet-card .tooltip {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(20, 20, 25, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
  transition-delay: 0.3s;
}

/* Setinha do balão */
.bet-card .tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(20, 20, 25, 0.9) transparent;
}

/* Mostra o tooltip ao passar o mouse */
.bet-card__match:hover .tooltip {
  opacity: 1;
}

/* ======================= */
/* LATERAL DIREITA - CALCULADORA */
/* ======================= */
.surebets-calculator {
  position: sticky;
  top: 0;
  background: #1e1f26;
  color: #f5f5f5;
  padding: 1.2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  max-height: 900px;
}

.calc-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #1e90ff;
  margin-bottom: 1rem;
}

.th-columns{
  display: flex;
  flex-direction: row;
  color: #ccc;
  justify-content: space-between;
  padding: 0 25px 0 25px;
  height: 40px;
}

.th-columns h5{
  text-align: center !important;
  font-size: small !important;
  color: #ccc !important;
  line-height: 3 !important;
}

.match-info {
  text-align: center;
  margin-bottom: 1.2rem;
}

.match-name {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.match-date {
  font-size: 0.8rem;
  color: #999;
}

.match-countdown {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: #00ffcc;
  font-family: monospace;
}

.bet-countdown {
  font-size: 0.8rem;
  font-weight: bold;
  color: #00ffcc;
  font-family: monospace;
}

.expired {
  color: #ff5555;
  font-size: 1.0rem;
}

.calc-invest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1b1b1b;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.calc-field label {
  font-size: 0.75rem;
  color: #ffb400;
  margin-bottom: 0.2rem;
  text-align: center;
  font-weight: bolder;
}

.calc-field input {
  background: #222;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  width: 70px;
  padding: 0.4rem;
  text-align: center;
}

.calc-equal {
  color: #ccc;
  font-size: 1.2rem;
}

.calc-return-box {
  background: #1c8f67;
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
}

.calc-return-box label {
  font-size: 0.7rem;
  color: #e2ffe7;
}

.calc-section-title {
  font-size: 0.9rem !important;
  color: #aaa !important;
  font-weight: 600 !important;
  border-top: 1px solid #222 !important;
  font-style: italic !important;
  text-align: center !important;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.side-label {
  width: 40px;
  font-weight: 600;
}

.odd-input, .stake-input {
  background: #222 !important;
  font-size: 17px !important;
  color: #ffde00 !important;
  font-weight: 600 !important;
  border: 1px solid #333 !important;
  border-radius: 6px !important;
  width: 90px !important;
  text-align: center !important;
  padding: 0.4rem !important;
}

.x-label, .equal-label {
  color: #888;
  font-weight: 600;
}

.return-value {
  width: 70px;
  text-align: right;
  color: #1e90ff;
  font-weight: 600;
}

.calc-summary {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 0.8rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.calc-summary div {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.calc-summary .profit {
  color: #00c853;
  font-weight: 700;
}

.surebets-calculator.active {
  display: flex;
  opacity: 1;
}

.calc-close-btn {
  display: none;
  background: #444;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}

.calc-close-btn:hover {
  background: #666;
}

/* ======================= */
/* BET CARD */
/* ======================= */
.bet-card {
  background-color: #1e1f26;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  font-family: 'Inter', sans-serif;
}

.bet-card__header {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: #2b2d35;
  font-size: 14px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bet-card__auto-update span {
  font-weight: 500;
}

.bet-card__update {
  all: revert;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #ffb400, #a57506) !important;
  border: none !important;
  color: #000 !important;
  border-radius: 12px !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 10px rgba(0, 180, 216, 0.3) !important;
}

.bet-card__update:hover {
  background: linear-gradient(135deg, #a57506, #ffb400) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 14px rgba(0, 150, 199, 0.4) !important;
}

.bet-card__league {
  padding: 12px 18px;
  background-color: #30323c;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.bet-card__match {
  all: revert;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}

.bet-card__match a, a:hover, a:visited {
  color: #fff;
  text-decoration: none !important;
}

.market-odds a, a:hover, a:visited {
  color: #fff;
  text-decoration: none !important;
}

.bet-card__teams span {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.bet-card__odds {
  display: flex;
  gap: 12px;
}

.bet-card__odds .odd {
  background: #2b2d35;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  min-width: 60px;
  transition: all 0.2s ease;
}

.bet-card__odds .odd:hover {
  background: #3a3c46;
}

.bet-card__odds strong {
  display: block;
  font-size: 17px;
  color: #ffde00;
  font-weight: 600;
}

.copy_market {
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  color: #fff;
  text-align: center;
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
}

.odd_value {
  display: none;
}

hr{
  all: revert;
  margin: 0 !important;
}

.bet-card__market {
  align-items: justify;
}

.bet-card__market a, a:hover, a:visited{
  color: #fff;
  text-decoration: none;
}

/* feedback visual */
.copy_market.copiado {
  background: #14b8a6;
  color: #fff;
  border-radius: 6px;
}


/* Rodapé */
.bet-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 18px;
  background-color: #2b2d35;
  flex-wrap: wrap;
  gap: 8px;
}

.bet-card__footer .gain {
  background: #1c8f67;
  color: #fff;
  font-weight: bold;
  border-radius: 0 6px 6px 0;
  padding: 6px 12px;
}

.bet-card__footer .info {
  font-size: 13px;
  color: #fff;
  font-weight: bold;
  border-radius: 0 6px 6px 0;
  padding: 6px 12px;
}

.bet-card__footer .info:hover{
  color:#ffde00;
}

.bet-card__footer .new {
  background: #ffde00;
  font-size: 13px;
  color: #000;
  border-radius: 6px;
  padding: 6px 12px;
  animation: blink 3.5s ease-in-out 5;
}

.bet-card__footer .deadline {
  background: rgb(180, 26, 6);
  font-size: 13px;
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  animation: blink 5.5s ease-in-out 5;
}

.btn-calculate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 180, 216, 0.3);
}

.btn-calculate .icon {
  width: 20px;
  height: 20px;
  stroke: #fff;
  transition: transform 0.25s ease;
}

.btn-calculate:hover {
  background: linear-gradient(135deg, #0096c7, #005f73);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 150, 199, 0.4);
}

.btn-calculate:hover .icon {
  transform: rotate(-10deg) scale(1.1);
}

.btn-calculate:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 150, 199, 0.3);
}


@keyframes blink {
  0%, 100% { opacity: 1; }
  20%, 60%, 100% { opacity: 1; }
  10%, 50%, 90% { opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================= */
/* RESPONSIVIDADE */
/* ======================= */
.modal-content {
  width: 95%!important;
  max-width: 600px!important; /* padrão para mobile/tablet */
  margin: auto!important;
}

.modal-scroll {
  display: grid!important;
  grid-template-columns: 1fr!important; /* mobile */
  gap: 10px!important;
  max-height: 70vh!important;
  overflow-y: auto!important;
}

/* Tablet (>=768px) */
@media (min-width: 768px) {
  .modal-content {
    max-width: 95%!important;
  }
  .modal-scroll {
    grid-template-columns: repeat(2, 1fr)!important;
  }
}

/* Desktop grande (>=1200px) */
@media (min-width: 1200px) {
  .modal-content {
    max-width: 95%!important;
  }
  .modal-scroll {
    grid-template-columns: repeat(4, 1fr)!important;
  }
}

@media (max-width: 1024px) {
  .sidebar-right {
    display: none;
  }

  .filter-group span {
    display: grid;
  }
}

@media (max-width: 1200px) {
  .surebets-calculator {
    position: relative;
    font-size: x-small;
  }

  .bet-card {
    font-size: x-small;
  }
}

@media (max-width: 768px) {
  .odds-guru-page {
    grid-template-columns: 100% !important;
    padding: 0 !important;
  }

  .sidebar-left {
    order: 1;
    position: relative;
  }

  .main-content {
    order: 2;
    padding: 1px;
    margin-top: -40px !important;
  }

  .sidebar-right {
    order: 3;
    display: block;
    margin-top: 15px;
    position: relative;
  }

  .filter-section {
    width: 100%;
    margin-bottom: 20px;
  }

  select {
    display: block;
  }

  .bet-card__update {
    margin-top: 15px;
  }

  .filter-toggle {
    display: block !important;
  }

  .sidebar-left {
    background: #1b1b1b;
    padding: 16px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .sidebar-left.active {
    max-height: 900px;
    opacity: 1;
  }

  .calc-close-btn {
    display: block;
  }

}

@media (max-width: 480px) {
  .surebets-calculator {
    display: none;
  }

  .bet-card {
    border-radius: 0;
    margin: 45px 0;
  }

  .bet-card__match {
    padding: 10px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .bet-card__odds strong {
    font-size: 18px;
  }

  .bet-card__footer .drop {
    font-size: 13px;
  }
}/* estado padrão: desktop: calculadora como sidebar normal */

/* MOBILE/TABLET: calculadora vira modal flutuante */
@media (max-width: 1199px) {
  .surebets-calculator {
    position: fixed;
    inset: 0;
    margin: auto;
    max-width: 600px;
    max-height: 80vh;
    background: #1b1b1b;
    z-index: 9999;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    overflow-y: auto;
    display: none; /* começa escondida */
  }

  .surebets-calculator.modal-open {
    display: block;
  }

  /* fundo escurecido atrás do modal */
  .calc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    display: none;
  }

  .calc-backdrop.active {
    display: block;
  }
}

/* DESKTOP: garante que o modal não interfira */
@media (min-width: 1200px) {
  .calc-backdrop {
    display: none !important;
  }
}
