/* style.css (COMPLETO E COM NOVO DESIGN PARA OS CARDS DE HISTÓRIA) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');
@import url('header.css');
@import url('footer.css');

:root {
	--background-dark: #0a0a0a;
	--background-section: #111111;
	--primary-green: #00ff99;
	/* --primary-green: #00ff40;  */
	--text-light: #e0e0e0;
	--text-dark: #a0a0a0;
	--border-color: #222;
	--input-background: #1d1d1d;
	--input-border: #333;
	--glow-effect: 0 0 15px rgba(0, 255, 153, 0.4);
	/* --glow-effect: 0 0 15px rgba(0, 247, 74, 0.703); */
}

/* --- Estilização da Barra de Rolagem (Scrollbar) --- */
/* Suporte Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #333 #111;
}

/* Suporte Chrome, Edge, Safari e Opera */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
    border: 1px solid #111;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green, #00ff99);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}

body {
	background: linear-gradient(to bottom, #1a2e21, var(--background-dark));
	background-attachment: fixed;
	color: var(--text-light);
	text-align: center;
	font-family: 'Poppins', sans-serif;
    -webkit-user-select: none; /* Para navegadores WebKit (Chrome, Safari) */
    -moz-user-select: none;    /* Para navegadores Mozilla (Firefox) */
    -ms-user-select: none;     /* Para navegadores da Microsoft (Edge, IE) */
    user-select: none;  
}

body.allow-select {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.section {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 100px 40px;
	/* background-image: url('../images/fundo.png'); */
	background-image: url('../images/fundoblack.png');
	border-bottom: 1px solid var(--border-color);
}

.welcome.section {
    /* Manter o welcome sem imagem e com background transparente */
    background-image: none;
    min-height: 100vh;
    background-color: transparent;
    border-bottom: none;
}

.register.section {
	position: relative;
	overflow: hidden;
	background-image: none;
	background-color: transparent;
}

.register h2,
.register-form {
	position: relative;
	z-index: 2;
}

h1,
h2 {
	color: var(--primary-green);
	font-size: 3em;
	font-weight: 700;
	margin-bottom: 20px;
	text-shadow: var(--glow-effect);
}

p {
	color: var(--text-dark);
	font-size: 1.2em;
	max-width: 700px;
}

.subtitle {
	font-size: 1.2em;
	color: var(--text-dark);
	margin-top: -15px;
	margin-bottom: 50px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}


#typewriter {
	border-right: 4px solid var(--primary-green);
	animation: blinkCursor 0.7s steps(44) infinite normal;
}

@keyframes blinkCursor {
	from {
		border-right-color: var(--primary-green);
	}
	to {
		border-right-color: transparent;
	}
}

.register-form {
	width: 100%;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	text-align: left;
	background-color: var(--background-section);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--input-border);
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-size: 0.9em;
	font-weight: 500;
	color: var(--text-dark);
}

.register-form input,
.register-form select,
.register-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--input-border);
	border-radius: 8px;
	background-color: var(--input-background);
	color: var(--text-light);
	font-size: 1em;
	font-family: 'Poppins', sans-serif;
	transition: border-color 0.3s, box-shadow 0.3s;
	cursor: pointer;
}

.register-form select {
	appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg fill="%23a0a0a0" height="24" viewBox="0 0 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
	background-repeat: no-repeat;
	background-position: right 16px center;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
	outline: none;
	border-color: var(--primary-green);
	box-shadow: 0 0 0 4px rgba(0, 255, 153, 0.15);
}

.submit-btn {
	padding: 14px;
	border: none;
	border-radius: 8px;
	background-color: var(--primary-green);
	color: #000;
	font-size: 1.1em;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.2s;
	margin-top: 10px;
}

.submit-btn:hover {
	background-color: #fff;
	box-shadow: var(--glow-effect);
	transform: translateY(-2px);
}

/* Adicione estilos para o formulário de registro aqui */

