/* ========================= */
/* CONFIG GERAL              */
/* ========================= */

:root {
	/* Ajuste fino da logo da barra superior (logo-navbar.png)  */
	/* valores positivos = direita / baixo | negativos = esquerda / cima */
	--logo-offset-x: 0px;   /* move esquerda/direita  */
	--logo-offset-y: 0px;   /* move cima/baixo        */
}

/* ========================= */
/* NAV HAMBURGER (MOBILE)   */
/* ========================= */

#nav-hamburger {
	width: 18px;
	height: 16px;
	position: relative;
	transform: rotate(0deg);
	transition: .5s ease-in-out;
	cursor: pointer;
	margin-left: 40px;
}

@media (min-width: 1360px) {
	#nav-hamburger {
		display: none;
	}
}

#nav-hamburger span {
	display: block;
	position: absolute;
	height: 2px;
	width: 100%;
	background: #fff;
	border-radius: 5px;
	opacity: 1;
	left: 0;
	transform: rotate(0deg);
	transition: .25s ease-in-out;
}

#nav-hamburger:hover span {
	background-color: #fff;
}

#nav-hamburger span:nth-child(1) {
	top: 0px;
}

#nav-hamburger span:nth-child(2),
#nav-hamburger span:nth-child(3) {
	top: 8px;
}

#nav-hamburger span:nth-child(4) {
	top: 16px;
}

#nav-hamburger.open span:nth-child(1) {
	top: 8px;
	width: 0%;
	left: 50%;
}

#nav-hamburger.open span:nth-child(4) {
	top: 8px;
	width: 0%;
	left: 50%;
}

#nav-hamburger.open span:nth-child(2) {
	transform: rotate(45deg);
}

#nav-hamburger.open span:nth-child(3) {
	transform: rotate(-45deg);
}

/* ========================= */
/* MENU MOBILE               */
/* ========================= */

.mobile-menu {
	backdrop-filter: blur(15px);
	background-color: rgba(34, 36, 35, 0.5);
	background-size: auto;
	height: 100vh;
	position: fixed;
	width: 100%;
	right: 0;
	top: 0;
	transform: translate(-100%);
	transition: .2s;
	z-index: 9;
	opacity: 1;
	display: flex;
}

@media (min-width: 1360px) {
	.mobile-menu {
		display: none;
	}
}

.mobile-menu.open {
	transform: translate(0);
}

.mobile-menu .container {
	padding-top: 86px;
}

.mobile-menu .main-menu {
	height: auto;
	margin-top: 40px;
	display: flex;
	flex-direction: column;
}

.mobile-menu .main-menu .menu-item {
	background-color: rgba(255, 255, 255, 0.1);
	margin-bottom: 15px;
	opacity: 1;
	display: flex;
	align-items: center;
	text-align: center;
	width: 100%;
	min-height: 45px;
	justify-content: center;
	font-weight: bold;
	transition: 0.2s;
}

.mobile-menu .main-menu .menu-item:hover {
	background-color: rgba(255, 255, 255, 0.15);
}

.mobile-menu .h-sep {
	height: 1px;
	opacity: 0.1;
	width: 100%;
	background-color: #fff;
	background-size: cover;
	margin-top: 20px;
	margin-bottom: 30px;
}

.mobile-menu .button-style-2 {
	margin: 0 auto;
}

.mobile-menu .buttons {
	height: inherit;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}

.mobile-menu .buttons .login {
	font-weight: bold;
	color: #efe3fa;
	margin: 10px;
}

.mobile-menu .buttons .button {
	margin: 10px;
}

/* ========================= */
/* MENU PRINCIPAL (DESKTOP) */
/* ========================= */

.main-menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	position: relative;
}

.main-menu a,
.main-menu .menu-item {
	padding: 0 30px;
	transition: 0.2s;
	display: flex;
	position: relative;
	color: inherit;
	height: inherit;
	align-items: center;
	opacity: 0.5;
}

.main-menu a:after,
.main-menu .menu-item:after {
	content: '';
	height: inherit;
	width: 100%;
	background-size: cover;
	background-image: url(../img/ui/nav-hover.png);
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 0;
	opacity: 0;
	transition: 0.2s;
}

