.homeContainer {
  /* min-height: 100vh; */
  background: url('../../assets/main-bg.jpg') center center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  width: 100%;
  padding-top: 0;
  padding-bottom: 100px;
  background-size: 100%;
  /* height: 100%; */
  max-height: 100%;
  /* padding-left: 4px;
  padding-right: 4px; */
}

/* Header Styles */
.header {
  background: #0f2327;
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.headerLeft {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menuButton {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 4px;
}

.logo {
  height: 40px;
}

.logoImage {
  height: 100%;
  width: auto;
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rulesButton {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.searchButton {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
}

.userSectionContainer {
  width: 100%;
  display: flex;
  min-width: 100px;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.userSection {
  text-align: center;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
}

.balance {
  font-weight: 600;
  font-size: 14px;
  margin: 0 5px;
}

/* Main Content */
.mainContent {
  background: url('../../assets/main-bg.jpg');
  padding: 10px 0;
  width: 100%;
}

.loadingContainer {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* In Play Section */
.inPlaySection {
  width: 100%;
  /* border-bottom: 1px solid #e0e0e0; */
}

.inPlayHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin-bottom: -10px;
}
.inPlayIcon {
  font-size: 18px;
  color: #2aa033;
  margin-left: 12px;
  margin-top: -2px;
}

.inPlayTitle {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 18px;
  color: #2aa033;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.openBets {
  font-size: 12px;
}

.openBetsLink {
  text-decoration: none;
  text-decoration: underline;
  font-weight: 500;
  font-size: 12px;
}

.openBetsLink:hover {
  text-decoration: underline;
}

/* Matches List */
.marketListing {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 10px;
  width: 100%;
  padding-left: 6px;
  padding-right: 6px;
}

.marketListItem {
  margin-bottom: 2px;
  padding-left: 11px;
  padding-right: 11px;
  background-color: #fff;
  border-radius: 2px;
  padding: 12px;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); */
  /* border: 1px solid #e8e8e8; */
}

.matchLink {
  color: #000;
  text-decoration: none;
  display: block;
  padding-bottom: 8px;
  /* border-bottom: 1px dashed #e0e0e0; */
  /* margin-bottom: 8px; */
}

.matchLink:hover,
.matchLink:focus,
.matchLink:active {
  color: #000;
  text-decoration: none;
}

.itemInner {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  margin-top: -10px;
}

.itemInner img {
  width: 18px;
  height: 18px;
}

.gameName {
  font-size: 16px;
  margin-left: 10px;
  vertical-align: middle;
  flex: 1;
  display: inline-block;
}

.vM {
  vertical-align: middle;
}

.eventsIcons {
  float: right;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.iconSpacing {
  margin-left: 5px;
}

.eventInfo {
  margin-top: 4px;
  margin-bottom: 0;
}

.eventInfo p {
  margin: 0;
  font-size: 12px;
  color: #7f8c8d;
}

.mainMarket {
  margin-top: 8px;
  margin-bottom: 0;
  /* padding-top: 8px; */
}

/* Market Table Styles (copied from NormalMarket) */
.market {
  margin-bottom: 10px;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
  border-radius: 4px;
  overflow: hidden;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}

/* Table Header */
.tableHeader {
  display: flex;
  margin-bottom: -12px;
  border-bottom: 1px solid #dee2e6;
}

.tableHeader > div {
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 6px 0;
  border: 0;
}

/* Table Body */
.tableBody {
  /* Table body styles */
}

.tableRow {
  display: flex;
  background-color: #fff;
  border-bottom: 1px solid #f2f2f2;
  align-items: center;
}

.tableRow > div {
  border: 0;
}

/* Box Widths */
.boxW4 {
  width: 40%;
  min-width: 40%;
  max-width: 40%;
  padding: 8px;
}

.boxW1 {
  width: 10%;
  min-width: 10%;
  max-width: 10%;
  color: #1F82D6 !important;
}

/* Country Name */
.countryName {
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
  font-size: 14px !important;
  text-align: left;
}

.teamName {
  display: block;
  margin-bottom: 0px !important;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
  font-weight: bold;
  font-size: 13px;
  line-height: 1.2;
}

.scoreInfo {
  margin: 0;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Float Utilities */
.floatLeft {
  float: left;
}

.floatRight {
  float: right;
}

.textRight {
  text-align: right;
}

.textUppercase {
  text-transform: uppercase;
}

.mB0 {
  margin-bottom: 0;
}

.vM {
  vertical-align: middle;
}

/* Ladder Icon */
.ladderIcon {
  width: 10px;
  object-fit: contain;
}

/* Bet Buttons */
.betButton {
  width: 100%;
  padding: 8px 4px;
  border: 1px solid #dee2e6;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  transition: all 0.2s ease;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.betButton .odd {
  font-weight: bold;
  font-size: 14px;
  /* color: #333; */

  color: #1F82D6;
}

.betButton span:last-child {
  font-size: 10px;
  color: #0f2327;
}

/* Lay and Back Styling */
.lay .betButton {
  background-color: #faa9ba;
  color: #1F82D6;
}

.back .betButton {
  background-color: #72bbef;
  color: #1F82D6 !important;
}

.back .betButton:hover {
  background-color: #90caf9 !important;
}

/* Min/Max Info */
.fancyMinMax {
  padding: 4px 8px;
  border-bottom: 1px solid #f2f2f2;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
  font-size: 11px;
  color: #666;
  display: flex;
  justify-content: space-between;
}

.fancyMinMax span {
  font-weight: bold;
  color: #333;
}

/* Light Background */
.lightBg {
  background-color: #f8f9fa;
}

.highlighted {
  background-color: #fff3cd;
}

/* Hidden Portrait (Mobile) */
.hiddenPortrait {
  display: block;
}

/* Responsive Design for Market */
@media screen and (orientation: portrait) {
  .boxW4 {
    width: 60%;
    min-width: 60%;
    max-width: 60%;
  }
  
  .boxW1 {
    width: 20%;
    min-width: 20%;
    max-width: 20%;
  }
  
  .hiddenPortrait {
    display: none;
  }
  
  .teamName {
    font-size: 12px;
  }
  
  .betButton {
    padding: 6px 2px;
    min-height: 52px;
  }
  
  .betButton .odd {
    font-size: 12px;
    color: #1F82D6;
  }
  
  .betButton span:last-child {
    font-size: 10px;
    margin-top: -2px !important;
  }
}

@media (max-width: 768px) {
  .tableHeader > div {
    font-size: 10px;
    padding: 4px 0;
  }
  
  .countryName {
    font-size: 12px !important;
  }
  
  .fancyMinMax {
    font-size: 10px;
    padding: 2px 4px;
  }
}
.arrowButton {
text-decoration: underline;
}

/* Active/Selected States */
.betButton.active {
  background-color: #007bff;
  color: white;
  border-color: #0056b3;
}

.betButton.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.matchHeader {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  margin-bottom: 8px;
}

.matchInfo {
  display: flex;
  /* align-items: center; */
  gap: 12px;
  flex: 1;
}

.matchIcon {
  font-size: 18px;
  width: 18px;
  text-align: center;
}

.matchDetails {
  flex: 1;
}

.matchTitle {
  font-size: 16px;
  /* font-weight: 600; */
  /* color: #2c3e50; */
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 400;
  color: black;
  cursor: pointer;
}

.matchDate {
  font-size: 12px;
  color: #7f8c8d;
  margin: 0;
}

.matchActions {
  display: flex;
  /* align-items: center; */
  gap: 8px;
  margin-top: -24px;
}

.bookingButton,
.oddsButton {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
  }
}

/* Odds Section */
.oddsSection {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
}

.teamsOdds {
  justify-content: space-between;
  margin-bottom: 12px;
}

.teamOdds {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.teamName {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

.teamScore {
  font-size: 12px;
  color: #7f8c8d;
}

.bettingOdds {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oddsRow {
  display: flex;
  gap: 8px;
}

.backOdds,
.layOdds {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border-radius: 1px;
  height: 40px;
  width: 78px;
  justify-content: center;
}

.backOdds {
  background: #72bbef;
}

.layOdds {
  background: #faa9ba;
}

.oddsValue {
  font-size: 10px;
  font-weight: 600;
  color: #008ae6;
}

.oddsAmount {
  font-size: 10px;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 10px 12px;
  }

  .headerRight {
    gap: 8px;
  }

  .userSection {
    padding: 4px 8px;
  }

  .balance {
    font-size: 12px;
  }

  .matchItem {
    padding: 12px;
  }

  .matchTitle {
    font-size: 14px;
  }

  .bettingOdds {
    gap: 2px;
  }

  .oddsRow {
    gap: 2px;
  }

  .backOdds,
  .layOdds {
    padding: 6px 2rem;
    min-height: 35px;
  }
}

@media (min-width: 769px) {
  .homeContainer {
    max-width: 100%;
    margin: 0 auto;
  }

  .bettingOdds {
    flex-direction: row;
    justify-content: space-between;
  }

  .oddsRow {
    flex: 1;
    max-width: 200px;
  }
}
