@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Poppins:wght@300;400&family=Bangers&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px rgba(142, 68, 173, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.5);
  }
  100% {
    box-shadow: 0 0 5px rgba(142, 68, 173, 0.2);
  }
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0c0a18;
    color: #e0e0e0;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.hidden {
    display: none !important;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(18, 15, 35, 0.8);
    border-bottom: 1px solid #4a3a96;
}

.logo h1 {
    font-family: 'Bangers', cursive;
    color: #cda5ff;
    font-size: 2.0rem;
}

.user-options {
    display: flex;
    align-items: center;
}

.user-options a {
    margin-left: 1.5rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.user-options a:hover {
    color: #ffffff;
}

.download-button {
    background-color: #8e44ad;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
    transition: background-color 0.3s ease;
    background: linear-gradient(120deg, #8e44ad, #9b59b6, #8e44ad, #cda5ff);
    background-size: 300% 300%; /* Background maior que o botão para permitir a animação */
    transition: background-position 0.5s ease;
}

.download-button:hover {
    background-color: #9b59b6;
    color: #fff;
    animation: gradient-animation 4s ease infinite; /* Ativa a animação no hover */
    transform: translateY(-4px); /* Move o botão 4 pixels para cima */
    box-shadow: 0 10px 20px rgba(142, 68, 173, 0.4); /* Cria a sombra roxa */
}

.download-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(142, 68, 173, 0.5);
}

.download-button.disabled {
    /* --- Estilo Base (Listras) --- */
    background-color: #3e314d;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.2) 10px,
        rgba(0,0,0,0.2) 20px
    );
    color: #a7a7a7;
    border: 1px solid #5d496e;
    opacity: 0.8;
    
    /* --- Bloqueio de Clique (Essencial) --- */
    cursor: not-allowed !important;
    pointer-events: none !important;

    /* --- Animação de Brilho (O Efeito) --- */
    animation: pulse-glow 3s infinite ease-in-out;
}

.language-selector {
    position: relative;
    display: inline-block;
    margin-right: 1.5rem;
}

.language-current {
    background-color: transparent;
    color: #e0e0e0;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #4a3a96;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.language-dropdown {
    display: none; /* Começa escondido */
    position: absolute;
    background-color: #120f23;
    min-width: 120px;
    border: 1px solid #4a3a96;
    border-radius: 5px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    list-style: none;
    padding: 0;
    right: 0;
}

/* A MÁGICA: Mostra o dropdown quando o mouse está sobre o container pai */
.language-selector:hover .language-dropdown {
    display: block;
}

.language-dropdown a {
    color: #e0e0e0;
    padding: 12px 16px;
    display: block;
    margin: 0 !important;
    transition: background-color 0.2s;
}

.language-dropdown a:hover {
    background-color: rgba(74, 58, 150, 0.5);
    color: #fff;
}

.language-selector.show .language-dropdown {
    display: block;
}

#userProfile {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 3rem; 
}

#userProfilePic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #cda5ff;
    margin-right: 12px;
}

.user-currency-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.currency-icon {
    margin-right: 6px;
    font-size: 1rem;
    opacity: 0.8;
}

.profile-container {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    padding: 5px 15px 5px 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.profile-container:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 65px; 
    right: 0;
    background-color: #1a162e;
    border: 1px solid #4a3a96;
    border-radius: 8px;
    width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    overflow: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform: translateY(-10px);
}


#userProfile:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0e0e0;
}

.dropdown-menu a {
    color: #e0e0e0;
    padding: 12px 16px;
    display: block;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: rgba(74, 58, 150, 0.5);
    color: #fff;
}

.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    background-color: #4a3a96;
}

.main-container {
    display: flex;
    height: calc(100vh - 70px);
}

.sidebar {
    width: 240px;
    background-color: #120f23;
    padding: 2rem 1rem;
    border-right: 1px solid #4a3a96;
}

.main-nav ul {
    list-style: none;
}

.main-nav .nav-link {
    position: relative;
    z-index: 2;
    display: block;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #a7a7a7;
    transition: color 0.3s ease;
    position: relative; /* Já deve existir, mas confirme */
    overflow: hidden; /* Esconde a seta quando ela está fora */
}

.main-nav .nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(205, 165, 255, 0.7);
}

.main-nav .nav-link::after {
    content: '>';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translate(200%, -50%); /* Começa escondida à direita e centralizada verticalmente */
    transition: transform 0.3s ease-in-out;
    font-weight: bold;
    color: #fff;
}

.main-nav .nav-link:hover::after {
    transform: translate(0, -50%); /* Move a seta para a posição visível */
}

.main-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 58, 150, 0.5);
    border-radius: 8px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.main-nav .nav-link.active {
    color: #ffffff;
    font-weight: bold;
}

