@charset "utf-8";
/*
Theme Name: Truco App
Theme URI: https://trucodosbao.com.br
Author: Paulo
Description: Tema leve full width para Truco dos Bão
Version: 1.0
*/

/* RESET TOTAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================
   MODO APP MOBILE FORÇADO
============================ */

/* fundo da página (desktop) */

html, body{
height:100%;
}

body{
background:#2b2b2b; /* fundo lateral */
}

/* container principal do app */

.tm-app{

width:100%;
max-width:420px; /* largura padrão de celular */
min-height:100vh;
background:#fff;
box-shadow:0 0 30px rgba(0,0,0,0.35);

}

/* remove limites no celular */

@media (max-width: 480px){

body{
background:#fff;
}

.tm-app{

max-width:100%;
box-shadow:none;

}

}

body {
    background: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
    flex-direction: column;
    min-height: 100vh;
	margin:0;
	padding:0;
	display:flex;
	background-color:#ffffff;
	background-image:
	url("https://trucodosbao.com.br/wp-content/themes/truco-app/images/personagem-truco.png"),
	radial-gradient(circle,#ffffff 0%,#dcdcdc 100%);
	background-position:center bottom;
	background-repeat:no-repeat;
	background-size: auto;
}

/* ================= HEADER ================= */

.tm-header {
    width: 100%;
    background: #ddd;
    padding: 7px 20px 5px;
}

.tm-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
	max-width: 380px;
	    position: relative;
		margin: 0px auto;
}

.tm-header-home {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 0px;
    position: relative;
}

.tm-logo-home {
    max-width: 260px;
    width: 100%;	
}

/* Versão com um pouco mais de presença */
.tm-version-tag {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 14px;
    font-weight: 700;
    color: #666666; /* Cinza médio, mais visível que o anterior */
    background: rgba(0, 0, 0, 0.05); /* Um fundo sutil para destacar */
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    pointer-events: none;
}

@media (max-width: 480px) {
    .tm-version-tag {
        top: 15px;
        right: 15px;
        font-size: 12px;
        padding: 1px 6px;
    }
}

.tm-logo img {
    max-height: 30px;
	width: 125px;
	margin-bottom: -1px;
}

.tm-header-actions {
    display: flex;
    gap: 10px;
}

.tm-player-name {
    padding-top: 2px;
	font-size: 12px;
}

.tm-btn {
    padding: 6px 14px 6px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;	
}

.tm-btn-perfil {
    background: #2e7d32;
    color: #fff;
}

.tm-btn-sair {
    background: #cc0000;
    color: #fff;
}

.tm-btn:logout{
    background: #cc0000;
}

.tm-btn-login {
    background: #1976d2;
    color: #fff;
}

.tm-btn-registrar {
    background: #555;
    color: #fff;
}

/* ================= MAIN ================= */

.tm-main {
    min-height: 70vh;
	flex: 1;
}

/* ================= FOOTER ================= */

.tm-footer {
    width: 100%;
    background: #ddd;
    padding: 15px;
    text-align: center;
    font-size: 14px;
	margin-top: auto;
	bottom: 0;
}

.tm-home{
max-width:420px;
margin:60px auto;
display:flex;
flex-direction:column;
gap:25px;
text-align:center;
}

.tm-logo{
font-size:36px;
font-weight:900;
}

.tm-home-buttons{
display:flex;
flex-direction:column;
gap:10px;
width: 80%;
margin: 0 auto;
}

.tm-btn-home{
padding:10px;
border-radius:12px;
background:#0f6d2f;
color:white;
font-weight:bold;
font-size:18px;
text-decoration:none;
}

.tm-btn-guest{
background:#444;
}

.tm-auth{
max-width:400px;
margin:60px auto;
display:flex;
flex-direction:column;
gap:15px;
}

.tm-auth input{
padding:12px;
border-radius:10px;
border:1px solid #ccc;
font-size:16px;
}

.tm-auth button{
padding:14px;
border-radius:10px;
border:none;
background:#0f6d2f;
color:#fff;
font-weight:bold;
}

.tm-link{
text-align:center;
}

.tm-perfil{
max-width:420px;
margin:20px auto;
display:flex;
flex-direction:column;
gap:20px;
text-align:center;
}

.tm-perfil-{
background:#f5f5f5;
padding:20px;
border-radius:14px;
}

.tm-avatar{
width:90px;
height:90px;
border-radius:50%;
margin-bottom:10px;
}

.tm-email{
font-size:14px;
color:#666;
}

.tm-stats{
display:flex;
justify-content:space-between;
gap:10px;
}

.tm-stat{
flex:1;
background:#f5f5f5;
padding:15px;
border-radius:12px;
}

.tm-stat span{
font-size:24px;
font-weight:700;
}

