/* ===========================
   Fundo geral / Configurações básicas
   =========================== */
body {
  background-image: url('background.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* ===========================
   Cabeçalho
   =========================== */
.logomarca img {
  width: auto;
  height: 200px;
  object-fit: contain;
  display: block;
}

.cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(17, 0, 37);
  padding: 1px 20px;
}

.navegacao {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Botões */
.botao {
  background-color: white;
  color: black;
  border: 5px solid blue;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.botao:hover {
  background-color: blue;
  color: white;
}

/* Barra de busca */
.barra-de-busca {
  display: flex;
  gap: 20px;
}
.barra-de-busca input {
  width: 150px;
  height: 20px;
  margin-top: 20px;
  padding: 10px;
  border-radius: 20px;
  border: 5px solid blue;
  transition: 0.3s;
}
.botao-busca {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid blue;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.botao-busca:hover {
  background-color: rgb(0, 0, 0);
  transform: scale(1.1);
}
.icone-de-busca {
  width: 150px;
  height: 150px;
}

/* Recado e lembrete */
.recado {
  font-size: 18px;
  color: white;
  text-align: center;
  margin: 0;
  font-weight: bold;
  line-height: 1.5;
  max-height: 250px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  word-break: break-word;
  padding: 10px;
  margin: 1px;
}
.lembrete {
  color: white;
  text-align: center;
  margin: 20px;
}

/* ===========================
   Torrent / Chatbox
   =========================== */
.torrent_winrar {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  padding: 5px;
  flex-wrap: wrap;
}
.botao-imagem {
  display: inline-flex;
  align-items: center;
  margin-top: 50px;
  gap: 10px;
  padding: 10px;
  color: black;
  font-weight: bold;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.botao-imagem:hover {
  transform: scale(1.1);
}
.botao-imagem img {
  width: 100px;
  border-radius: 20px;
  margin-bottom: 5px;
}
.chatbox {
  width: 400px;
  height: 450px;
  border: 3px solid rgb(70, 4, 145);
  padding: 5px;
  background-color: black;
  border-radius: 20px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   Cards
   =========================== */
.organizador_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Magic Card */
.magic-card {
  position: relative;
  width: 300px;
  height: 443px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s;
}
.magic-card:hover {
  transform: scale(1.1);
}

/* Template */
.card-template {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
}

/* Arte */
.card-art {
  position: absolute;
  top: 43px;
  left: 30px;
  width: 240px;
  height: 190px;
  border-radius: 6px;
  overflow: hidden;
  z-index: 2;
  cursor: pointer;
  --card-bg: url('caminho/da/imagem.jpg');
}
.card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.3);
  z-index: 0;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* Overlay */
.rainbow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('efeito arco iris.png');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
  border-radius: 12px;
  mix-blend-mode: overlay;
  z-index: 3;
}

/* Texto dentro do card */
.card-title,
.card-type,
.card-subheader,
.card-description,
.download-btn {
  position: absolute;
  z-index: 2;
  color: black;
}
.card-title {
  top: 17px;
  left: 20px;
  right: 64px;
  font-size: clamp(15px, 1.0vw, 14px);
  font-weight: bold;
  text-align: center;
  line-height: 0.8;
  max-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.tipo-icon {
  margin-top: -10px;
  width: 35px;
  height: 35px;
  display: block;
  mix-blend-mode: normal;
  z-index: 3;
}
.card-type {
  top: 17px;
  right: 15px;
  padding: 4px;
  border-radius: 6px;
  z-index: 2;
}
.card-subheader {
  top: 235px;
  left: 24px;
  font-size: 13px;
  display: flex;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}
.card-description {
  top: 255px;
  left: 24px;
  right: 24px;
  bottom: 60px;
  font-size: 13px;
  line-height: 1.4;
  overflow-y: auto;
  padding: 8px;
  border-radius: 6px;
  color: black;
}

/* Botão de download */
.download-btn {
  position: absolute;
  bottom: 15px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}
.download-text {
  color: white;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.download-icon {
  width: 60px;
  height: 60px;
  transition: opacity 0.3s ease;
}
.download-btn:hover .download-icon {
  content: url("bolsa-aberta.png");
}
.download-btn:hover .download-text {
  transform: translateX(40px);
  opacity: 0;
}

/* ===========================
   Paginação
   =========================== */
.paginacao {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

/* ===========================
   Rodapé
   =========================== */
.rodape {
  text-align: center;
  background: #222;
  color: white;
  padding: 10px;
}

/* ===========================
   Modal
   =========================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 900px;
  width: 92%;
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 50px;
  cursor: pointer;
  
}

.modal-content .close:hover {
  color: red;
  transform: scale(1.5);
}

/* Área principal (vídeo ou imagem) */
.modal .video-container {
  position: relative;
}

.modal .video-container iframe,
.modal .video-container img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Botões de navegação */
.modal .prev,
.modal .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal .prev {
  left: 10px;
  border-radius: 0 5px 5px 0;
}

.modal .next {
  right: 10px;
  border-radius: 5px 0 0 5px;
}

.modal .prev:hover,
.modal .next:hover {
  background: rgba(255, 255, 255, 0.7);
  color: black;
  transform: translateY(-50%) scale(1.1);
}

/* Galeria dentro do modal */
.modal .galeria {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.modal .galeria-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.modal .galeria-img:hover {
  border: 2px solid #fff;
}

/* ===========================
   Responsividade
   =========================== */
@media (max-width: 900px) {
  .modal-content {
    width: 90%;
  }
  .video-container iframe {
    height: 320px;
  }
  .galeria-img {
    width: 140px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .modal .video-container iframe,
  .modal .video-container img {
    max-height: 240px;
  }
  .modal .galeria-img {
    width: 60px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .modal .video-container iframe,
  .modal .video-container img {
    max-height: 180px;
  }
  .modal .galeria {
    gap: 5px;
  }
  .modal .galeria-img {
    width: 50px;
    height: 40px;
  }
}
