/* ==========================================================================
   MINESKY SMP - CLASSIC MINECRAFT LAUNCHER (SCULK EDITION)
   ========================================================================== */

/* Importação da fonte oficial exigida */
@import url('https://fonts.cdnfonts.com/css/minecraftia');

:root {
    --sculk-cyan: #00ddff;
    --sculk-blue-dark: #005b70;
    --gold-store: #efa81a;
    
    /* Cores do Launcher */
    --launcher-sidebar: #181818;
    --launcher-main-panel: #252525;
    --launcher-card: #121212; 
    --launcher-card-hover: #161616;
    --launcher-border: #3c3c3c;
    
    --text-white: #ffffff;
    --text-muted: #aaaaaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Minecraftia', sans-serif;
    user-select: none;
}

body {
    background-color: #03070b;
    color: var(--text-white);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* PLANO DE FUNDO: Textura Sculk em Looping */
.sculk-loop-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background-color: #03070b;
    background-image: 
        radial-gradient(rgba(0, 221, 255, 0.15) 2px, transparent 2px),
        radial-gradient(rgba(0, 91, 112, 0.3) 3px, transparent 3px);
    background-size: 32px 32px;
    animation: sculkScroll 12s linear infinite;
}

@keyframes sculkScroll {
    from { background-position: 0 0; }
    to { background-position: 64px 64px; }
}

/* Canvas de Partículas Quadradas */
#sculk-particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
}

/* JANELA LAUNCHER (Tamanho Ampliado) */
.launcher-window {
    position: absolute;
    width: 1200px;
    height: 780px;
    max-width: 95%;
    max-height: 90vh;
    background: var(--launcher-main-panel);
    border: 2px solid var(--launcher-border);
    display: flex;
    flex-direction: column;
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

/* Barra de Título */
.window-titlebar {
    height: 38px;
    background: #0f0f0f;
    border-bottom: 2px solid var(--launcher-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: grab;
}

.window-titlebar:active {
    cursor: grabbing;
}

.window-titlebar .title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
}

/* Botão de Menu Hambúrguer (Oculto no Desktop) */
.menu-toggle-btn {
    display: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-white);
    margin-right: 5px;
}
.menu-toggle-btn:hover {
    color: var(--sculk-cyan);
}

.window-controls {
    display: flex;
    gap: 15px;
}
.window-controls i { cursor: pointer; }
.window-controls i:hover { color: var(--sculk-cyan); }

/* Corpo Interno */
.launcher-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* SIDEBAR ESQUERDA */
.sidebar {
    width: 250px;
    background: var(--launcher-sidebar);
    border-right: 2px solid var(--launcher-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    transition: left 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}

/* Perfil do Jogador */
.account-widget {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--launcher-border);
    background: rgba(0,0,0,0.15);
}

.account-avatar {
    width: 36px;
    height: 36px;
    border: 2px solid var(--sculk-cyan);
}

.account-info .name {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-white);
}
.account-info .type {
    font-size: 0.7rem;
    color: var(--sculk-cyan);
}

.sidebar-category {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 12px 18px 4px;
    letter-spacing: 1px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    position: relative;
    transition: 0.1s;
}

.sidebar-menu li.active a {
    color: var(--text-white);
    background: var(--launcher-main-panel);
}

.sidebar-menu li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--sculk-cyan);
}

.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.03);
    color: var(--text-white);
}

/* Botão de Loja Especial */
.store-wrapper {
    padding: 8px 14px;
}

.btn-store-launcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: #111111;
    border: 2px solid var(--gold-store);
    color: var(--gold-store);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(239, 168, 26, 0.2);
    animation: storePulse 2s infinite alternate;
}

