/* ===============================
   Global Variables
   =============================== */
:root {
    --primary-color: #f99136;
    --terciary-color: #282e3e;
    --secondary-color: #1c202b;
    --background-color: #11141c;
    --text-color: white;
    --text-secondary-color: #a8acad;
    --border-color: #5c616d;
    --live-badge-color: #f90643;
    --btn-active: #fb8c33;
}

/* ===============================
   Global Layout and Structure
   =============================== */
html, body, #website, .app-container, .app, #app-main{
    /* height: 100%; */
}

html {
    /* height: 100%; */
}

body {
    /* height: 100%; */
    /* overflow-y: clip; */
    background-color: var(--background-color);
}

#website {
    display: flex;
    flex-direction: column;
    background-color: var(--background-color)
}

#app-container {
    /* height: 100%; */
}

/* ===============================
   Component: Carousel Button Group
   =============================== */
.btn-group-scroll {
    overflow-x: scroll;
    gap: 8px;
}

.btn-group-carousel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 16px;
    background-color: var(--background-color);
    color: white;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    min-width: fit-content;
}

.btn-group-carousel.active {
    background-color: #2d282b;
    border-color: #fb8c33;
    color: #fb8c33;
}

.text-wrapper {
    position: relative;
    display: inline-block;
    text-align: left;
}

div#bilhete-body {
    color: #fff !important;
}
/* ===============================
   Component: Bottom Menu
   =============================== */
#bottom-menu {
    background-color: #2b2626;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.bottom-menu-button {
    border: none;
    color: white;
    background-color: transparent;
}

.bottom-menu-center-button {
    border-radius: 50%;
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    border: 1px solid black;
    color: black;
}

/* ===============================
   Responsive Visibility Utilities
   =============================== */
.is-responsive {
    display: none;
}

@media (max-width: 768px) {
    .is-responsive {
        display: block;
    }
}

.is-desktop {
    display: none;
}

@media (min-width: 769px) {
    .is-desktop {
        display: block;
    }
}

/* ===============================
   Component: Sidebar
   =============================== */

.sidebar-container {
    background-color: var(--secondary-color);
    color:white;
    height: 100%;
}
#lista-tipos ul {
    padding: 0;
    margin: 0;
    gap: 4px;
}

#lista-tipos ul li{
    list-style-type: none;
    padding: 0;
}

.button-type-event {
    display: flex;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-color);
    color: white;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    justify-content: center;
    align-items: center;
    height: 64px;
}


.button-type-event:hover {
    background-color: #2d282b;
    border-color: #fb8c33;
    color: #fb8c33;
    text-decoration: none;
}

.button-type-event.active {
    background-color: #2d282b;
    border-color: #fb8c33;
    color: #fb8c33;
}

#lista-datas {
    padding: 0;
    margin: 0;
    gap: 4px;
}

#lista-datas li {
    list-style-type: none;
    padding: 0;
}

#lista-esportes {
    padding: 0;
    margin: 0;
}

#lista-esportes li {
    list-style-type: none;
    padding: 0;
}

.container-esporte-numero-jogos {
    color: var(--text-secondary-color);
}

#lista-esportes li.active {
    color: var(--primary-color);
    background-color: var(--terciary-color);
    width: 100%;
}

#lista-esportes li.active ul li a{
    display: block;
    color: var(--text-secondary-color);
    text-decoration: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
    overflow-x: clip;
    white-space: nowrap;
}

#lista-esportes li.active ul li a:hover{
    color: white;
    text-decoration: none;
}

/* ===============================
   Component: Sidebar Mobile
   =============================== */