/* Estilos para as estrelas de avaliação */
.star-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em; /* Reduced font size */
    color: #ccc; /* Cor das estrelas vazias */
    margin-top: 5px; /* Add some space from the role text */
}

.star-rating i {
    color: gold; /* Cor das estrelas preenchidas */
    margin: 0 0.5px; /* Reduced spacing between stars */
}


/* --- ESTILO NOVO APENAS PARA A LISTA DA PÁGINA INICIAL (index.html) --- */
.players-list-index {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px;
	margin-top: 20px;
	perspective: 1000px;
}

.player {
	background: #151515;
	padding: 25px;
	border-radius: 15px;
	border: 1px solid var(--border-color);
	width: 220px;
	height: 200px;
	text-align: center;
	cursor: pointer;
	position: relative;
	transition: transform 0.4s ease-out, box-shadow 0.4s ease;
	transform-style: preserve-3d;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.player-team {
	font-size: 0.8em;
	color: var(--primary-green);
	margin-top: 5px;
	border-radius: 10px;
	background-color: rgba(0, 255, 153, 0.1);
}

.filter-group {
    margin-bottom: 20px; /* Adjust as needed */
}

/* Estilo aprimorado para o botão de resetar filtros */
.reset-button {
    width: 100%;
    padding: 12px 14px;
    background-color: transparent; /* Fundo transparente */
    border: 1px solid var(--input-border); /* Borda sutil com a cor dos inputs */
    color: var(--text-dark); /* Cor de texto secundária, mais discreta */
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reset-button:hover {
    border-color: var(--primary-green); /* Borda fica verde ao passar o mouse */
    color: var(--primary-green); /* Texto fica verde ao passar o mouse */
    transform: translateY(-2px);
    /* Adiciona o efeito de brilho verde característico do site */
    box-shadow: var(--glow-effect);
}

.player.hidden {
	opacity: 0;
	transform: translateY(40px);
}
.player:hover {
	transform: translateY(-10px) scale(1.05);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 255, 153, 0.5);
}

.player::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 15px;
	border: 2px solid transparent;
	background: linear-gradient(45deg, var(--primary-green), #4dffb8) border-box;
	-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: destination-out;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.player:hover::before {
	opacity: 1;
}
.player img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 3px solid #333;
	margin-bottom: 20px;
	object-fit: cover;
	transition: border-color 0.4s ease;
	transform: translateZ(30px);
}

.player:hover img {
	border-color: var(--primary-green);
}
.player p {
	font-size: 1.1em;
	font-weight: 500;
	color: var(--text-light);
	transform: translateZ(50px);
}

#particles-js,
#register-particles-js {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
}

.particle-js > canvas {
    filter: drop-shadow(0 0 5px rgba(0, 255, 153, 0.5));
}

.welcome h1,
.welcome p {
	position: relative;
	z-index: 2;
}

.welcome-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin-top: 30px;
	position: relative;
	z-index: 2;
}

.online-counter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 8px 14px;
	border: 1px solid rgba(0, 255, 153, 0.35);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.28);
	color: var(--text-light);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;
	position: relative;
	z-index: 2;
	backdrop-filter: blur(6px);
}

.online-counter[hidden] {
	display: none;
}

.online-counter strong {
	color: var(--primary-green);
	text-shadow: 0 0 10px rgba(0, 255, 153, 0.55);
}

.online-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primary-green);
	box-shadow: 0 0 10px rgba(0, 255, 153, 0.85);
}

.discord-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0;
	text-decoration: none;
	padding: 16px 32px;
	font-size: 1.2em;
	cursor: pointer;
	position: relative;
	z-index: 2;
}

.welcome-action-btn {
	width: 246px;
	height: 58px;
	padding: 0 22px;
	line-height: 1;
	white-space: nowrap;
}

@media (max-width: 560px) {
	.welcome-actions {
		width: 100%;
	}

	.discord-btn {
		width: min(100%, 280px);
	}

	.welcome-action-btn {
		height: 56px;
	}
}