@keyframes storePulse {
    0% { box-shadow: 0 0 5px rgba(239, 168, 26, 0.1); border-color: #c08410; }
    100% { box-shadow: 0 0 12px rgba(239, 168, 26, 0.5); border-color: #ffd666; }
}

.btn-store-launcher:hover {
    background: #1c150c;
}

/* COPYRIGHT PEQUENO E MINIMALISTA */
.sidebar-footer {
    padding: 10px 18px;
    border-top: 1px solid var(--launcher-border);
    font-size: 0.6rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* CONTEÚDO DA DIREITA */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--launcher-main-panel);
}

.main-content::-webkit-scrollbar { width: 8px; }
.main-content::-webkit-scrollbar-track { background: var(--launcher-sidebar); }
.main-content::-webkit-scrollbar-thumb { background: var(--launcher-border); }

/* SISTEMA DE PÁGINAS/VIEWS */
.page-view {
    display: none;
}
.page-view.active {
    display: block;
}

/* Abas superiores */
.top-nav {
    display: flex;
    gap: 20px;
    padding: 12px 25px;
    background: var(--launcher-sidebar);
    border-bottom: 2px solid var(--launcher-border);
}

.top-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.top-nav a.active, .top-nav a:hover {
    color: var(--text-white);
    border-bottom-color: var(--sculk-cyan);
}

/* BANNER HERO */
.hero-banner {
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    border-bottom: 2px solid var(--launcher-border);
    overflow: hidden; /* Evita que as imagens ultrapassem os limites do banner */
}

/* Camadas de imagem de fundo */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    /* Controla a velocidade do efeito de fade (1.5 segundos) */
    transition: opacity 1.5s ease-in-out; 
    z-index: 1;
}

/* Classe que ativa a visibilidade da imagem */
.hero-bg.active {
    opacity: 1;
}

/* Camada estática do gradiente linear (fica acima das imagens de fundo) */
.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(37,37,37,0.3) 0%, rgba(37,37,37,0.95) 100%);
    z-index: 2;
    pointer-events: none; /* Garante que cliques passem através do gradiente */
}

/* Garante que o texto e botões fiquem acima de todos os fundos e funcionem cliques */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.minesky-logo-img {
    max-height: 110px;
    width: auto;
}

/* BARRA DE AÇÃO JOGAR */
.launcher-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e1e1e;
    border: 2px solid var(--launcher-border);
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    flex-wrap: wrap; 
    gap: 15px;
}

.version-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #111111;
    border: 2px solid var(--launcher-border);
    padding: 8px 12px;
}

.version-selector img { width: 28px; height: 28px; }
.version-info .title { font-size: 0.8rem; color: #fff; }
.version-info .sub { font-size: 0.7rem; color: var(--sculk-cyan); }

/* BOTÃO JOGAR VERDE */
.btn-play-minecraft {
    background: #3c8527;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold; 
    padding: 14px 65px;
    border: none;
    cursor: pointer;
    text-shadow: 1px 1px 0px #1c4510;
    border-top: 3px solid #52a535;
    border-left: 3px solid #52a535;
    border-right: 3px solid #204514;
    border-bottom: 4px solid #11250b;
    box-shadow: 0 4px 0px rgba(0,0,0,0.3);
}

.btn-play-minecraft:hover {
    background: #4caf50;
    border-top-color: #66bb6a;
    border-left-color: #66bb6a;
}

.btn-play-minecraft:active {
    transform: translateY(2px);
    border-top-width: 1px;
    border-left-width: 1px;
    border-bottom-width: 2px;
    box-shadow: 0 2px 0px rgba(0,0,0,0.3);
}

.server-status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}
.status-dot {
    width: 10px;
    height: 10px;
    background: #00ddff;
    border-radius: 50%;
}

/* ÁREAS DE CONTEÚDO */
.content-padding {
    padding: 30px;
}

.section-label {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--launcher-border);
    padding-bottom: 8px;
}
.section-label i { color: var(--sculk-cyan); }

/* NOVIDADES VERTICAIS */
.news-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.news-card-vertical {
    display: flex;
    background: var(--launcher-card);
    border: 2px solid var(--launcher-border);
    padding: 15px;
    gap: 20px;
    transition: 0.2s;
}

.news-card-vertical:hover {
    border-color: var(--sculk-cyan);
}

.news-card-img-container {
    width: 160px;
    height: 110px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--launcher-border);
}

.news-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-info {
    flex: 1;
}

.news-tag {
    font-size: 0.7rem;
    color: var(--sculk-cyan);
    margin-bottom: 4px;
}

.news-title {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #fff;
}

