/* ==========================================================================
   Stop Killing Games United — style.css
   Corrigido, organizado e adaptado para telas de Android, iOS,
   Windows e notebooks (mobile-first, com breakpoints do Bootstrap).
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-image: url(../images/fundo-1.jpeg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  /* "fixed" trava a imagem de fundo. Em celulares (iOS/Android) isso
     costuma travar/pesar a rolagem, então mudamos para "scroll" nas
     telas pequenas (ver media query no final). */
  background-attachment: fixed;
  font-family: var(--bs-font-sans-serif);
}

header,
.meu-cabecalho {
  background-color: rgb(24, 21, 151);
  padding: 22px;
  color: white;
}

header h1,
.meu-cabecalho h1 {
  color: rgb(245, 241, 241);
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.2rem); /* título encolhe em telas pequenas */
}

.menu {
  display: none;
}

h2 {
  color: rgb(247, 244, 244);
}

p {
  color: rgb(219, 6, 6);
}

/* Antes: #text1 e #text2 eram usados como ID em VÁRIOS elementos.
   Isso é inválido em HTML (um id só pode existir uma vez por página).
   Foram convertidos para classes no HTML — os estilos abaixo seguem
   os mesmos nomes antigos, mas como classes reutilizáveis. */
.texto-destaque {
  color: #ece6e6;
}

.texto-artigo {
  text-align: center;
  color: #ece6e6;
}

.texto-cor {
  color: #edf0e9;
}

#site2 {
  color: rgb(240, 243, 240);
}

/* Antes a regra #stop usava "image-rendering: url(...)", que não é uma
   propriedade CSS válida (image-rendering só aceita valores como
   auto/pixelated/crisp-edges, nunca uma URL). A imagem já vem do
   próprio <img src="...">, então a regra virou responsividade real. */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.imagem-destaque {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.card {
  max-width: 100%;
}

.d-flex.align-items-start.gap-3 {
  flex-wrap: wrap;
}

.link-header {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.link-header:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ---- Destaques da loja (home) ---- */
.secao-destaques-loja {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  margin: 2rem auto;
}

.card-destaque {
  background-color: rgba(255, 255, 255, 0.96);
  border: none;
  border-radius: 10px;
  overflow: hidden;
  color: #181597;
  transition: transform 0.15s ease;
}

.card-destaque img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.link-produto-destaque:hover .card-destaque {
  transform: translateY(-4px);
}

.btn-ver-loja {
  color: rgb(24, 21, 151);
  font-weight: 600;
}

/* ---- Seção de comentários ---- */
.secao-comentarios {
  background-color: rgba(255, 255, 255, 0.92);
  color: #222;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 2rem auto;
}

.secao-comentarios h2 {
  color: #181597;
}

.form-comentario textarea,
.form-comentario input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-comentario textarea:focus,
.form-comentario input:focus {
  outline: none;
  border-color: rgb(24, 21, 151);
  box-shadow: 0 0 0 3px rgba(24, 21, 151, 0.15);
}

.form-comentario button {
  background: linear-gradient(135deg, rgb(24, 21, 151), #3530c9);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(24, 21, 151, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.form-comentario button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 21, 151, 0.45);
}

.form-comentario button:active {
  transform: translateY(0);
}

.lista-comentarios {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comentario {
  background: #f4f4f8;
  border-left: 4px solid rgb(24, 21, 151);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  word-break: break-word;
}

.comentario .comentario-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comentario .comentario-autor {
  font-weight: bold;
  color: rgb(24, 21, 151);
}

.comentario .comentario-data {
  font-size: 0.8rem;
  color: #666;
}

.comentario .comentario-excluir {
  background: none;
  border: none;
  color: #b00020;
  cursor: pointer;
  font-size: 0.85rem;
}

.aviso-comentarios {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
}

:root {
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

/* ==========================================================================
   RESPONSIVIDADE (Android / iOS / Windows / notebooks)
   Mobile-first: as regras acima já valem para telas pequenas.
   As media queries abaixo ajustam o layout para telas médias/grandes.
   ========================================================================== */

@media (max-width: 575.98px) {
  body {
    background-attachment: scroll; /* evita travar o scroll no iOS Safari */
  }

  .container,
  main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .d-flex.align-items-start.gap-3 {
    flex-direction: column;
  }

  .card {
    width: 100% !important; /* sobrescreve o width:18rem inline do HTML */
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  body {
    background-attachment: scroll;
  }

  .d-flex.align-items-start.gap-3 {
    flex-direction: column;
  }

  .card {
    width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .card {
    width: 45% !important;
  }
}

@media (min-width: 992px) {
  .card {
    width: 18rem !important;
  }
}

@media (min-width: 1400px) {
  main,
  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}
