/* Reset básico */
* {
  box-sizing: border-box;
}
.form-transfer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
}

.form-transfer input,
.form-transfer select,
.form-transfer button {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #fff;
}

.form-transfer button {
    background-color: #0078d4;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-transfer button:hover {
    background-color: #005fa3;
}

.alert {
    background-color: #333;
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  min-height: 100vh;
}

/* Container principal */
.container {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 2rem;
  padding: 0 1rem;
  background: #111;
  color: #eee;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  flex: 0 0 280px;
  width: 250px; /* fixa largura mínima */
  background: #222;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.7);
  font-size: 14px;
  height: fit-content;
}

.sidebar h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #ffaa00;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.sidebar a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar a:hover {
  text-decoration: underline;
  color: #ffaa00;
}

.sidebar-list,
.quick-tips {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
}

.sidebar-list li,
.quick-tips li {
  margin-bottom: 0.6rem;
}

/* Search box na sidebar */
.search-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  align-items: stretch; /* forçar altura igual */
}

.search-box input[type="text"] {
  flex-grow: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 4px 0 0 4px; /* borda arredondada só na esquerda */
  background: #2a2a2a;
  color: #eee;
  font-size: 1rem;
  height: 40px; /* altura fixa */
  line-height: normal;
  box-sizing: border-box;
}

.search-box input[type="text"] {
  flex: 1 1 auto;
  min-width: 0; /* ⚠️ evita o estouro de largura em flexbox */
}

.search-btn {
  background: #ffaa00;
  border: none;
  padding: 0 1rem;
  border-radius: 0 4px 4px 0; /* arredondar só a direita */
  font-size: 1.1rem;
  cursor: pointer;
  color: #121212;
  font-weight: 700;
  transition: background-color 0.3s;
  height: 40px; /* mesma altura do input */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}


.search-btn:hover {
  background: #ffbf33;
}

/* Conteúdo principal */
.main {
  flex-grow: 1;
  background: #222;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.7);
  min-width: 0;
}

.page-title,
.intro-section h2 {
  margin-top: 0;
  color: #ffaa00;
}

.intro-section p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: #ccc;
}

/* Destaques */
.destaques {
  margin-top: 2rem;
}

