/* 
 * © 2024 ZeroCrazy. Todos los derechos reservados. 
 * Este arquivo foi limpo para uso no structure.html (home).
 */

@font-face {
    font-family: 'Trajan Pro Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Trajan Pro Regular'), url('../webfonts/TrajanPro-Regular.ttf') format('woff');
}

@font-face {
    font-family: 'Trajan Pro Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Trajan Pro Bold'), url('../webfonts/TrajanPro-Bold.otf') format('woff');
}

:root {
    --primary-bg: #000;
    --text-color: #ecd6b4;
    --accent-color: #c88c15;
    --link-hover: #f4b978;
}

body {
    padding: 0;
    margin: 0;
    background-color: #000;
    overflow-x: hidden;
}

/* =============================
   BACKGROUND DE VÍDEO
   ============================= */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* =============================
   CONTAINER PRINCIPAL
   ============================= */
.container {
    max-width: 1460px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================
   LAYOUT 3 COLUNAS HOME
   ============================= */
.main-layout {
    display: flex;
    justify-content: center;
    align-items: stretch;   /* faz as colunas “puxarem” em altura */
    flex-wrap: nowrap;
    gap: 10px;              /* espaçamento entre slider e cards laterais */
}

.col-left,
.col-middle,
.col-right,
.col-full {
    position: relative;
    padding: 0 10px;
    box-sizing: border-box;
}

.main-layout .col-left,
.main-layout .col-middle,
.main-layout .col-right {
    display: block;
}

/* Colunas laterais fixas e mais estreitas */
.col-left,
.col-right {
    flex: 0 0 260px;        /* deixa as laterais mais finas */
    max-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 5px;              /* espaço entre os cards da coluna */
}

/* Central cresce ocupando o resto */
.col-middle {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 1400px) {
    .main-layout {
        gap: 10px;
    }

    .col-middle {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
}

@media (max-width: 1080px) {
    .main-layout {
        flex-wrap: wrap;
    }

    .main-layout .col-left,
    .main-layout .col-middle,
    .main-layout .col-right {
        flex: 1 1 100%;
        width: 100%;
        margin-left: 0;
        padding: 0 5px;
    }

    .main-layout .col-middle {
        order: 2;
    }

    .main-layout .col-left {
        order: 1;
    }

    .main-layout .col-right {
        order: 3;
    }
}

/* Fundo “faixa” inferior que você usa logo depois do container */
.col-full {
    background: transparent;
    width: 100%;
    padding: 0;
    height: 1241px;
    margin-top: -900px;
    margin-bottom: -110px;
    z-index: -10;
}

/* =============================
   CARDS GENÉRICOS (Top10, Stats, Slider, etc.)
   ============================= */
.card {
    margin-bottom: 5px;
    width: 100%;
}

.card-title {
    font-family: 'Trajan Pro Regular';
    color: #ca9020;
    border-bottom: 2px solid #141212;
    text-align: center;
    background: url('../images/top-light-card.png') no-repeat 50% 50% #0f0e0e;
    background-size: contain;
    font-size: 14px !important;
    text-shadow: 0px 1px 0px #9d7933;
    padding: 14px 0;
}

.card-body {
    background-color: #141212;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: inset 0px -4px 13px 0px hsl(0deg 0% 0% / 50%);
}

/* =============================
   BOTÃO DE DOWNLOAD (COLUNA DIREITA)
   ============================= */
.btn-download-link {
    display: block;
    text-decoration: none;
}

.btn-download {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    max-width: 100%;
    width: 280px;
    height: 109px;
    background-image: url('/images/download_button.png');
    background-size: 840px 109px;
    background-position: 0 0;
    color: #fffbf6;
    text-shadow: 0px 1px #4e3615;
    font-size: x-large;
    font-family: 'Trajan Pro Bold';
    text-transform: uppercase;
    text-decoration: none;
    user-select: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: filter 0.3s ease;
}

/* Hover */
.btn-download:hover {
    background-position: -280px 0;
}

/* Ativo (clicando) */
.btn-download:active {
    background-position: -560px 0;
}

/* Ícone dentro do botão */
.btn-download .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================
   ESTATÍSTICAS (CARD "Estatísticas")
   ============================= */
.card.statistics ul {
    margin: 0;
    padding: 10px 20px;
    list-style: none;
}

.card.statistics ul li {
    display: block;
    background-color: #0f0e0e;
    margin-bottom: 5px;
    padding: 10px 9px;
    border-bottom: 1px solid #85604b;
    color: #ffffff;
    font-family: 'Trajan Pro Bold';
    font-size: 12px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.card.statistics ul li:hover {
    transform: translateX(5px);
    background-color: #1a1312;
}

.card.statistics ul li strong {
    float: right;
    color: #c88c15;
}

/* =============================
   RANKING (Top 10 Jogadores)
   ============================= */
.ranking {
    width: 100%;
    border-collapse: collapse;
    background-color: #0d0c0c;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 12px;
}

.ranking th,
.ranking td {
    padding: 8px;
    text-align: left;
    border-bottom: 2px solid #141212;
}

.ranking thead {
    background-color: #141212;
}

.ranking th {
    font-weight: bold;
    color: #9d7933;
}

.ranking tbody tr {
    transition: background-color 0.3s, transform 0.2s ease;
}

.ranking tbody tr:hover {
    transform: translateX(5px);
    background-color: #1a1312;
}

.ranking tbody tr:last-child td {
    border-bottom: none;
}

/* Coluna posição (#) */
.ranking tbody td:nth-child(1) {
    background-color: #0d0c0c;
    text-align: center;
    font-weight: 900;
    font-family: sans-serif;
    color: #ecd6b4;
    text-shadow: 0px 1px 0px #ecd6b4;
}

/* Nome / Classe / Nível */
.ranking tbody td:nth-child(2),
.ranking tbody td:nth-child(3),
.ranking tbody td:nth-child(4),
.ranking tbody td:nth-child(5) {
    color: #ecd6b4;
}

/* Centralizar algumas colunas do head */
.ranking thead th:nth-child(1),
.ranking thead th:nth-child(3),
.ranking thead th:nth-child(4),
.ranking thead th:nth-child(5) {
    text-align: center;
}

/* Centralizar colunas específicas no body */
.ranking tbody td:nth-child(3),
.ranking tbody td:nth-child(4),
.ranking tbody td:nth-child(5) {
    text-align: center;
}

/* Imagem da posição (1º, 2º, 3º) */
.rank-icon {
    width: 20px;
    height: 20px;
}

/* Ícone de classe */
.class-icon {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto;
}

/* Bandeira de império */
.empire-flag {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto;
}

/* Cores para reinos (caso use em outro lugar) */
.Jinno {
    color: #6871e7 !important;
}
.Shinsoo {
    color: #e22727 !important;
}
.Chunjo {
    color: #dfd02d !important;
}

/* Container para ícone de ranking em sprite */
.ranking-container {
    width: 20px;
    height: 20px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.ranking-position-img {
    position: relative;
    top: -9px;
    left: -9px;
    width: 38px;
    height: 38px;
    display: block;
}

/* =============================
   SLIDER (COLUNA CENTRAL)
   ============================= */
.slider {
    background-color: transparent;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.slider .card-body {
    position: relative;
    width: 100%;
    height: 282px;
}

.slider .slide {
    display: none;
    padding: 0;
    text-align: center;
    height: 282px;
    background-size: cover;
    background-position: center;
}

.slider .slide.active {
    display: block;
}

.slider .slide .content {
    bottom: 0;
    position: absolute;
    text-align: left;
    padding: 0 20px;
    width: 100%;
    background-color: rgb(23 11 2 / 70%);
    font-family: 'Trajan Pro Bold';
}

.slider .slide .content h2 {
    color: #ecd6b4;
    font-family: 'Trajan Pro Bold';
    margin-bottom: 0;
}

.slider .slide .content p {
    opacity: 0.7;
    color: #ecd6b4;
    font-family: sans-serif;
    font-weight: 100;
    font-size: 14px;
    margin-top: 0;
}

.slider button {
    background-color: rgb(46 15 6 / 10%);
    transition: 0.5s;
    color: #fffbec;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.slider button.prev {
    left: 10px;
}

.slider button.next {
    right: 10px;
}

.slider button:hover {
    background-color: #48271a;
}



/* ===========================
   CARDS LATERAIS MAIORES E MAIS QUADRADOS
   =========================== */

/* ===========================
   AJUSTE CARDS LATERAIS + FONTE + ÍCONES
   =========================== */

/* Espaço entre colunas */
.main-layout {
    display: flex;
    gap: 22px;
}

/* Colunas laterais mais largas */
.col-left,
.col-right {
    flex: 0 0 360px;       /* largura fixa maior */
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Coluna do meio ocupa o resto */
.col-middle {
    flex: 1 1 auto;
    min-width: 0;
}

/* ===========================
   CARDS + FONTES
   =========================== */

.card {
    background: #0f0e0e;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
    border: 1px solid #1f140e;
    overflow: hidden;
}

/* Título dos cards maior */
.card-title {
    font-size: 17px !important;
}

/* Texto dos cards levemente maior */
.card.statistics ul li,
.card .card-body {
    font-size: 14px;
}

/* ===========================
   RANKING: FONTES + ÍCONES
   =========================== */

.ranking-top10 th,
.ranking-top10 td {
    font-size: 14px;
    padding: 7px 9px;
}

/* Ícones maiores no ranking */
.ranking-top10 .rank-icon,
.ranking-top10 .class-icon,
.ranking-top10 .empire-flag {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Centraliza bem o card do DOWNLOAD e evita corte */
.col-right .card:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
}

.col-right .btn-download {
    width: 280px;
    max-width: 100%;
}

/* Responsivo: em telas menores, reduz um pouco as laterais */
@media (max-width: 1200px) {
    .col-left,
    .col-right {
        flex: 0 0 320px;
        max-width: 320px;
    }
}