.modal {
	display: none;
	position: fixed;
	z-index: 20;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(10, 10, 10, 0.85);
	backdrop-filter: blur(8px);
	animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.player-card-modal {
	font-family: 'Poppins', sans-serif;
	position: relative;
	width: 90%;
	max-width: 360px;
	margin: 6% auto;
	background: linear-gradient(145deg, #1a1a1a, #101010);
	border-radius: 18px;
	border: 1px solid var(--border-color);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
	overflow: hidden;
}

.close-btn {
	color: var(--text-dark);
	position: absolute;
	top: 12px;
	right: 15px;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s;
	z-index: 10;
}
.close-btn:hover {
	color: var(--primary-green);
	transform: rotate(180deg) scale(1.1);
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	background-color: rgba(0, 0, 0, 0.2);
	border-bottom: 1px solid var(--border-color);
	font-size: 0.9em;
	color: var(--text-dark);
}
.card-header strong {
	color: var(--text-light);
}
.card-body {
	padding: 20px;
}
.card-image-container {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid #2a2a2a;
}
.card-image-container img {
	width: 100%;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.card-banner {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
	box-sizing: border-box;
}
.card-banner h2 {
	/* A mágica acontece aqui: o tamanho da fonte agora é flexível */
	font-size: clamp(0.7rem, 7vw, 2.2rem);
	word-break: break-word; /* Garante que palavras muito longas quebrem a linha */
	color: #fff;
	text-shadow: 0 0 15px var(--primary-green);
	margin: 0;
	line-height: 1.1; /* Leve ajuste para o caso de quebra de linha */
}
.card-stats-footer {
	display: flex;
	justify-content: space-around;
	padding: 15px 20px;
	background-color: rgba(0, 0, 0, 0.2);
	border-top: 1px solid var(--border-color);
}
.stat-item {
	text-align: center;
}
.stat-item label {
	display: block;
	font-size: 0.8em;
	color: var(--text-dark);
	margin-bottom: 5px;
	text-transform: uppercase;
}
.stat-item p {
	font-size: 1.1em;
	font-weight: 600;
	color: var(--text-light);
	margin: 0;
}
.card-description {
	padding: 20px;
	font-size: 0.95em;
	line-height: 1.6;
	color: var(--text-dark);
	text-align: left;
	background-color: #0c0c0c;
}

.drop-zone {
	width: 100%;
	height: 200px;
	padding: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 1.1em;
	cursor: pointer;
	color: var(--text-dark);
	border: 3px dashed var(--input-border);
	border-radius: 10px;
	transition: border-color 0.3s, background-color 0.3s;
	position: relative;
}
.drop-zone:hover {
	border-color: var(--primary-green);
}
.drop-zone--over {
	border-style: solid;
	background-color: rgba(0, 255, 153, 0.1);
}
.drop-zone-input {
	display: none;
}
.drop-zone-thumb {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	overflow: hidden;
	background-color: #111;
	background-size: cover;
	background-position: center;
	position: absolute;
	top: 0;
	left: 0;
}
.drop-zone-thumb::after {
	content: attr(data-label);
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 5px 0;
	color: white;
	background: rgba(0, 0, 0, 0.75);
	font-size: 14px;
	text-align: center;
}

.page-container {
	display: flex;
	gap: 60px; /* <- Aumente este valor */
	padding: 40px;
	align-items: flex-start;
	max-width: 1600px;
	margin: 0 auto;
}

.filter-sidebar {
	flex-basis: 280px;
	flex-shrink: 0;
	background-color: var(--background-section);
	padding: 25px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	position: sticky;
	top: 90px;
}
.filter-sidebar h3 {
	margin-top: 0;
	margin-bottom: 25px;
	font-size: 1.5em;
	color: var(--primary-green);
	text-align: left;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 15px;
}
.filter-group {
	margin-bottom: 25px;
	text-align: left;
}
.filter-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.9em;
	font-weight: 500;
	color: var(--text-dark);
}
.filter-group input,
.filter-group select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--input-border);
	border-radius: 8px;
	background-color: var(--input-background);
	color: var(--text-light);
	font-size: 1em;
	font-family: 'Poppins', sans-serif;
}
.filter-group select {
	appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg fill="%23a0a0a0" height="24" viewBox="0 0 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
	background-repeat: no-repeat;
	background-position: right 14px center;
}
/* Estilos para o botão de reset */
.reset-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.reset-button:hover {
    background-color: var(--secondary-dark-color);
}

