*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Arial,Helvetica,sans-serif;
  background:#f5f7fb;
  color:#222;
  line-height:1.6;
}

header{
  background:#2563eb;
  color:#fff;
  padding:20px;
}

.container{
  max-width:1100px;
  margin:auto;
  padding:0 15px;
}

header h1{
  margin-bottom:15px;
}

#pesquisa{
  width:100%;
  padding:12px;
  border:none;
  border-radius:8px;
  font-size:16px;
}

nav{
  display:flex;
  gap:15px;
  margin:15px 0;
  flex-wrap:wrap;
}

nav a{
  color:white;
  text-decoration:none;
  font-weight:bold;
}

nav a:hover{
  text-decoration:underline;
}

.hero{
  max-width:1100px;
  margin:30px auto;
  background:#fff;
  padding:30px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  text-align:center;
}

.hero h2{
  color:#2563eb;
  margin-bottom:15px;
}

blockquote{
  font-size:22px;
  font-style:italic;
  margin:20px 0;
}

button{
  background:#2563eb;
  color:#fff;
  border:none;
  padding:12px 20px;
  border-radius:8px;
  cursor:pointer;
  font-size:16px;
}

button:hover{
  opacity:.9;
}

/* ============================
   CATEGORIAS
============================ */
.categorias, .categoriasDestaque{
  max-width:1100px;
  margin:30px auto;
  padding:0 15px;
}

.categorias h2, .categoriasDestaque h2{
  margin-bottom:20px;
}

.grid-botoes, .gridCategorias{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn-categoria {
  background: #fff;
  color: #2563eb;
  border: 2px solid #2563eb;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-categoria:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.dark .btn-categoria {
  background: #1e1e1e;
  color: #60a5fa;
  border-color: #3b82f6;
}

.dark .btn-categoria:hover {
  background: #3b82f6;
  color: #fff;
}

/* ============================
   CARD DAS FRASES (O ONDE FICA O BOTÃO BAIXAR)
============================ */
#listaFrases{
  max-width:1100px;
  margin:30px auto;
  padding:0 15px;
}

.cardFrase{
  background:#fff;
  margin:25px auto;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 5px 15px rgba(0,0,0,.15);
  max-width:500px;
  width:100%;
}

.imagemFrase{
  position:relative;
  width:100%;
  height:450px;
  background: #eee; /* Placeholder enquanto carrega */
}

@media (max-width: 600px) {
  .imagemFrase {
    height: 300px; /* Menor no mobile para carregar mais rápido */
  }
  .textoFrase {
    font-size: 18px; /* Ajuste de fonte para telas menores */
  }
}

.imagemFrase img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.5);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  color:#fff;
  text-align:center;
  padding:20px;
}

.textoFrase{
  font-size:22px;
  font-weight:bold;
  line-height:1.4;
  text-shadow:2px 2px 8px #000;
  max-width:90%;
}

.autorFrase{
  margin-top:15px;
  font-size:16px;
  font-style:italic;
}

.marca{
  position:absolute;
  bottom:15px;
  right:15px;
  color:white;
  font-size:12px;
  font-weight:bold;
  opacity:.9;
}

/* BOTOES DE AÇÃO DA FRASE */
.botoes{
  display:flex;
  justify-content:space-around;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding:15px;
  background:#fff;
}

.botoes button{
  background:#2563eb;
  color:#fff;
  border:none;
  border-radius:8px;
  padding:8px 12px;
  cursor:pointer;
  font-size:14px;
  transition:.3s;
  flex:1 1 auto;
}

.botoes button:hover{
  opacity:.9;
}

.estatisticas{
  display:flex;
  justify-content:space-around;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:12px;
  font-size:13px;
  font-weight:bold;
  color:#555;
  border-top:1px solid #eee;
}

/* ============================
   MODO ESCURO E FOOTER
============================ */
footer{
  background:#111827;
  color:#fff;
  text-align:center;
  padding:20px;
  margin-top:40px;
}

.dark{
  background:#121212;
  color:#ffffff;
}

.dark .hero, .dark .cardFrase, .dark .botoes{
  background:#1e1e1e;
  color:#ffffff;
}

.dark .estatisticas{
  color:#ccc;
  border-top:1px solid #333;
}

#temaBtn{
  position:fixed;
  right:20px;
  bottom:20px;
  padding:12px 18px;
  border:none;
  border-radius:30px;
  background:#2563eb;
  color:white;
  cursor:pointer;
  z-index:1000;
}
#cardExportacao{

    width:1080px;
    height:1920px;

    position:relative;

    overflow:hidden;

    border-radius:40px;

    background:#111;

}

#cardExportacao img{

    width:100%;
    height:100%;

    object-fit:cover;

    position:absolute;

    inset:0;

}

.fundoEscuro{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.45);

}

.conteudoExportacao{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    padding:90px;

    text-align:center;

}

#textoExportacao{

    color:white;

    font-size:72px;

    line-height:1.5;

    font-weight:bold;

}

#autorExportacao{

    margin-top:70px;

    color:white;

    font-size:44px;

}

.logoExportacao{

    position:absolute;

    bottom:70px;

    color:white;

    font-size:38px;

    opacity:.9;

}
