/* === VARIÁVEIS GLOBAIS (TEMA) === */
:root {
  --primary: #007bff;
  --dark-bg: rgba(11, 11, 11, 0.9);
  --light-text: #ffffff;
  --border-color: #007bff;
  --card-bg: rgba(26, 26, 26, 0.85);
  --success-color: #28a745;
  --danger-color: #dc3545;
}

/* === RESET E BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0b0b0b;
  color: var(--light-text);
  overflow-x: hidden;
  background-image: url('https://images.unsplash.com/photo-1526485628178-b11c580413ce?q=80&w=1974&auto=format&fit=crop');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  opacity: 0.3;
  margin-bottom: 15px;
}

/* === EFEITO DE FUNDO (RAIOS) === */
.light-rays {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(0, 123, 255, 0.05), transparent 40%),
              radial-gradient(circle at 70% 70%, rgba(0, 123, 255, 0.05), transparent 40%);
  animation: lightmove 6s linear infinite;
  z-index: 0;
}

@keyframes lightmove {
  0% { background-position: 30% 30%, 70% 70%; }
  50% { background-position: 40% 20%, 60% 80%; }
  100% { background-position: 30% 30%, 70% 70%; }
}

/* === BANNER === */
.bn {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background-color: var(--card-bg);
}

/* === LAYOUT GRID === */
.grid-container-3col {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

/* Definições de grid para Desktop */
.grid-main-dashboard {
  grid-template-columns: 1fr 2fr 1fr; /* Info (1) | News (2) | Buttons (1) */
  /* CORREÇÃO FINAL DA ALTURA: O default é 'stretch' */
}
.grid-market {
  grid-template-columns: 1fr 1.5fr 1fr;
}
.grid-info {
  grid-template-columns: 1fr 1fr 1fr;
}

/* === ESTILO DE CARD PADRÃO === */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 250px;
  text-align: center;
}

.card h3, .card h4 {
  margin-bottom: 15px;
  font-family: 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

.card h4 {
  color: var(--light-text);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  text-align: center;
}

.card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.25);
  border-color: #fff;
}
.card-content-include {
  flex-grow: 1;
  overflow: hidden;
}

/* === CARDS ESPECÍFICOS === */

/* Card: Player Info */
.player-info {
  /* Permite que o Grid estique este card */
  min-height: auto; 
}
.player-info p { 
  margin-bottom: 12px; 
  font-size: 0.95rem; 
  line-height: 1.4;
  text-align: center;
}
.player-info strong { 
  color: #aaa;
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.player-info .highlight { 
  color: var(--primary); 
  font-weight: bold; 
  font-size: 1.1rem;
}
.player-info .highlight-wallet { 
  color: #ccc; 
  font-size: 0.9rem; 
  word-break: break-all; 
}
.player-info .highlight-success { 
  color: var(--success-color); 
  font-weight: bold; 
  font-size: 1.2rem; 
}

/* Card: Info Boxes (Rodapé) */
.info-box {
  font-size: 0.9rem;
  line-height: 1.6;
  justify-content: flex-start;
  min-height: auto;
}
.info-box p {
  margin-bottom: 10px;
}

/* Card: Botões */
.button-menu {
  justify-content: flex-start;
  /* Permite que o Grid estique este card */
  min-height: auto; 
}

/* === GRUPO DE BOTÕES === */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.btn-group button {
  display: block;
  width: 100%;
  padding: 12px 10px;
  background-color: transparent;
  color: var(--light-text);
  border: 2px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  position: relative;
}
.btn-group button:hover {
  background-color: var(--primary);
  color: #000;
  box-shadow: 0 0 10px var(--primary);
}
.btn-group button.btn-danger { border-color: var(--danger-color); }
.btn-group button.btn-danger:hover { background-color: var(--danger-color); color: #fff; box-shadow: 0 0 10px var(--danger-color); }

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--danger-color);
  color: white;
  border-radius: 50%;
  padding: 3px 7px;
  font-size: 0.8rem;
  font-weight: bold;
  border: 2px solid var(--card-bg);
  line-height: 1;
}

/* === CONTAINER AZUL (MERCADO) === */
.container-azul {
  border: 2px solid #007bff;
  border-radius: 10px;
  padding: 20px;
  overflow: hidden;
  box-sizing: border-box;
  max-width: 100%;
  margin-bottom: 20px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 123, 255, 0.05), transparent 70%);
}