/* Estilos para o filtro de posição */
.player-grid-container {
	flex-grow: 1;
}
.grid-header {
	text-align: left;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
}
.grid-header h1 {
	font-size: 2.5em;
	margin: 0;
}
.grid-header p {
	font-size: 1.1em;
	margin: 5px 0 0 0;
	color: var(--text-dark);
}

@media (max-width: 900px) {
	.page-container {
		flex-direction: column;
	}
	.filter-sidebar {
		width: 100%;
		position: static;
	}
}

/* ================================================================ */
/* --- INÍCIO: ESTILO UNIFICADO PARA CARDS DE SEÇÃO --- */
/* ================================================================ */

/* Grid para as seções de Regras, Admins e História */
.rules-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Increased min-width */
	gap: 30px;
	width: 100%;
	max-width: 1200px;
}

/* Card de Regras (Design Original) */
/* Card de Regras (Design Original) */
.rule-card {
	background-color: #1a1a1a;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rule-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.rule-image-container {
	width: 100%;
	height: 220px; /* Fixed height for images */
	background-color: var(--background-section);
}
.rule-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* NOVO ESTILO PARA PADRONIZAR A ALTURA */
.rule-content {
	display: flex;
	flex-direction: column;
	justify-content: center; /* Centraliza o conteúdo verticalmente */
	align-items: center;    /* Centraliza o conteúdo horizontalmente */
	flex-grow: 1;             /* Faz esta div ocupar todo o espaço restante */
	padding: 20px 20px 25px 20px; /* Padding para o conteúdo de texto */
}

.rule-card h3 {
	font-size: 1.4em;
	color: var(--text-light);
	margin: 0 0 10px 0; /* Margem ajustada */
	text-align: center;
}
.rule-card p {
	font-size: 1em;
	color: var(--text-dark);
	padding: 0; /* Padding removido daqui e movido para .rule-content */
	margin: 0;
	max-width: 100%;
	text-align: center;
}

/* Card de Perfil (Admins) */
.profile-card {
	background-color: #1a1a1a;
	border-radius: 16px;
	border: 1px solid var(--border-color);
	padding: 30px 20px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.profile-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.profile-card-image {
	margin-bottom: 20px;
}
.profile-card-image img {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #333;
	transition: border-color 0.3s;
}
.profile-card:hover .profile-card-image img {
	border-color: var(--primary-green);
}
.profile-card-info {
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%; /* Ensure it takes full width of its parent */
}
.profile-card-info h3 {
	font-size: 1.5em;
	color: var(--text-light);
	margin: 0 0 5px 0;
}
.profile-card-info p {
	font-size: 1em;
	color: var(--primary-green);
	margin: 0;
	font-weight: 500;
}

/* NOVO Card de Tópico (História) */
.topic-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.topic-card {
    display: flex;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-decoration: none;
    aspect-ratio: 16 / 9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.topic-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.topic-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.topic-card:hover .topic-card-bg {
    transform: scale(1.1);
}

.topic-card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: var(--text-light);
    background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.5) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    width: 100%;
    height: 100%;
}

.topic-category {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.topic-card h3 {
    font-size: 1.8em;
    margin: 0 0 10px 0;
    line-height: 1.2;
    color: #fff;
    text-shadow: none;
}
.topic-card:hover h3 {
    color: var(--primary-green);
}

.topic-card p {
    font-size: 1em;
    max-width: 100%;
    margin: 0;
    color: var(--text-dark);
}

/* --- ESTILOS PARA A PÁGINA WIKI --- */
.wiki-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 40px;
	text-align: left;
}

