/* ===== RESET E PADRÕES GLOBAIS ===== */
body {
    background-color: #1e1e2d; /* Uma cor de fundo sólida caso o GIF demore a carregar */
    background-image: url('https://i.imgur.com/kPlMuF0.gif'); /* <<< SEU NOVO GIF AQUI */
    background-size: cover; /* Faz o GIF cobrir toda a tela, sem repetir */
    background-attachment: fixed; /* Mantém o fundo fixo durante o scroll */
    background-position: center; /* Centraliza o GIF */
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    font-size: 14px;
}

/* ===== ESTRUTURA PRINCIPAL (CORRIGIDO!) ===== */
.site-container {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    grid-template-rows: auto 1fr; 
    grid-template-areas:
        "header-area header-area header-area"
        "sidebar-left main-content sidebar-right";
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

/* ===== ATRIBUIÇÃO DE ÁREAS DO GRID ===== */
.header-area { grid-area: header-area; }
.sidebar-left { grid-area: sidebar-left; }
.main-content { grid-area: main-content; }
.sidebar-right { grid-area: sidebar-right; }

/* ===== ESTILO DAS CAIXAS/BLOCOS ===== */
.sidebar-left,
.main-content,
.sidebar-right {
    background-color: rgba(22, 22, 31, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    align-self: start;
}

/* ===== LINKS E MENU ===== */
a { color: #8ab4f8; text-decoration: none; transition: color 0.2s ease-in-out; }
a:hover { color: #b3ceff; }

.sidebar-left h3, .sidebar-right h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
    font-size: 1.2em;
}

.sidebar-left ul { list-style: none; padding: 0; margin: 0; }
.sidebar-left li a { display: block; padding: 10px 15px; margin: 2px 0; color: #e0e0e0; text-decoration: none; border-radius: 5px; transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; }
.sidebar-left li a:hover { background-color: rgba(138, 180, 248, 0.1); color: #fff; }

/* Estilos para o conteúdo principal */
.main-content h1 { font-size: 1.8em; color: #fff; margin-top: 0; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.main-content p { line-height: 1.6; margin-bottom: 10px; }

/* ===== ESTILOS DE FORMULÁRIO ===== */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #ccc; }
.form-group input[type="text"], .form-group input[type="password"], .form-group input[type="email"] { width: 100%; padding: 10px; box-sizing: border-box; background-color: #16161f; border: 1px solid rgba(255, 255, 255, 0.1); color: #e0e0e0; border-radius: 5px; font-size: 1em; }
.form-group input:focus { outline: none; border-color: #8ab4f8; }
.form-button { width: 100%; padding: 12px; font-size: 1em; background: linear-gradient(to right, #4a90e2, #8ab4f8); border: none; border-radius: 5px; color: #fff; font-weight: bold; cursor: pointer; transition: all 0.2s ease-in-out; }
.form-button:hover { opacity: 0.9; box-shadow: 0 0 10px rgba(74, 144, 226, 0.5); }
.form-message { text-align: center; padding: 12px; border-radius: 5px; margin-bottom: 15px; color: #fff; font-weight: 500; }
.error { background-color: rgba(220, 53, 69, 0.5); border: 1px solid #dc3545; }
.success { background-color: rgba(40, 167, 69, 0.5); border: 1px solid #28a745; }

/* ===== ESTILOS DO DASHBOARD (CARDS DE PERSONAGEM) ===== */
.character-card { background-color: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-left: 3px solid #8ab4f8; padding: 15px 20px; margin-bottom: 15px; border-radius: 5px; transition: all 0.2s ease-in-out; }
.character-card:hover { background-color: rgba(0, 0, 0, 0.3); border-left-color: #a1c8ff; }
.character-name { font-size: 1.5em; font-weight: bold; color: #fff; margin: 0 0 5px 0; }
.character-details { font-size: 0.9em; color: #ccc; }
.character-details span { color: #fff; font-weight: 500; }

/* ===== WIDGETS (TOP5 E STATUS) ===== */
.widget-box { width: 100%; margin-bottom: 20px; }
.widget-box h3 { margin-top: 0; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-weight: 500; font-size: 1.2em; }
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li { display: flex; justify-content: space-between; padding: 8px 5px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.widget-list li:last-child { border-bottom: none; }
.widget-list .rank { font-weight: bold; color: #8ab4f8; margin-right: 10px; }
.widget-list .name { flex-grow: 1; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-list .level { font-weight: 500; color: #fff; }
.server-status .status-indicator { padding: 8px; border-radius: 5px; text-align: center; font-weight: bold; color: #fff; margin-bottom: 10px; text-transform: uppercase; font-size: 1.1em; }
.server-status .status-indicator.online { background-color: #28a745; box-shadow: 0 0 10px rgba(40, 167, 69, 0.7); }
.server-status .status-indicator.offline { background-color: #dc3545; box-shadow: 0 0 10px rgba(220, 53, 69, 0.7); }
.server-status p { margin: 0; text-align: center; }

/* ===== LOGO E ANIMAÇÃO ===== */
.logo-container { text-align: center; padding: 10px 0; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.logo-container img { max-width: 80%; height: auto; animation: float 3s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); } }

/* ===== DOWNLOAD ===== */
.download-section { text-align: center; padding: 30px 0; }
.download-button { display: inline-block; background: linear-gradient(to right, #28a745, #218838); color: #fff; padding: 15px 30px; font-size: 1.2em; font-weight: bold; text-decoration: none; border-radius: 5px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.download-button:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4); color: #fff; text-decoration: none; }
.instructions-list { padding-left: 20px; line-height: 1.8; }
.instructions-list li { margin-bottom: 5px; }

/* ===== LINKS SOCIAIS ===== */
.social-links { text-align: center; padding: 20px 0; margin-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.social-icon { display: inline-block; font-size: 2em; margin: 0 15px; transition: all 0.2s ease-in-out; }
.social-icon:hover { transform: scale(1.1); }
.social-icon.whatsapp { color: #25D366; }
.social-icon.discord { color: #7289DA; }

/* ===== INÍCIO DOS ESTILOS DA LOJA (VERSÃO MELHORADA) ===== */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.shop-category-title {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
}
.shop-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.shop-card .card-image {
    width: 100%;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.shop-card .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.shop-card .card-content {
    padding: 15px;
    flex-grow: 1;
}
.shop-card .card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #fff;
    min-height: 44px;
}
.shop-card .card-content p {
    margin: 0;
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.4;
    min-height: 40px;
}
.shop-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.shop-card .price { font-weight: bold; color: #ffd700; }
.shop-card .buy-button { background-color: #28a745; color: #fff; padding: 8px 15px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.2s; }
.shop-card .buy-button:hover { background-color: #218838; color: #fff; }
.package-contents {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.package-contents strong { color: #fff; }
.package-contents-list { list-style: none; padding: 0; margin: 5px 0 0 0; }
.package-contents-list li { display: flex; align-items: center; font-size: 0.9em; margin-bottom: 5px; color: #ccc; }
.package-contents-list li img { width: 24px; height: 24px; margin-right: 8px; background-color: rgba(255,255,255,0.1); border-radius: 4px; padding: 2px; }
/* ===== FIM DOS ESTILOS DA LOJA ===== */

/* ========================================= */
/* Estilos para a Caixa de Doação (PokeRoxy) */
/* ========================================= */
.donation-box {
    background-image: url('../img/fundo-animado.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2a0050;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
.donation-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    border-radius: 12px;
}
.donation-box > * { position: relative; z-index: 2; }
@keyframes rainbow-text { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.donation-box h1 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ff70a6, #ff9770, #ffd670, #70d6ff, #ff70a6);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbow-text 4s linear infinite;
}
.donation-box p,
.donation-box label { color: #ffffff; }
.donation-box label { font-weight: bold; display: block; margin-bottom: 15px; }
.donation-box input[type="number"] {
    width: calc(100% - 20px);
    padding: 12px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #7a00ff;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    position: relative;
    z-index: 2;
}
.donation-box .conversor-resultado { margin-top: 25px; font-size: 24px; font-weight: bold; color: #ffd700; }
.donation-box button { background-color: #00aaff; color: white; font-size: 18px; font-weight: bold; padding: 15px; border: none; border-radius: 6px; cursor: pointer; width: 100%; margin-top: 30px; transition: background-color 0.2s; }
.donation-box button:hover { background-color: #0088cc; }

/* ========================================= */
/* Estilo para o Widget de Últimas Capturas  */
/* ========================================= */
.captures-widget {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}
.captures-widget h3 { margin-top: 0; color: #61dafb; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 10px; margin-bottom: 10px; font-weight: bold; }
.captures-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    max-height: 100px;
    overflow-y: auto;
    padding-right: 5px;
}
.captures-widget li { padding: 8px 5px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: #ccc; }
.captures-widget li:last-child { border-bottom: none; }
.captures-widget .player-name { font-weight: bold; color: #ffffff; }
.captures-widget .pokemon-name { font-weight: bold; color: #ffd700; }
/* ===== ESTILOS DO WIDGET DE RÁDIO ===== */

/* 1. Keyframes para a animação do fundo RGB */
@keyframes rgb-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Keyframes para o texto rolando (marquee) */
@keyframes marquee-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 3. Estilo do painel principal da rádio */
.radio-widget {
    padding: 0; /* Removemos o padding padrão para o efeito preencher tudo */
    overflow: hidden; /* Essencial para o texto rolando funcionar */
    border: 2px solid #fff; /* Borda branca para destacar */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: rgb-flow 10s ease infinite; /* Aplica a animação RGB */
}

/* 4. Estilo do container do texto que rola */
.marquee-container {
    background-color: rgba(0, 0, 0, 0.5); /* Fundo escuro para o texto */
    padding: 8px 0;
    width: 100%;
    white-space: nowrap; /* Impede que o texto quebre a linha */
    overflow: hidden;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%; /* Inicia o texto fora da tela */
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    animation: marquee-scroll 15s linear infinite; /* Aplica a animação de rolagem */
}

/* 5. Estilo da área 'Tocando Agora' */
.now-playing {
    padding: 15px;
    text-align: center;
}

.now-playing i {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 5px;
}

.now-playing span {
    display: block;
    font-size: 0.9em;
    color: #ddd;
    text-transform: uppercase;
}

.now-playing p {
    margin: 5px 0 0 0;
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
}
/* ===== ESTILOS DA FAIXA DO TOPO (HEADER) ===== */

/* 1. Keyframes para a animação de brilho do texto */
@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #61dafb, 0 0 20px #61dafb;
    }
    50% {
        text-shadow: 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #8ab4f8, 0 0 25px #8ab4f8;
    }
}

/* 2. Estilo da área principal da faixa */
.header-area {
    grid-area: header-area; /* Já estava definido, mas é bom saber */
    background: linear-gradient(to bottom, rgba(10, 10, 20, 0.95), rgba(30, 30, 45, 0.85));
    padding: 15px;
    border-bottom: 2px solid rgba(138, 180, 248, 0.5);
    border-radius: 8px;
    margin-bottom: 20px; /* Adiciona um espaço para separar do resto do conteúdo */
    text-align: center;
}

/* 3. Estilo do nome do servidor na faixa */
.server-name-banner {
    margin: 0;
    font-size: 2.5em;
    color: #fff;
    font-weight: bold;
    /* Aplica a animação de brilho */
    animation: text-glow 4s ease-in-out infinite;
}

/* 4. Estilo da mensagem do dia (MOTD) */
.motd-banner {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #ccc;
}