@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import 'bootstrap/dist/css/bootstrap.min.css'; /* Importando o Bootstrap */

/*Configurações do menu*/
* {
    font-family: Barlow, sans-serif;
    margin: 0;
    padding: 0;
}
    
body {
    overflow-x: hidden;
    padding-top: 75px;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
    z-index: 1050;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: #fff;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #333;
}

.overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
}

.hamburger {
    cursor: pointer;
    padding-left: 80px;
}

.me-2 {
    padding-right: 80px;
}

.logo {
    padding-left: 50px;
    width: 190px;
}

/* Submenu de Configurações */
.configuracoes .submenu {
    display: none;
    padding: 10px 15px;
}

.switch-label {
    color: white;
    font-size: 16px;
    margin-right: 10px;
}

/* Estilo do switch tipo iPhone */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 25px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgb(253, 77, 121);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Temas */
/* Tema Claro */
body.light-theme {
    background-color: #ffffff; /* já é branco suave */
    color: #212529;
}

body.light-theme section.bg-dark {
    background-color: #e9ecef !important;
}

body.light-theme .navbar,
body.light-theme .sidebar {
    background-color: #f8f9fa !important; /* branco puro para menu superior e lateral */
}

body.light-theme .sidebar a,
body.light-theme .configuracoes a {
    color: #000;
}

body.light-theme .form-container {
    background-color: #ffffff;
    color: #000;
}

body.light-theme .form-container input,
body.light-theme .form-container select {
    background: #f0f0f0;
    color: #000;
}

body.light-theme .form-container input::placeholder {
    color: #666;
}

body.light-theme footer {
    background-color: #f8f9fa !important;
    color: #000 !important;
    border-top: 2px solid #fd4d79 !important;
}

/* Tema Claro - Hover nos links da Sidebar */
body.light-theme .sidebar a:hover {
    background-color: #e0e0e0; /* Um tom de cinza bem claro */
    color: #000; /* Mantém a cor do texto preta */
}

body.light-theme .configuracoes a:hover {
    background-color: #e0e0e0; /* Aplica o mesmo efeito ao link "Configurações" se desejar */
    color: #000;
}

body.light-theme .submenu a:hover {
    background-color: #e0e0e0; /* Aplica o mesmo efeito aos links dentro do submenu, se houver */
    color: #000;
}

body.light-theme .submenu {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
}

/* Tema Claro - Summary dos jogos */
body.light-theme details summary {
    background-color: #ffffff;
    color: #000;
    letter-spacing: 1.5px;
    border-radius: 10px;
    padding: 20px;
    max-width: 1100px; /* Aumenta a largura máxima para 1200px */
    box-sizing: border-box;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

body.light-theme details summary:hover {
    background-color: rgba(253, 77, 121, 0.541);  
    transform: scale(1.05); /* aumenta para 110% enquanto o mouse estiver sobre */
    transition: transform 0.7s ease;
}

/* Tema Claro - Tabela completa */
body.light-theme .table.table-dark,
body.light-theme .table.table-dark thead,
body.light-theme .table.table-dark tbody,
body.light-theme .table.table-dark th,
body.light-theme .table.table-dark td,
body.light-theme .table.table-dark tr {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #dee2e6 !important;
}

/* Tema Claro - Cabeçalho com texto rosa */
body.light-theme .table thead th {
    background-color: #ffffff !important;
    color: #e91e63 !important; /* rosa */
    font-weight: bold;
}

/* Tema Claro - Linhas alternadas (striped) */
body.light-theme .table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9 !important;
}

/* Tema Claro - Barra de progresso */
body.light-theme progress {
    accent-color: #e91e63; /* rosa ou outra cor desejada */
}


body.light-theme h4 {
    color: #000;
}


/*Conteúdo principal*/
section {
    margin-top: 0px;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.titulo-personalizado {
    color: rgba(253, 77, 121, 1);
    text-shadow: 1px 1px 3px rgba(253, 77, 121, 1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 4.5rem;
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 20px !important;
    padding: 2px;
}

h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

td {
    font-size: 20px;
}

summary {
    background-color: #1a1a1a;
    color: #fff;
    font-weight: 650;
    letter-spacing: 1.5px;
    border-radius: 10px;
    padding: 20px;
    max-width: 1100px; /* Aumenta a largura máxima para 1200px */
    box-sizing: border-box;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Efeito ao passar o mouse */
summary:hover {
    background-color: rgba(253, 77, 121, 0.541);  
    transform: scale(1.05); /* aumenta para 110% enquanto o mouse estiver sobre */
    transition: transform 0.7s ease;
}

details {
    width: 100%; 
    margin: 0 auto;
}

details summary {
    font-size: 1.65rem;
    list-style: none;
    margin: 0 auto 19px auto;
    position: relative;
    text-align: center;
}

details .table-custom {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px); /* sobe um pouco antes de abrir */
    transition: max-height 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
}

details .table-custom tr {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

details[open] .table-custom tr {
    opacity: 1;
    transform: translateY(0);
}

details[open] .table-custom {
    max-height: 1000px; /* valor suficiente para conter a tabela */
    opacity: 1;
    transform: translateY(0);
}

details summary::-webkit-details-marker {
    display: none;
}

.details-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.details-content.open {
    opacity: 1;
    /* max-height será definido via JS dinamicamente */
}

.container-games{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 50px;
    width: auto;
}

/* Cor de fundo personalizada para a tabela */
.table-custom {
    border-radius: 8px;
    overflow: hidden;
    width: 90%;
    max-width: 1025px; /* 90% de 1200px */
    margin: 0 auto 30px auto; /* Centraliza a tabela */
}

/* Cabeçalho da tabela */
.table-custom thead th {
    background-color: rgba(253, 77, 121, 0.541); 
    color: white;
    border-bottom: none;
}

/* Bordas */
.table-custom td,
.table-custom th {
    border-color: #333;
}

progress {
    width: 60%;
    height: 12px;
    border: none;
    border-radius: 10px;
    background-color: #222;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background-color: #222;
    border-radius: 10px;
}

progress::-webkit-progress-value {
    background-color: rgb(253, 77, 121);
    border-radius: 10px;
    transition: width 0.6s ease;
}

progress::-moz-progress-bar {
    background-color: rgb(253, 77, 121);
    border-radius: 10px;
}

/* estilização do rodapé */
.footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    border-top: 2px solid rgb(253, 77, 121);
    box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.2);
}

.footer p {
    margin: 5px 0;
}

@media (max-width: 500px) {
    summary {
        font-size: 1rem;
        padding: 16px 4vw;
    }
}