.news-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* SEÇÃO DE EQUIPE STAFF (FICHA DETALHADA - REFORMULADA) */
.staff-dossier-box {
    background: var(--launcher-card);
    border: 2px solid var(--launcher-border);
    padding: 25px 80px; /* Amplo espaçamento nas laterais para as setas absolutadas */
    position: relative;
    overflow: hidden;
}

/* Transição de Deslizamento Real e Suave */
.staff-showcase-panel {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease;
}

/* Pedestal com Glow Dinâmico */
.staff-pedestal-box {
    width: 200px;
    height: 280px;
    background: radial-gradient(circle at center bottom, rgba(0, 221, 255, 0.2) 0%, rgba(10,10,10,0.85) 70%);
    border: 2px solid var(--launcher-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.staff-skin-img {
    height: 250px;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.8));
    transition: 0.2s;
}

.staff-pedestal-box:hover .staff-skin-img {
    transform: scale(1.05);
}

.staff-details-panel {
    flex: 1;
}

.staff-role-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid;
    margin-bottom: 8px;
}

/* Estilo do Sub-cargo */
.staff-subrole-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: normal;
    border: 2px dashed var(--launcher-border);
    margin-bottom: 8px;
    color: var(--text-muted);
    margin-left: 8px;
    text-transform: uppercase;
}

.staff-nick-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-flag-img {
    width: 26px;
    height: auto;
    border: 1px solid var(--launcher-border);
    image-rendering: pixelated;
    display: inline-block;
}

.staff-bio-box {
    background: #181818;
    border: 2px solid var(--launcher-border);
    border-left: 4px solid var(--sculk-cyan);
    padding: 15px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Setas em posição absoluta perfeita no Desktop */
.btn-arrow-nav {
    background: var(--launcher-sidebar);
    border: 2px solid var(--launcher-border);
    color: var(--text-white);
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.prev-btn { left: 25px; }
.next-btn { right: 25px; }

.btn-arrow-nav:hover {
    border-color: var(--sculk-cyan);
    color: var(--sculk-cyan);
}

/* SISTEMA TOAST */
#toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #3c8527;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.85rem;
    border: 2px solid #52a535;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    opacity: 0;
    transition: 0.3s;
    z-index: 1000;
}

#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* RESPONSIVIDADE E ADAPTAÇÃO MOBILE */
@media (max-width: 1024px) {
    .launcher-window { 
        width: 100vw !important; 
        height: 100vh !important; 
        inset: 0 !important; 
        max-width: 100% !important;
        max-height: 100% !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
    }
    
    .menu-toggle-btn {
        display: block;
    }

    .sidebar { 
        position: absolute;
        left: -260px;
        top: 38px;
        bottom: 0;
        width: 250px;
        height: calc(100% - 38px);
        z-index: 99;
        border-right: 2px solid var(--launcher-border);
    }
    
    .launcher-window.sidebar-open .sidebar {
        left: 0;
    }
    
    .staff-showcase-panel { flex-direction: column; text-align: center; }
    .staff-bio-box { border-left: none; border-top: 4px solid var(--sculk-cyan); }
}

@media (max-width: 768px) {
    .launcher-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .version-selector {
        width: 100%;
        justify-content: center;
    }
    
    .btn-play-minecraft {
        width: 100%;
        padding: 14px 20px;
    }
    
    .server-status-badge {
        width: 100%;
        justify-content: center;
    }

    .news-card-vertical {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .news-card-img-container {
        width: 100%;
        height: 180px;
    }

    /* SISTEMA DE GRID DA STAFF PARA MOVER AS SETAS ABAIXO */
    .staff-dossier-box {
        display: grid;
        grid-template-areas: 
            "showcase showcase"
            "prev next";
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 20px;
    }

    .staff-showcase-panel {
        grid-area: showcase;
    }

    .prev-btn {
        grid-area: prev;
        justify-self: end;
        position: static;
        transform: none;
    }

    .next-btn {
        grid-area: next;
        justify-self: start;
        position: static;
        transform: none;
    }
}

@media (max-width: 480px) {
    /* Diminui suavemente o pedestal em telas muito estreitas */
    .staff-pedestal-box {
        width: 160px;
        height: 230px;
    }
    .staff-skin-img {
        height: 200px;
    }
    .staff-nick-title {
        font-size: 1.5rem;
    }
}