@media (max-width: 968px) {
    .wiki-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wiki-sidebar {
        order: 2;
    }

    .wiki-content {
        order: 1;
    }
    
    .wiki-title h1 {
        font-size: 2.2em;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 20px;
    }
    
    .wiki-title h1 {
        font-size: 1.8em;
    }

    .styled-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .teams-table th:nth-child(1),
    .teams-table td:nth-child(1),
    .teams-table th:nth-child(2),
    .teams-table td:nth-child(2),
    .teams-table th:nth-child(3),
    .teams-table td:nth-child(3) {
        width: auto; /* Reset fixed widths on mobile */
    }
}

.wiki-page-container {
	width: 100%;
	max-width: 1400px;
}
.wiki-title {
	text-align: left;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 30px;
}
.wiki-title h1 {
	font-size: 3em;
	margin-bottom: 20px;
}
.status-page .wiki-title h1 {
	margin-bottom: 0;
}
.status-page .status-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: nowrap;
	width: 100%;
}
.status-page .status-meta-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-radius: 18px;
	border: 2px solid #0d0d0d;
	background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 100%);
	box-shadow: 0 10px 30px rgba(0,0,0,0.35);
	color: var(--text-light);
	font-size: 0.95em;
	line-height: 1.3;
	white-space: nowrap;
	margin-left: auto;
	max-width: 860px;
}

.status-page #status-stats-table-container {
	overflow-x: hidden;
}

.status-page .styled-table th,
.status-page .styled-table td {
	white-space: nowrap;
}

.status-page .table-scroll {
	width: 100%;
	overflow-x: auto;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

.status-page .table-scroll .styled-table {
	width: max-content;
	min-width: 100%;
}

.status-page .wiki-content,
.status-page .wiki-sidebar {
	min-width: 0;
}

.status-page {
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
	--status-sticky-col-1: 56px;
	--status-sticky-col-2: 240px;
}

.status-page button,
.status-page .menu-toggle,
.status-page a {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.status-page .table-scroll .styled-table th:nth-child(1),
.status-page .table-scroll .styled-table td:nth-child(1) {
	position: sticky;
	left: 0;
	min-width: var(--status-sticky-col-1);
	z-index: 3;
}

.status-page .table-scroll .styled-table th:nth-child(2),
.status-page .table-scroll .styled-table td:nth-child(2) {
	position: sticky;
	left: var(--status-sticky-col-1);
	min-width: var(--status-sticky-col-2);
	z-index: 2;
}

.status-page .table-scroll .styled-table thead th:nth-child(1),
.status-page .table-scroll .styled-table thead th:nth-child(2) {
	background-color: #2a2a2a;
}

.status-page .table-scroll .styled-table tbody td:nth-child(1),
.status-page .table-scroll .styled-table tbody td:nth-child(2) {
	background-color: #1a1a1a;
	transition: background-color 0.2s ease;
}

.status-page .table-scroll .styled-table tbody tr:hover td:nth-child(1),
.status-page .table-scroll .styled-table tbody tr:hover td:nth-child(2) {
	background-color: #1a2a20; /* Maintain hover on sticky headers */
}
.status-page .status-meta-badge:empty {
	display: none;
}
@media (max-width: 968px) {
	.status-page .status-title-row {
		flex-wrap: wrap;
		align-items: flex-start;
	}
	.status-page .status-meta-badge {
		white-space: normal;
		width: 100%;
	}
}
.alien-icon {
	display: inline-block;
	transform: translateY(-4px);
}
.wiki-content section {
	margin-bottom: 40px;
}
.wiki-content h2,
.wiki-content h3 {
	font-size: 2em;
	border-bottom: 1px solid #333;
	padding-bottom: 10px;
	margin-bottom: 20px;
}
.wiki-content h3 {
	font-size: 1.5em;
    margin-top: 40px;
}
.wiki-sidebar .toc-box,
.wiki-sidebar .infobox {
	background-color: #1a1a1a;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
}
.toc-box h3,
.infobox-title {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1.2em;
	color: var(--text-light);
}
.toc-box ol {
	padding-left: 20px;
}
.toc-box ol li {
	margin-bottom: 10px;
}
.toc-box a {
	color: var(--text-dark);
	text-decoration: none;
}
.toc-box a:hover {
	color: var(--primary-green);
}
.infobox-header {
	font-weight: 700;
	text-align: center;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 15px;
}
.infobox-image {
	text-align: center;
	margin-bottom: 15px;
}
.infobox-image img {
	max-width: 100%;
	border-radius: 4px;
}
.infobox-data p {
	display: flex;
	justify-content: space-between;
	font-size: 1em;
	border-bottom: 1px solid #2a2a2a;
	padding: 8px 0;
}
.infobox-data p:last-child {
	border-bottom: none;
}
.styled-table {
	width: 100%;
	border-collapse: collapse;
	background-color: #1a1a1a;
}
.styled-table th,
.styled-table td {
	border: 1px solid var(--border-color);
	padding: 12px;
	vertical-align: middle;
}
.styled-table thead {
	background-color: #2a2a2a;
	font-size: 1.1em;
}
.styled-table tbody tr {
	transition: background-color 0.2s ease;
}
.styled-table tbody tr:hover {
	background-color: rgba(0, 255, 153, 0.1);
}
.awards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}
.teams-table .team-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 10px;
}

