/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0e1621;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 20px 10px;
}

/* Container Principal */
.telegram-feed {
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cabeçalho */
.header-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}

.header-page h2 {
  font-size: 1.2rem;
  color: #64b5ef;
}

.btn-voltar {
  color: #fff;
  text-decoration: none;
  background: #242f3d;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: bold;
  border: 1px solid #2b3a4c;
}

/* Seletor de Abas (Vídeos / Fotos) */
.tabs-container {
  display: flex;
  gap: 10px;
  background-color: #17212b;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #242f3d;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #7f91a4;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background-color: #2b5278;
  color: #ffffff;
}

/* Cards de Vídeo/Foto no estilo Telegram */
.telegram-card {
  background-color: #182533;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #242f3d;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Imagem no estilo Telegram */
.photo-wrapper {
  width: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-wrapper img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

/* Rodapé do Card */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background-color: #17212b;
  font-size: 0.85rem;
  color: #7f91a4;
}

.reactions {
  display: flex;
  gap: 12px;
}

.reaction-btn {
  background: #242f3d;
  padding: 4px 10px;
  border-radius: 14px;
  color: #64b5ef;
  font-size: 0.8rem;
  font-weight: 600;
}

.time {
  font-size: 0.75rem;
  color: #6c7883;
}

/* Paginação */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 15px 0;
  flex-wrap: wrap;
}

.page-btn {
  background-color: #242f3d;
  color: #64b5ef;
  border: 1px solid #2b3a4c;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  background-color: #2b3a4c;
  color: #ffffff;
}

.page-btn.active {
  background-color: #2b5278;
  color: #ffffff;
  border-color: #64b5ef;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* ESTILIZAÇÃO DOS BOTÕES DE PAGINAÇÃO */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  width: 100%;
}

.paginacao-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 900px;
}

.paginacao-wrapper a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background-color: #1e293b; /* Fundo escuro dos botões */
  color: #7dd3fc;            /* Texto azul claro */
  text-decoration: none;
  border-radius: 8px;        /* Bordas arredondadas */
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.paginacao-wrapper a:hover {
  background-color: #334155;
  color: #ffffff;
}

.paginacao-wrapper a.active {
  background-color: #2563eb; /* Azul em destaque para o botão ativo */
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.paginacao-wrapper a.disabled {
  opacity: 0.4;
  pointer-events: none;
  color: #64748b;
}