.destaques h2 {
  color: #ffcc33;
  border-bottom: 2px solid #ffcc33;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

/* Cards gerais */
.guia-card,
.guia-card-grid,
.item-box,
.ticket {
  background: #2a2a2a;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
  color: #ddd;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.guia-card:hover,
.guia-card-grid:hover,
.ticket:hover {
  background-color: #3a3a3a;
  box-shadow: 0 8px 15px rgba(255, 170, 0, 0.6);
}

/* Cards guia específicos */
.guia-card h3,
.guia-card-grid h2,
.item-box h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #ffd966;
  font-weight: 600;
}

.guia-card h3 a,
.guia-card-grid h2 a {
  color: #ffd966;
  text-decoration: none;
  font-weight: 700;
}

.guia-card h3 a:hover,
.guia-card-grid h2 a:hover {
  text-decoration: underline;
}

.guia-card p,
.guia-card-grid p,
.item-stats {
  margin: 0;
  color: #ccc;
  font-size: 0.9rem;
}

.item-box {
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.item-image {
  display: block;
  margin: 0 auto 10px auto;
  max-width: 100%;
  height: 120px;           /* Altura padronizada */
  object-fit: contain;     /* ou use "cover" se quiser recorte */
  border-radius: 8px;
  border: 1px solid #333;
  background: #111;        /* fundo escuro para contraste */
  padding: 5px;            /* espaçamento interno */
}


/* Grid de guias */
.guias-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.grid {
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 15px;
  margin-top: 20px;
}

/* Tags */
.guia-tags-wrapper {
  margin-bottom: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.guia-tags {
  background: #444;
  color: #eee;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  user-select: none;
  transition: background-color 0.3s;
  cursor: default;
}

.guia-tags:hover {
  background-color: #ffaa00;
  color: #222;
}

/* Meta categoria */
.guia-meta {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #bbb;
}

/* Categorias coloridas */
.categoria-reset {
  border-left: 4px solid #00cc66;
}

.categoria-evento {
  border-left: 4px solid #ff9900;
}

.categoria-iniciante {
  border-left: 4px solid #33ccff;
}

.categoria-item {
  border-left: 4px solid #ffcc00;
}

.categoria-default {
  border-left: 4px solid #666;
}

/* Paginação */
.pagination {
  margin-top: 2rem;
  text-align: center;
  font-size: 1rem;
  color: #ddd;
  user-select: none;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.pagination a {
  background-color: #ffaa00;
  color: #121212;
  font-weight: 600;
}

.pagination a:hover {
  background-color: #ffcc33;
  color: #121212;
}

.pagination .disabled {
  background-color: #444;
  color: #777;
  cursor: default;
}

/* Lista rss */
.rss-list {
  list-style: none;
  padding-left: 0;
}

.rss-list li a {
  color: #0a58ca;
  font-weight: bold;
  text-decoration: none;
}

.rss-list small {
  font-size: 12px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 10px 30px;
  position: relative;
  width: 45%;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  transform: translateX(-10%);
  text-align: left;
}

.content {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
}

.icon {
  position: absolute;
  top: 15px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border-radius: 50%;
  left: 50%;
  margin-left: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Tooltip */
.timeline-tooltip {
  display: none;
  background: #222;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  position: absolute;
  z-index: 10;
  width: 250px;
  font-size: 14px;
  top: 60px;
}

.timeline-item:hover .timeline-tooltip {
  display: block;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.carousel-slide {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 400%; /* 4 imagens */
}

.carousel-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  flex-shrink: 1;
}

.carousel-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
}

.carousel-controls button {
  background-color: #ffaa00;
  color: #1f1f1f;
  border: none;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: background-color 0.3s ease;
}

.carousel-controls button:hover {
  background-color: #ffcc33;
}

/* Animação slide */
@keyframes slide {
  0%   { transform: translateX(0); }
  33%  { transform: translateX(-100%); }
  66%  { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}

/* Resposta */
.resposta {
  display: block;
  width: 100%;
  clear: both;
  background-color: #475569;
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

/* Ticket */
.ticket-link {
  text-decoration: none;
}

.ticket {
  color: #ffd966;
}

/* No tickets */
.no-tickets {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  color: #ccc;
  font-weight: bold;
  text-align: center;
}

/* Botão abrir ticket */
.btn-open-ticket {
  background-color: #ffaa00;
  color: #1e1e1e;
  padding: 10px 20px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-open-ticket:hover {
  background-color: #ffcc33;
  color: #000;
}

/* Resumo, fix para links que sobrescrevem textos */
.resposta a,
.guia-card a,
.guia-card-grid a,
.ticket-link {
  color: #ffaa00;
  text-decoration: none;
  transition: color 0.3s;
}

.resposta a:hover,
.guia-card a:hover,
.guia-card-grid a:hover,
.ticket-link:hover {
  text-decoration: underline;
  color: #ffcc33;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex: none;
    margin-bottom: 1rem;
  }
  .main {
    width: 100%;
    padding: 1rem;
  }
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    transform: none;
  }
  .timeline::after {
    left: 20px;
  }
  .icon {
    left: 20px;
    margin-left: 0;
  }
}
.dark-modal {
  background: #1e1e1e;
  color: #f1f1f1;
  max-width: 450px;
  margin: 80px auto;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  position: relative;
  font-family: 'Segoe UI', sans-serif;
}

.dark-modal h3 {
  margin-top: 0;
  font-size: 20px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.dark-modal label {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  color: #ddd;
}

.dark-modal input[type="text"],
.dark-modal input[type="number"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  background: #2c2c2c;
  border: 1px solid #444;
  border-radius: 6px;
  color: #f1f1f1;
  font-size: 14px;
}

.dark-modal input:focus {
  outline: none;
  border-color: #007bff;
  background: #333;
}

.dark-modal .btn {
  background: #28a745;
  border: none;
  padding: 10px 16px;
  margin-top: 20px;
  width: 100%;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  transition: background 0.3s ease;
}

.dark-modal .btn:hover {
  background: #218838;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #fff;
}

    .scratch-container {
      position: relative;
      display: inline-block;
      width: 512px;
      height: 368px;
    }

    .scratch-container img,
    .scratch-container canvas {
      width: 512px;
      height: 368px;
      display: block;
      border-radius: 16px;
      position: absolute;
      top: 0;
      left: 0;
    }

    canvas {
      cursor: crosshair;
      z-index: 2;
    }

    .codigo-revelado {
      position: absolute;
      color: #fff;
      font-size: 32px;
      font-weight: bold;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3; /* elevado acima do canvas */
      pointer-events: none;
      user-select: none;
      background: transparent;
      opacity: 0;
      transform: scale(0.8);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .codigo-revelado.show {
      opacity: 1;
      transform: scale(1);
      cursor: pointer;
      pointer-events: auto; /* ativa clique */
    }

    .codigo-revelado.copiado::after {
      content: "Copiado!";
      position: absolute;
      bottom: -30px;
      left: 50%;
      transform: translateX(-50%);
      color: #caa84c;
      font-size: 16px;
      animation: fadeOut 1.5s forwards;
    }

    @keyframes fadeOut {
      0% { opacity: 1; }
      100% { opacity: 0; }
    }
	#popupCopiado.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.container {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
}

.sidebar {
 
  min-height: 100vh;
  background-color: #1e1e1e;
  padding: 20px;
  color: #fff;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.main {
  flex: 1;
  padding: 20px;
  background-color: #121212;
  color: #fff;
  min-height: 100vh;
}
.guild-ranking-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.guild-box {
    background-color: #1c1c1c;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 8px;
    width: 100%;
    max-width: 380px;
    flex: 1 1 300px;
}

.guild-name {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #ffd700;
}

.guild-total {
    font-size: 0.95em;
    margin-bottom: 10px;
    color: #ccc;
}

.guild-box .ranking-table {
    width: 100%;
    font-size: 0.9em;
}

.guild-box .ranking-table th,
.guild-box .ranking-table td {
    padding: 5px;
    text-align: left;
}

.guild-box .ranking-table th {
    background-color: #2c2c2c;
}

.guild-box .ranking-table tr:nth-child(even) {
    background-color: #2a2a2a;
}
.ranking-section {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    color: #eee;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ranking-table {
    flex: 1 1 400px;
    min-width: 300px;
}

.ranking-table h3 {
    margin-bottom: 10px;
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
    color: #eee;
    margin-top: 10px;
}

.ranking-table th, .ranking-table td {
    padding: 5px;
    border: 1px solid #555;
    text-align: center;
}

.ranking-table th {
    background: #333;
}
/* Permite seleção normalmente, mas oculta o cursor de texto onde não é necessário */
body, p, div, span, td, h1, h2, h3, h4, h5, h6 {
    caret-color: transparent; /* Remove o cursor piscando */
}

/* Mantém o cursor piscando apenas em elementos de entrada de texto */
input, textarea, [contenteditable="true"] {
    caret-color: auto;
}
.char-monitor {
  background: linear-gradient(145deg, #1f1f1f, #2c2c2c);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  max-width: 400px;
  margin: 0 auto;
}

.char-monitor p {
  margin: 6px 0;
  font-size: 15px;
}

.char-monitor img {
  display: block;
  margin: 0 auto 10px auto;
  border: 2px solid #ffc107;
}