/* === PAINEL DE NOTÍCIAS === */
.news-container {
  padding: 0;
  max-height: 500px; /* Aumentado para ser o padrão de altura */
  min-height: 500px; /* Aumentado para ser o padrão de altura */
  justify-content: flex-start;
}
.news-header {
  text-align: center;
  font-family: 'Times New Roman', serif;
  color: var(--light-text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 20px 20px 0 20px;
}
.news-scroll {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--card-bg);
  max-height: 100%; /* Ou height: 100% */
  padding: 0 20px 20px 20px;
}

.news-item {
  margin-bottom: 25px; /* Substitui o gap */
}

.news-item:last-child {
  margin-bottom: 0;
}
.news-scroll::-webkit-scrollbar { width: 8px; }
.news-scroll::-webkit-scrollbar-track { background: var(--card-bg); border-radius: 10px; }
.news-scroll::-webkit-scrollbar-thumb { background-color: var(--border-color); border-radius: 10px; }

.news-item {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.news-image-container { width: 100%; height: 180px; overflow: hidden; border-radius: 5px; margin-bottom: 15px; }
.news-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.news-content { text-align: center; font-family: 'Times New Roman', serif; }

.news-subject { display: inline-block; background-color: var(--border-color); color: #000; padding: 3px 10px; border-radius: 15px; font-size: 0.8rem; margin-bottom: 10px; font-weight: bold; }
.news-title { font-size: 1.4rem; margin: 10px 0; color: var(--light-text); font-weight: bold; }
.news-text { font-size: 1rem; line-height: 1.5; margin-bottom: 15px; text-align: justify; text-align-last: center; }
.news-date { font-size: 0.8rem; color: #aaa; font-style: italic; }
.no-news { text-align: center; font-family: 'Times New Roman', serif; padding: 20px; color: var(--light-text); }

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}
.modal-content {
  background-color: var(--dark-bg);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: var(--light-text);
  position: relative;
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.4);
}
.modal-content h2 { margin-bottom: 20px; color: var(--light-text); }
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: var(--primary);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.close:hover { color: #ffffff; }

/* === ESTILOS DO NOVO RODAPÉ MEDIEVAL === */


/* === ESTILOS DO NOVO RODAPÉ SIMPLES E PROFISSIONAL (FINAL) === */

/* Zera qualquer estilo anterior do footer (FORÇADO) */
footer {
    background: none !important; 
    border-top: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    color: inherit !important;
}

.footer-simple-medieval {
    /* FORÇA O FUNDO ESCURO E A BORDA AZUL */
    background-color: rgba(0, 0, 0, 0.95) !important; 
    border-top: 3px solid var(--border-color) !important; 
    
    color: var(--light-text);
    padding: 30px 20px; 
    margin-top: 50px; 
    text-align: center;
    box-shadow: 0 -5px 15px rgba(0, 123, 255, 0.1); 
    
    /* Configurações de alinhamento e design */
    box-sizing: border-box; 
    width: 100%;
}

.footer-simple-medieval .footer-content {
    max-width: 1280px; 
    margin: 0 auto; 
}

.footer-simple-medieval h4 {
    color: var(--primary); 
    font-family: 'Times New Roman', serif;
    font-size: 1.3rem; 
    margin-bottom: 10px; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-simple-medieval p {
    font-size: 0.95rem; 
    line-height: 1.6;
    color: #ccc; 
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .footer-simple-medieval {
        padding: 20px 10px; 
        margin-top: 30px; 
    }
    .footer-simple-medieval h4 {
        font-size: 1.1rem; 
    }
    .footer-simple-medieval p {
        font-size: 0.85rem; 
    }
}








@media (max-width: 992px) {
  .container {
    max-width: 95%;
  }
  .grid-main-dashboard {
    grid-template-columns: 1fr 1fr; 
  }
  .grid-main-dashboard .news-container {
    grid-column: 1 / -1; 
    order: -1; 
    max-height: 400px;
    min-height: 400px;
  }
  .grid-market,
  .grid-info {
    grid-template-columns: 1fr;
  }
  .grid-info .button-menu {
    order: -1;
  }
}

/* Celulares */
@media (max-width: 768px) {
  .container {
    padding: 5px;
  }
  .grid-container-3col {
    gap: 10px;
  }
  .grid-main-dashboard,
  .grid-market,
  .grid-info {
    grid-template-columns: 1fr;
  }
  .grid-main-dashboard .news-container {
     order: 0; 
     min-height: 300px;
     max-height: 400px;
  }
  .card {
    padding: 15px;
    min-height: auto;
  }
  .modal-content {
    padding: 20px;
    width: 95%;
  }
  .container-azul {
    padding: 10px;
  }
}