.main-menu a>*,
.main-menu .menu-item>* {
	z-index: 1;
}

.main-menu a img,
.main-menu .menu-item img {
	margin-right: 10px;
	display: block;
	transition: 0.2s;
}

.main-menu a .title,
.main-menu .menu-item .title {
	transition: 0.2s;
	font-weight: bold;
	color: #d3c9b7;
	text-transform: uppercase;
	line-height: 1;
}

.main-menu a .title .name,
.main-menu .menu-item .title .name {
	font-size: 15px;
	text-shadow: 0.484px 1.941px 0px rgba(26, 27, 27, 0.4);
}

.main-menu a .title span,
.main-menu .menu-item .title span {
	color: #ac9f95;
	font-size: 8px;
}

.main-menu a:hover,
.main-menu .menu-item:hover {
	opacity: 1;
}

.main-menu a:hover .title .name,
.main-menu .menu-item:hover .title .name {
	text-decoration: underline;
}

.main-menu a.active,
.main-menu .menu-item.active {
	opacity: 1;
}

.main-menu a.active:after,
.main-menu .menu-item.active:after {
	opacity: 1;
}

.main-menu a.active .title,
.main-menu .menu-item.active .title {
	filter: brightness(1.2);
}

.main-menu a.active img,
.main-menu .menu-item.active img {
	filter: brightness(1.2);
}

/* ========================= */
/* DROPDOWN DO MENU         */
/* ========================= */

.menu-item.dropdown-parent {
	position: relative;
	cursor: pointer;
}

.menu-item .dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	width: 200px;
	background-color: #1a1a1a;
	border: 1px solid rgba(255, 255, 255, 0.08);
	z-index: 99;
	display: none;
	flex-direction: column;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
	border-radius: 4px;
}

.menu-item .dropdown-menu a {
	color: #ab9c8a;
	text-decoration: none;
	padding: 10px 15px;
	font-size: 12px;
	transition: background 0.3s ease;
}

.menu-item .dropdown-menu a:last-child {
	font-size: 13px;
	color: #fef7e0;
}

.menu-item .dropdown-menu a b {
	font-size: 12px;
	color: orangered;
}

.menu-item .dropdown-menu a:hover {
	background-color: #2a2a2a;
	color: #fff;
}

.menu-item .dropdown-menu a:active {
	background-color: #272727;
	color: #edede0;
}

.menu-item.dropdown-parent:hover .dropdown-menu {
	display: flex;
}

/* ========================= */
/* HEADER / BARRA FIXA      */
/* ========================= */

.header {
	position: fixed;
	z-index: 900;
	top: 0;
	width: 100%;
	display: flex;
	align-items: center;
	font-weight: bold;
	height: 70px;
	background-color: #222423;
	backdrop-filter: blur(2px);
}

.header::after {
	display: block;
	position: absolute;
	height: 90px;
	top: 0;
	background-image: url(../img/ui/navbar-bg.png);
	width: 100%;
	background-repeat: repeat-x;
	left: 0;
	content: '';
}

.header .main-menu {
	height: 70px;
}