.tm-perfil-botoes{
display:flex;
flex-direction:column;
width: 80%;
margin: 0px auto;
}

.tm-btn{
padding:6px 14px;;
border-radius:10px;
background:#0f6d2f;
color:#fff;
text-decoration:none;
font-weight:bold;
border:none;
cursor:pointer;
}

.tm-btn:logout{
background:#cc0000;
}

.tm-player-link{
	display:flex;
	align-items:center;
	gap:8px;
	text-decoration:none;
	margin-right:10px;
}

.tm-player-avatar-header{
	width:32px;
	height:32px;
	border-radius:50%;
	object-fit:cover;
}

.tm-player-name{
	font-weight:700;
	color:#333;
}

.tm-player-link:hover .tm-player-name{
	text-decoration:underline;
}

.tm-sala-container,
.tm-sala-container * {
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif !important;
}

.tm-sala-container{
    max-width:400px;
    margin:20px auto;
    text-align:center;
}

.tm-sala-titulo{
    font-size:26px;
    font-weight:800;
    margin-bottom:0px;
	margin-top: 5px;
}

.tm-players{
    display:flex;
    justify-content:center;
    gap:5px;
    margin-bottom:20px;
}

.tm-player-avatar{
    width:70px;
    height:70px;
    border-radius:20px;
	margin-top:10px;
    object-fit:cover;
    border:4px solid #0f6d2f;
    background:#f0f0f0;
}

.tm-player-empty{
    width:70px;
    height:70px;
    border-radius:20px;
    background:#f0f0f0;
    align-items:center;
	padding:15px 0 15px;
    font-size:30px;
    color:#bbb;
}

.tm-player-name{
    margin-top:10px;
    font-weight:700;
    font-size:14px;
	line-height: 16px;
}

.tm-botoes{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-top:25px;
    align-items:center;
}

.tm-btn-sala{
    padding:12px 20px;
    border:none;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
    transition:0.2s;
    width:100%;
    max-width:400px;
}

