/* =============================================
   TELA-ALBUM-SELOS.CSS — Álbum Bíblico
   Escopo: #tela-album-selos .selos-* / .selo-item-*
   ============================================= */

/* ---- Tela base ---- */
#tela-album-selos {
  width: 100%;
  min-height: 100svh;
  background-image: url('../assets/img/telas/tela-selos/fundo.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

#tela-album-selos .selos-bg-frame {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#tela-album-selos .selos-safe-area {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 14px 28px;
}

/* ---- Topo com retornar + config ---- */
#tela-album-selos .selos-topo-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

/* ---- Botão retornar ---- */
#tela-album-selos .selos-btn-retornar {
  width: 58px;
  height: 58px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.13s ease;
  flex-shrink: 0;
}

#tela-album-selos .selos-btn-retornar:active { transform: scale(0.88); }

#tela-album-selos .selos-btn-retornar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---- Botão configurações ---- */
#tela-album-selos .selos-btn-config {
  width: 58px;
  height: 58px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.13s ease;
  flex-shrink: 0;
}

#tela-album-selos .selos-btn-config:active { transform: scale(0.88); }

#tela-album-selos .selos-btn-config img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---- Título "Álbum Bíblico" ---- */
#tela-album-selos .selos-titulo-img {
  width: min(88%, 320px);
  height: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ---- Subtítulo ---- */
#tela-album-selos .selos-subtitulo {
  margin: 0 0 14px;
  text-align: center;
  color: #fff4d6;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

/* ---- Pílula de progresso ---- */
#tela-album-selos .selos-progresso-pill {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid #d6a447;
  background: linear-gradient(180deg, #173b6d, #102f5b);
  color: #ffd873;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

#tela-album-selos .selos-progresso-icone { font-size: 1.1rem; }

#tela-album-selos .selos-progresso-texto {
  font-size: 1rem;
  font-weight: 900;
}

/* ---- Abas ---- */
#tela-album-selos .selos-abas {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 0;
}

#tela-album-selos .selos-aba {
  min-height: 52px;
  border-radius: 14px 14px 0 0;
  border: 2px solid #c9a85c;
  border-bottom: 0;
  background: rgba(210, 180, 120, 0.35);
  color: #fff4d0;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0 8px;
}

#tela-album-selos .selos-aba-ativa {
  background: linear-gradient(180deg, #fff7dc, #f4d97d);
  color: #4a2a0a;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

/* ---- Painel dos selos ---- */
#tela-album-selos .selos-painel {
  width: 100%;
  background: linear-gradient(180deg, #fff8e8, #fdf0d0);
  border: 2px solid #d6a447;
  border-top: 0;
  border-radius: 0 0 24px 24px;
  padding: 22px 16px 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

/* ---- Grade de selos ---- */
#tela-album-selos .selos-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 10px;
  align-content: start;
}

/* ---- Item de selo (base) ---- */
#tela-album-selos .selo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* ---- Wrapper do ícone (conquistado) ---- */
#tela-album-selos .selo-item-icone-wrap {
  width: 82px;
  height: 82px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

#tela-album-selos .selo-item-img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

#tela-album-selos .selo-item-img-fb {
  width: 82px;
  height: 82px;
  font-size: 3.2rem;
  line-height: 82px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tela-album-selos .selo-item-faixa {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #17427e, #102f5b);
  color: #ffd873;
  border: 1.5px solid #d6a447;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

/* ---- Placeholder (bloqueado) ---- */
#tela-album-selos .selo-item-placeholder {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #f6f0e4 0%, #e5d8bf 100%);
  border: 2px solid #d7c7aa;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

#tela-album-selos .selo-item-estrela {
  color: #c7b79a;
  font-size: 2.2rem;
  line-height: 1;
}

#tela-album-selos .selo-item-cadeado {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #efe7d4;
  border: 1.5px solid #cdbb9e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* ---- Nome do selo ---- */
#tela-album-selos .selo-item-nome {
  color: #5a3612;
  font-size: clamp(0.72rem, 2.8vw, 0.85rem);
  line-height: 1.2;
  font-weight: 800;
  max-width: 96px;
}

#tela-album-selos .selo-item-bloqueado .selo-item-nome {
  color: #9a8060;
}

/* ---- Responsivo ---- */
@media (max-width: 360px) {
  #tela-album-selos .selos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  #tela-album-selos .selos-safe-area { padding: 8px 12px 16px; overflow-y: auto; }
  #tela-album-selos .selos-titulo-img { margin-bottom: 6px; }
  #tela-album-selos .selos-subtitulo  { margin-bottom: 8px; font-size: 0.88rem; }
}