@media (max-width: 768px) {
    .sidebar-content{
        position: fixed;
        top: 0;
        left: 0;
        width: 85dvw;
        height: 100dvh;
        background-color: var(--secondary-color);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        /* overflow-y: auto; */
        color: var(--text-color);
    }

    .sidebar-content.show {
        transform: translateX(0%);
    }

    .input-group {
        padding: 8px;
    }
    
    .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .sidebar-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ===============================
   Component: Game List
   =============================== */

.no-games-container {
	display: flex;
	flex-direction: column;
	border: 1px solid #ddd;
	color: white;
	text-align: center;
}
.no-games-header {
	text-shadow: 1px 1px 1px #333;
	padding: 8px;
	font-weight: bold;
}
.no-games-message {
	padding: 35px;
	font-size: 16px;
}

/* Estrutura principal */
.games-list {
	display: flex;
	flex-direction: column;
    color: var(--text-color);
    max-height: 100%;
    /* overflow-y: scroll; */
}

/* Títulos */
.tr-esporte, .td-pais {
    padding: 4px 16px;
	color: white;
}
.tr-esporte p, .td-pais p{
    margin: 0;
}

.campeonato {
	background: #333;
	color: white;
	padding: 8px;
}

/* Item do jogo */
.game-item {
	display: grid;
	grid-template-columns: 1fr 1fr; /* Info e Odds */
    margin: 2px 8px;
	gap: 8px;
	padding: 8px;
    background-color: var(--secondary-color);
    border-radius: 8px;
}

.game-info {
  margin: 0;
  padding: 0;
  gap: 4px;
}

.game-info {
  display: flex;      /* Shrink to fit content */
  flex-direction: column;
  line-height: 1;            /* Remove extra vertical spacing */
}

.game-info p{
    font-size: 15px;
    padding: 0;
    margin: 0;
}


.live-badge {
    background-color: var(--live-badge-color);
    color: white;
    font-family: bold;
}

.live-icon {
    height: 50%;
}
.team-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.img-bandeira {
	width: 17px;
	height: 17px;
}
.game-time {
	font-size: 12px;
	color: #9f9393;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Odds */
.game-odds {
	display: flex;
	flex: 1;
    border-radius: 8px;
    overflow: clip;
}
.btn-cotacao {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-right: 1px solid var(--border-color);
	background:var(--terciary-color);
	color: #fff;
    text-align: center;
}

.btn-cotacao.active {
    background-color: var(--btn-active);
    color: black;
    font-weight: bold;
}
.btn-cotacao.outras {
    border: none;
	background-color: var(--terciary-color);
}
.btn-cotacao.disabled {
	cursor: not-allowed;
}
.btn-cotacao span {
	font-size: 12px;
	text-transform: uppercase;
}
.btn-cotacao .bold {
	font-weight: bold;
}




/* ===============================
   Responsive Overrides (Mobile First)
   =============================== */
@media (max-width: 768px) {
    #app-container {
        padding: 0;
    }

    #pg-aposta-container {
        padding: 0;
        /* overflow: clip; */
    }

    #pg-aposta-container ul {
        padding: 0 8px;
        margin-bottom: 8px;
    }

    .games-list {
        padding-bottom: 64px;
    }

    .menu-topo {
        position: sticky;
        padding-top: 4px;
        top: 0; /* The element will stick to the top of its container/viewport when scrolled to this point */
        background-color: var(--background-color); 
    }
}

/* ===============================
   Component: Bilhete Mobile
   =============================== */

#bilhete-page {
    background-color: var(--secondary-color);
}

.tab-buttons{
    color: white;
    background-color: var(--background-color);
}

.btn-tab-bilhete {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    height: 64px;
    background-color: var(--background-color);
    border-style: none;
    color: white;
}

.btn-tab-bilhete.active {
    border-radius: 8px 8px 0 0;
    background-color: var(--secondary-color);
    font-weight: bold;
    color: white;
}

.btn-tab-bilhete:hover {
    border-radius: 8px 8px 0 0;
    background-color: var(--border-color);
    color: white;
    cursor: pointer;
}

.btn-tab-bilhete-tipo-container {
    background-color: var(--background-color);
    color: white;
    height: 32px;
}

.btn-tab-bilhete-tipo {
    text-align: center;
}

.btn-tab-bilhete-tipo.active{ 
    background-color: var(--secondary-color);
    font-weight: bold;
}