.tm-btn-sala-primary{ background:#1e8e1e; color:#fff; }
.tm-btn-sala-primary:disabled{ background:#9bc79b; cursor:not-allowed; }
.tm-btn-sala-sec{ background:#cc0000; color:#fff; }
.tm-btn-sala-whats{ background:#25D366; color:#fff; }
.tm-link-box{
    margin-top:20px;
    display:flex;
    gap:8px;
}
.tm-link-box input{
    flex:1;
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
}
.tm-link-box button{
    padding:10px 14px;
    border:none;
    border-radius:8px;
    background:#333;
    color:#fff;
    cursor:pointer;
}

#time-a,
#time-b{
    display:flex;
    flex-direction:column;
    gap:10px;
	margin-top: 10px;
}

.tm-player-{
    width:70px;
    height:70px;
    border-radius:20px;
    background:#f6f6f6;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

	min-height:70px;
}

.tm-player-{
	width:75px;
	min-height:90px;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content: top;
}

.tm-player-.ocupado{
    width:75px;
    height:75px;
    border:2px dashed #ccc;
    background:#ededed;
}

.tm-player-avatar{
	width:75px;
	height:75px;
	border-radius:18px;
	border:4px solid #0f6d2f;
	object-fit:cover;
	display:block;
	margin-top: 0px;
}

.tm-player-empty{
	width:75px;
	height:75px;
	border-radius:18px;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:28px;
	font-weight:800;
	border:2px dashed #ccc;
	color:#999;
	padding-top: 16px;
	padding-bottom: 18px;
}

.tm-btn-convidar{
    margin-top:6px;
    padding:5px 8px;
    font-size:12px;
    border:none;
    border-radius:6px;
    background:#0f6d2f;
    color:#fff;
    cursor:pointer;
}

.tm-btn {
    padding: 6px 14px 6px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* container */

.tm-auth-container{
	flex:1;
	display:flex;
	justify-content:center;
	align-items:flex-start;
}

/*  */

.tm-auth-{
	background:rgba(255,255,255,0.9);
	padding:35px 30px;
	border-radius:20px;
	box-shadow:0 10px 25px rgba(0,0,0,0.1);
	width:380px;
	max-width:90%;
	text-align:center;
	margin-top:40px;
}

/* título */

.tm-auth- h1{
	margin:0 0 25px 0;
	color:#333;
	font-size:22px;
	font-weight:900;
	text-transform:uppercase;
}

/* form */

#tm-login{
	display:flex;
	flex-direction:column;
	gap:15px;
}

/* inputs */

.tm-auth- input{
	width:100%;
	padding:14px 18px;
	border:2px solid #eee;
	border-radius:12px;
	font-size:16px;
	background:#f9f9f9;
	transition:all .3s;
	box-sizing:border-box;
}

.tm-auth- input:focus{
	outline:none;
	border-color:#1f8e2e;
	background:#fff;
}

/* esqueci senha */

.tm-forgot-link{
	text-align:right;
	margin-top:-10px;
	margin-bottom:5px;
}

.tm-forgot-link a{
	color:#888;
	font-size:13px;
	text-decoration:none;
	font-weight:600;
}

/* botão */

.tm-btn-login{
	background:#1f8e2e;
	color:white;
	border:none;
	padding:16px;
	border-radius:12px;
	font-size:18px;
	font-weight:700;
	cursor:pointer;
	transition:all .2s;
	text-transform:uppercase;
}

.tm-btn-login:hover{
	transform:translateY(-2px);
}

/* link footer */

.tm-link-footer{
	margin-top:25px;
	display:block;
	color:#666;
	text-decoration:none;
	font-size:14px;
	font-weight:600;
}

.tm-link-footer strong{
	color:#FF9900;
}

.tm-home-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 30px;
    padding-bottom: 100px; /* Espa�o para o boneco n�o cobrir os bot�es em telas baixas */
    min-height: 60vh; /* Garante que haja espa�o antes do footer */
}

/* BOT�ES */
.tm-home-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 260px;
    position: relative;
    z-index: 10;
	font-family:Arial, Helvetica, sans-serif;
}

.tm-btn-home {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all .2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tm-btn-home:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-login { background: #1f8e2e; color: white; }
.btn-reg   { background: #FF9900; color: white; }
.btn-guest { background: #333; color: white; }

.btn-regras {
    margin-top: 0px;
    background: none;
    border: none;
    color: #444;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* LIGHTBOX */
.tm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.tm-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 380px;
    width: 85%;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tm-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.tm-auth-container {
    padding: 0px 20px;
    margin: 0 auto;
	width: 100%;
    flex: 1;
}

.tm-auth- {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    text-align: center;
    z-index: 10;
    margin: 20px auto 0;
}

/* T�tulo da P�gina no Card */
.tm-auth- h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

#tm-register {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tm-auth- input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tm-auth- input:focus {
    outline: none;
    border-color: #FF9900; /* Cor laranja para diferenciar do login */
    background: #fff;
}

.tm-btn-register {
    background: #FF9900; /* Bot�o laranja para combinar com o estilo de 'Criar Conta' */
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    text-transform: uppercase;
}

.tm-btn-register:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.tm-link-footer {
    margin-top: 25px;
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.tm-link-footer strong {
    color: #1f8e2e;
}

.tm-link-footer:hover {
    text-decoration: underline;
}

/* Estilo para a logo clicar */
.tm-logo-home { cursor: pointer; }

.tm-times{
	display:flex;
	justify-content:center;
	align-items:center;
	gap:25px;
	margin:25px 0;
}

.tm-equipe{
	display:flex;
	gap:12px;
}

.tm-player-card{
	width:75px;
	height:75px;
	display:flex;
	flex-direction:column;
	align-items:center;
}

.tm-player-empty{
	width:77px;
	height:75px;
	border-radius:18px;
	background:#eee;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:28px;
	font-weight:800px;
	color:#999;
}

.tm-player-name{
	margin-top:7px;
	font-size:14px;
	font-weight:600;
	text-align:center;
}

.tm-vs{
	font-size:20px;
	font-weight:800;
	padding: 0px 0px 5px;
	color:#333;
}

.tm-mesas{
	display:flex;
	gap:15px;
	justify-content:center;
	flex-wrap:wrap;
}

.tm-mesa-opcao{
	width:120px;
	cursor:pointer;
	text-align:center;
}

.tm-mesa-opcao img{
	width:100%;
	border-radius:10px;
	border:3px solid transparent;
}

.tm-mesa-opcao:hover img{
	border-color:#cc0000;
}

.tm-select-mesa{
	margin:15px 0;
}

.tm-select-mesa select{
	width:100%;
	max-width:400px;
	border-radius:16px;
	border:1px solid #ccc;
	font-size:16px;
	font-weight:600;
	padding: 10px 15px;
	text-align:center;
	min-width: 70px;
}

.tm-btn-bot{
	margin-top:6px;
	border-radius:10px;
	border:1px solid #ccc;
	font-size:11px;
	font-weight:600;
	padding: 5px 5px;
	font-weigth: 600;
	color:#333;
	min-width: 75px;
	cursor:pointer;
}

.tm-player-box{
position:relative;
}

.tm-remove-bot{
position:absolute;
top:-6px;
right:-6px;
background:#cc0000;
color:#fff;
font-size:12px;
width:18px;
height:18px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
cursor:pointer;
font-weight:bold;
}

.tm-remove-bot:hover{
background:#990000;
}