/* Fix column widths for teams-table to align them across different tables */
.teams-table th:nth-child(1),
.teams-table td:nth-child(1) {
    width: 30%;
}

.teams-table th:nth-child(2),
.teams-table td:nth-child(2) {
    width: 45%;
}

.teams-table th:nth-child(3),
.teams-table td:nth-child(3) {
    width: 25%;
}
.styled-table .team-logo-small {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

.wiki-players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: flex-start;
}

.match-table .score {
    font-weight: bold;
    color: var(--primary-green);
}

/* --- FLIP INDEX CSS --- */
.flip-container-index {
    perspective: 1000px;
    width: 100%;
    position: relative;
    max-width: 1200px; /* Alinhado com rules-grid */
    margin: 0 auto;
}

.flip-container-index.flip .flipper-index {
    transform: rotateY(180deg);
}

.flipper-index {
    transition: 0.8s;
    transform-style: preserve-3d;
    position: relative;
    /* Height será setado via JS */
}

.front-index, .back-index {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.front-index {
    z-index: 2;
    transform: rotateY(0deg);
}

.back-index {
    transform: rotateY(180deg);
}

.flip-header-index {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

/* O botão fica ao lado do título */
.flip-btn-index {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
    padding: 5px;
    display: flex;
    align-items: center;
}

.flip-btn-index:hover {
    transform: scale(1.1) rotate(180deg); /* Efeito extra de rotação no ícone */
    color: #fff;
    text-shadow: var(--glow-effect);
}

/* --- Estilos para Modal Content (Feedback e Update) --- */
.modal-content {
    background-color: var(--background-section);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    color: var(--text-light);
}

.feedback-modal-content.success {
    border-color: var(--primary-green);
}

.feedback-modal-content.error {
    border-color: #ff4d4d;
}

.feedback-modal-content p {
    font-size: 1.2em;
    color: var(--text-light);
    margin: 0;
}

/* --- PAGE TRANSITION EFFECTS --- */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #021a10 0%, #050605 100%);
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-in-out;
}
.page-transition-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
.page-transition-spinner-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-transition-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px dashed rgba(0, 255, 153, 0.15);
    border-top-color: #00ff99;
    animation: spin-page-loader 1.5s linear infinite;
    box-shadow: 0 0 25px rgba(0, 255, 153, 0.15);
}
.page-transition-logo {
    position: absolute;
    width: 44px;
    height: 44px;
    object-fit: contain;
    animation: logo-slow-spin 1.5s linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 255, 153, 0.45));
}
@keyframes logo-slow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes spin-page-loader {
    to { transform: rotate(360deg); }
}