.header .header-row {
	z-index: 2;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header .h-right,
.header .h-left {
	display: flex;
	align-items: center;
}

.header .h-left {
	flex-grow: 4;
}

@media (max-width: 1359.98px) {
	.header .h-left .main-menu,
	.header .h-left .h-sep {
		display: none;
	}
}

/* Separador vertical entre logo e menu */
.header .h-sep {
	margin: 0 30px 0 0;
	background-color: #151616;
	border-right: 1px solid #514739;
	width: 1px;
	height: 20px;
}

/* ===== LOGO DA BARRA SUPERIOR (logo-navbar.png) ===== */

.header .h-left .logo {
	width: 160px;
	height: 70px;     /* mesma altura da barra */
	position: relative;
	cursor: pointer;
	transition: 0.2s;
	margin-right: 30px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.header .h-left .logo:hover {
	filter: brightness(115%);
}

.header .h-left .logo img {
	pointer-events: none;
	max-width: 100%;
	height: auto;
	position: relative; /* nada de absolute */
	transform: translate(var(--logo-offset-x), var(--logo-offset-y));
	 /* exemplo prático: */
	--logo-offset-y: -70px;  // sobe 5px
	--logo-offset-x: 10px;  // anda 10px pra direita
}

.header .h-right {
	justify-content: flex-end;
	flex-grow: 1.2;
}

.header .h-right .buttons {
	margin-left: auto;
	height: inherit;
	display: flex;
	align-items: center;
	gap: 10px;
}

@media (max-width: 575.98px) {
	.header .h-right .buttons {
		display: none;
	}
}

@media (max-width: 767.98px) {
	.header .h-right .buttons .lang-selector {
		display: none;
	}
}

/* LANG SELECTOR (HEADER) */

.header .h-right .buttons .lang-selector {
	margin-right: 30px;
	position: relative;
}

.header .h-right .buttons .lang-selector.open .lang-dropdown {
	opacity: 1;
	pointer-events: unset;
	transform: translateY(0px);
}

.header .h-right .buttons .lang-selector .nav-lang-button {
	padding: 5px;
	background-color: rgba(169, 168, 167, 0.1);
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: 0.2s;
}

.header .h-right .buttons .lang-selector .nav-lang-button:hover {
	background-color: rgba(169, 168, 167, 0.3);
}

.header .h-right .buttons .lang-selector .nav-lang-button span {
	display: block;
	margin: 0 10px 0 5px;
	color: #d3c9b7;
	width: 20px;
	font-size: 13px;
	text-transform: uppercase;
	text-shadow: 0.484px 1.941px 0px rgba(26, 27, 27, 0.4);
}

.header .h-right .buttons .lang-selector .nav-lang-button img {
	height: 17px;
	width: 25px;
	display: block;
	outline: 2px solid rgba(22, 22, 22, 0.5);
}

.header .h-right .buttons .lang-selector .lang-dropdown {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-5px);
	transition: 0.2s;
	position: absolute;
	top: 50px;
	left: -5px;
	display: flex;
	flex-direction: column;
	background-color: rgba(34, 36, 35, 0.9);
	padding: 5px;
}

/* BOTÃO NAV DOURADO (CTA DO MENU) */

.button-gold-nav {
	padding: 0 30px;
	height: 70px;
	transition: 0.2s;
	display: flex;
	align-items: center;
	cursor: pointer;
	justify-content: center;
	position: relative;
}

.button-gold-nav .title {
	z-index: 1;
	text-transform: uppercase;
	color: #242525;
	font-size: 15px;
	line-height: 0.9;
}

.button-gold-nav .title .name {
	font-weight: bold;
	text-shadow: 0.242px 0.97px 0px rgba(213, 185, 146, 0.8),
		0.242px 0.97px 2px rgba(213, 185, 146, 0.6);
}

.button-gold-nav .title span {
	font-size: 8px;
	color: #d3ba9a;
	text-shadow: 0.242px 0.97px 2px rgba(35, 36, 36, 0.7);
}

.button-gold-nav img {
	z-index: 1;
	margin-right: 10px;
}

.button-gold-nav:before {
	position: absolute;
	height: inherit;
	width: 100%;
	content: '';
	left: 0;
	top: 0;
	background-image: url(../img/ui/button-nav-gold.png);
	background-size: cover;
}

.button-gold-nav:hover {
	filter: brightness(120%);
}

/* hambúrguer alinhado à direita no mobile */
#nav-hamburger {
	margin-left: 10px;
}

/* ====== LOGO CENTRAL (caso use) ====== */
.hero-logo-wrapper {
	margin-top: 100px; /* espaço considerando o header fixo */
	margin-bottom: 10px;
	text-align: center;
	pointer-events: none;
}

.hero-logo {
	max-width: 520px;
	width: 100%;
	height: auto;
}

/* ====== LAYOUT PRINCIPAL (3 colunas) ====== */

.main-layout {
	margin-top: 40px;      /* espaço entre barra/hero e login/slider */
	margin-bottom: 40px;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr) 280px;
	column-gap: 20px;
}