.main-nav .nav-link.active::before {
    transform: scaleX(1);
}

.content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/*.home-image {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    display: block;
    margin: left;
    object-fit: contain;
}*/

.content-section h2 {
    font-family: 'Orbitron', sans-serif;
    color: #cda5ff;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #4a3a96;
    padding-bottom: 0.5rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background-color: #1a162e;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #4a3a96;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    display: none;
}

.modal-overlay.active .modal-container.active {
    display: block;
}

.modal-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
}

.modal-container form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #a7a7a7;
}

.modal-container form input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background-color: #0c0a18;
    border: 1px solid #4a3a96;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #8e44ad;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #9b59b6;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #a7a7a7;
    font-size: 2rem;
    cursor: pointer;
}

.modal-container p {
    text-align: center;
    margin-top: 1rem;
}

.modal-container p a {
    color: #cda5ff;
    font-weight: bold;
    text-decoration: underline;
}

.modal-container form {
    margin-bottom: 1rem;
}

.modal-container h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #a7a7a7;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #332d4e;
}

.modal-divider {
    height: 1px;
    background-color: #332d4e;
    margin: 2rem 0;
}

#changePictureForm input[type="file"] {
    background-color: #0c0a18;
    border: 1px solid #4a3a96;
    border-radius: 5px;
    color: #e0e0e0;
    padding: 0.8rem;
    width: 100%;
    margin-bottom: 1rem;
}

#uploadProgress {
    width: 100%;
    margin-bottom: 1rem;
}

#discord-widget {
    text-align: center;
    padding: 20px;
    border: 1px solid #4a3a96;
    border-radius: 8px;
    margin-top: 1rem;
}

#discord-widget h2 {
    color: #8e44ad;
    margin-bottom: 1rem;
}

#discord-widget iframe {
    width: 450px;
    height: 500px;
}

#cash-shop-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.cash-product {
    background-color: #1a162e;
    border: 1px solid #4a3a96;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cash-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(74, 58, 150, 0.3);
}

.cash-product h3 {
    color: #cda5ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.cash-product .product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin: 1rem 0;
}

.buy-button {
    background-color: #27ae60;
    color: white;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.buy-button:hover {
    background-color: #2ecc71;
}

#cash-shop-unavailable p {
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
    background-color: #1a162e;
    border-radius: 8px;
    border: 1px solid #4a3a96;
}

#resendVerificationContainer {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #c0392b;
    border-radius: 5px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.error-message {
    color: #ff7675;
    font-size: 0.9rem;
    margin: 0 0 8px 0 !important;
    text-align: center !important;
}

#resendVerificationContainer a {
    color: #fab1a0 !important;
    text-decoration: underline !important;
    font-size: 0.9rem;
}

p {
    font-family: 'Bangers', cursive;
    color: rgb(132, 64, 187);
    font-size: 20px;
}

#banForm textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background-color: #0c0a18;
    border: 1px solid #4a3a96;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
}

#banForm select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background-color: #0c0a18;
    border: 1px solid #4a3a96;
    border-radius: 5px;
    color: #e0e0e0;
}

.ban-button {
    background-color: #c0392b !important; /* Cor vermelha para indicar perigo */
}
.ban-button:hover {
    background-color: #e74c3c !important;
}

.form-button-group {
    display: flex;
    gap: 1rem; /* Espaço entre os botões */
}

.unban-button {
    background-color: #27ae60 !important; /* Cor verde */
}
.unban-button:hover {
    background-color: #2ecc71 !important;
}

#home.content-section.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;

    background-image: 
        linear-gradient(rgba(12, 10, 24, 0.6), rgba(12, 10, 24, 0.6)), /* Camada escura para facilitar a leitura */
        url('images/Inicial.png'); /* Sua imagem de fundo */

    background-size: cover; /* Faz a imagem cobrir toda a área sem distorcer */
    background-position: center center; /* Centraliza a imagem */
    background-repeat: no-repeat;
}

/* Estilos para o conteúdo sobreposto ao background */
.hero-content {
    text-align: center;
    color: #fff;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem; /* Tamanho grande para o título */
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7); /* Sombra para destacar o texto */
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
}

.hero-button {
    background-color: #8e44ad;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-button:hover {
    background-color: #9b59b6;
    transform: scale(1.05);
}

.splide__slide {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.splide__slide.is-active {
    opacity: 1; /* Slide ativo fica com opacidade total */
}

.splide__slide img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Bordas arredondadas para as imagens */
    display: block;
}

.splide__arrow {
    background-color: rgba(12, 10, 24, 0.7); /* Fundo das setas */
}

.splide__arrow svg {
    fill: #cda5ff; /* Cor das setas */
}