.col-left,
.col-middle,
.col-right {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.col-middle .card.slider {
	width: 100%;
}

/* RESPONSIVO */

@media (max-width: 991.98px) {
	.hero-logo-wrapper {
		margin-top: 80px;
		margin-bottom: 5px;
	}

	.main-layout {
		display: block;
		margin-top: 20px;
	}

	.col-left,
	.col-middle,
	.col-right {
		margin-bottom: 15px;
	}
}

/* Espaço fantasma antes do footer zerado */
.col-full {
	height: 0;
	margin: 0;
	padding: 0;
}

/* RANKING */

/* Card do Top 10 maiorzinho */
.col-left .card-top10-ranking {
    font-size: 14px;
}

.col-left .card-top10-ranking .card-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabela do Top 10 mais espaçada */
.ranking-top10 th,
.ranking-top10 td {
    padding: 8px 6px;
}

/* Cabeçalho um pouco maior */
.ranking-top10 thead th {
    font-size: 13px;
}

/* Linhas do ranking */
.ranking-top10 tbody td {
    font-size: 13px;
}

/* Nome e nível com um pouco mais de destaque */
.ranking-top10 .player-name {
    font-weight: 600;
}

.ranking-top10 .player-level {
    font-weight: 600;
}

/* Ícones maiores */
.ranking-top10 .rank-icon {
    width: 26px;
    height: auto;
}

.ranking-top10 .class-icon {
    width: 28px;
    height: auto;
}

.ranking-top10 .empire-flag {
    width: 28px;
    height: auto;
}
/* PAGINA  HOME */
/* PAGINA  HOME */
/* PAGINA  HOME */
/* PAGINA  HOME */


/* ===== CARD PRINCIPAL DA HOME (FUNDO TIPO DOWNLOADS) - AGORA SEM LIMITAÇÃO DE LARGURA ===== */
.home-card {
    /* max-width: 1400px; REMOVIDO para permitir que o fundo ocupe toda a largura disponível */
    width: 100%; /* Garante que ocupe a largura total do container pai (container pb-5) */
    margin: 2.5rem auto 0;
    padding: 3rem 3rem 3.5rem;
    background: radial-gradient(circle at top, #5a2724 0, #1a1010 45%, #0b0505 100%);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

.home-card h1,
.home-card h2,
.home-card h3,
.home-card h4,
.home-card h5,
.home-card h6,
.home-card p,
.home-card span,
.home-card td,
.home-card th {
    color: #ffffff;
}

.home-intro-text {
    max-width: 720px;
    margin: 0 auto;
}

.text-glow {
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

.decorator {
    width: 140px;
    height: 2px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(255, 215, 128, 0.9) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.home-section {
    margin-bottom: 2.5rem;
}

/* ===== CARDS DE RANKING (GUILD / BOSS / METINS) ===== */

.ranking-section-header {
    text-align: center;
}

.ranking-cards {
    margin-top: 2rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.75rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.ranking-card-wrapper {
    width: 31%;
    max-width: 300px; 
    min-width: 260px;
    display: flex;
}


/* Media Query para Responsividade: Em telas menores que 992px, os cards quebram a linha e são centralizados */
@media (max-width: 992px) {
    .ranking-cards {
        flex-wrap: wrap; 
        justify-content: center; 
    }
    .ranking-card-wrapper {
        width: 90%; 
        max-width: 400px;
        margin-bottom: 1.75rem; 
    }
}


.ranking-card {
    position: relative;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 128, 0.35);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    padding: 1.5rem 1.25rem 1.75rem;
    overflow: hidden;
    width: 100%;
}

.ranking-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #f7c96a, #cc8a2b);
}

.ranking-card-title {
    text-align: center; 
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.ranking-card-subtitle {
    text-align: center; 
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ranking-card .decorator {
    width: 100px;
    margin-bottom: 0.8rem;
}

/* tabelas de ranking dentro dos cards */
.table-ranking {
    font-size: 0.9rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.table-ranking thead th {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-color: #333 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #ffffff !important;
    text-align: center;
}

.table-ranking tbody tr td {
    vertical-align: middle;
    color: #ffffff;
    text-align: center;
}

.table-ranking tbody tr td:first-child {
    width: 48px;
}

.table-ranking img {
    display: inline-block;
}

/* ===== NOTÍCIAS - AJUSTES DE IMAGEM ===== */

.home-news-container {
    text-align: center;
}

.home-news-item {
    border-bottom: 1px solid rgba(255, 215, 128, 0.25);
    padding: 0.8rem 0;
    justify-content: center;
    max-width: 720px;
    margin: 0.8rem auto;
    align-items: center;
}

.home-news-item-image {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1.5rem;
    border: 1px solid rgba(255, 215, 128, 0.4);
}

.home-news-date-column {
    min-width: 60px;
    border-right: 1px solid rgba(255, 215, 128, 0.25);
    padding-right: 1rem;
    text-align: center;
}

.home-news-item-content {
    text-align: left;
    flex-grow: 1;
}

.home-news-title {
    color: #ffffff;
    text-decoration: none;
}

.home-news-title:hover {
    color: #ffd772;
    text-decoration: underline;
}

.home-news-category {
    color: #ffd772;
    font-size: 0.9rem;
    text-decoration: none;
}

.home-news-category:hover {
    text-decoration: underline;
}

.home-news-link {
    color: #ffd772;
    text-decoration: none;
}

.home-news-link:hover {
    text-decoration: underline;
}




/* PAGINA DE DOWNLOAD */
/* PAGINA DE DOWNLOAD */
/* PAGINA DE DOWNLOAD */
/* PAGINA DE DOWNLOAD */

/* ===== Página de Download – container geral ===== */

.download-page {
    display: flex;
    justify-content: center;
}

.download-card {
    max-width: 720px;
    margin: 2.5rem auto 0;
    padding: 3rem 3rem 3.5rem;
    background: radial-gradient(circle at top, #5a2724 0, #1a1010 45%, #0b0505 100%);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

/* título "Download" */

.download-title {
    font-size: 2.6rem;
    text-transform: capitalize;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.download-decorator {
    width: 140px;
    height: 2px;
    margin: 0.75rem auto 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(255, 215, 128, 0.9) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* textos */

.download-card p,
.download-card span {
    color: #fdfdfd;
    font-size: 0.98rem;
}

.download-step {
    margin-top: 1.75rem;
}

.download-step-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: #ffd890;
    font-weight: 600;
}

/* link "clicando aqui" */

.download-link-highlight {
    color: #ffcf6b;
    font-weight: 600;
    text-decoration: none;
}

.download-link-highlight:hover {
    text-decoration: underline;
}

/* ===== Ícones + botões lado a lado ===== */

/* linha dos ícones */
.download-providers-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 1rem;
}

.download-providers-icons img {
    max-height: 56px;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

/* linha dos botões */
.download-providers-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 0.6rem;
    margin-bottom: 1.5rem;
}

/* botões menores e não full-width */
.download-btn {
    display: inline-block;
    min-width: 110px;          /* menor que antes */
    padding: 4px 16px;
    font-size: 0.8rem;
    border-radius: 3px;
    border: 1px solid #c48829;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    width: auto;               /* garante que não fique 100% */
}

/* ===== Lista de componentes ===== */

.download-components-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
    text-align: left;
    max-width: 360px;
    margin-inline: auto;
}

.download-components-list li {
    margin-bottom: 0.3rem;
}

.download-components-list a {
    color: #ffcf6b;
    font-size: 0.96rem;
    text-decoration: none;
}

.download-components-list a:hover {
    text-decoration: underline;
}

/* container dos 3 hosts (Drive, Mega, Mediafire) */
.download-providers {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;              /* espaço horizontal entre colunas */
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* cada coluna: ícone + botão */
.download-provider {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-provider img {
    max-height: 56px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

/* botão menor e sem ocupar linha inteira */
.download-provider .download-btn {
    display: inline-block;
    min-width: 110px;
    padding: 4px 16px;
    font-size: 0.8rem;
    border-radius: 3px;
    border: 1px solid #c48829;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    width: auto;
}
