/* ======== LAYOUT GERAL ======== */
.mural-container {
  max-width: 1100px;
  margin: 80px auto;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
.titulo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
}
.subtitulo {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 20px;
}
.btn-pedido-mural {
  background: #1e293b;
  color: white;
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  top: 10px !important;
  
}
.btn-pedido-mural:hover { background: #334155; }

/* ======== CONTEÚDO ======== */
.mural-conteudo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 40px;
}
.pedidos-comunidade {
  flex: 2;
  margin-right: 30px;
}
.pedidos-comunidade h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.pedido-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: left;
  position: relative;
}
.pedido-topo strong { color: #1e293b; }
.pedido-topo span { color: #64748b; margin-left: 5px; font-size: 0.9rem; }
.pedido-tags .tag {
  background: #e2e8f0;
  color: #1e293b;
  border-radius: 5px;
  padding: 2px 6px;
  margin-right: 4px;
  font-size: 0.8rem;
}
.pedido-texto {
  color: #475569;
  font-size: 0.9rem;
  margin: 8px 0;
}
.pedido-like {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #f43f5e;
  font-weight: 600;
}

/* ======== MAIS PEDIDOS (STICKY) ======== */
.mais-pedidos {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 15px;
  position: sticky;
  top: 60px; /* fixa abaixo do menu */
}
.mais-pedidos h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.top-pedidos ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.top-pedidos li {
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
  font-size: 0.9rem;
  color: #334155;
}
.top-pedidos li span {
  color: #0ea5e9;
  font-weight: 600;
  margin-right: 5px;
}

/* ======== MODAL ======== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 550px;
  padding: 25px;
  text-align: left;
  position: relative;
  animation: aparecer 0.3s ease;
}
@keyframes aparecer {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.fechar {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 1.5rem;
  color: #475569;
  cursor: pointer;
}
.form-pedido label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.form-row {
  display: flex;
  gap: 15px;
}
.form-row .form-group { flex: 1; }
.form-pedido input,
.form-pedido textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s;
}
.form-pedido input:focus,
.form-pedido textarea:focus {
  border-color: #0ea5e9;
}
.btn-enviar {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  color: #fff;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 10px;
}
.btn-enviar:hover {
  opacity: 0.9;
}

/* ======== RESPONSIVO ======== */
@media(max-width: 768px){
  .mural-conteudo { flex-direction: column; }
  .mais-pedidos { position: relative; top: 0; margin-top: 30px; }
  .form-row { flex-direction: column; }
}

/* ======== MAIS PEDIDOS (ATUALIZADO) ======== */
.mais-pedidos {
  flex: 1;
  position: sticky;
  top: 60px;
}
.mais-pedidos h2 {
  text-align: left;
  margin-bottom: 10px;
  color: #1e293b;
  font-size: 1.2rem;
}

.top10-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.top10-header {
  font-weight: 600;
  color: #1e293b;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}
.top10-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.top10-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.top10-list li:last-child {
  border-bottom: none;
}
.rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  margin-right: 10px;
  flex-shrink: 0;
}
.gold { background: linear-gradient(145deg, #f59e0b, #fbbf24); border-radius: 0 !important; }
.silver { background: linear-gradient(145deg, #64748b, #94a3b8); border-radius: 0 !important; }
.bronze { background: linear-gradient(145deg, #ef4444, #f97316); border-radius: 0 !important; }
.gray { background: #cbd5e1; }

.info {
  flex: 1;
  text-align: left;
}
.info strong {
  display: block;
  color: #1e293b;
  font-size: 0.95rem;
}
.info p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}
.votes {
  text-align: right;
  min-width: 40px;
}
.votes span {
  display: block;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}
.votes small {
  color: #64748b;
  font-size: 0.75rem;
}

/* ======== HOVER PEDIDOS DA COMUNIDADE ======== */
.pedido-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s ease;
}



/* === BOTÃO DE PEDIDO === */
.btn-pedido-mural {
  background: #1e293b;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  display: inline-block;
  margin: 20px 0;
}

.btn-pedido-mural:hover {
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.fechar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
  color: #333;
}

/* === MAIS PEDIDOS (TOP 10) === */
.mais-pedidos {
  flex: 1;
  max-width: 400px;
}

.top10-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  width: 100%;
}

.top10-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top10-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: 10px;
}

.rank.gold { background: #ffb800; }
.rank.silver { background: #7d7d7d; }
.rank.bronze { background: #d56a2a; }
.rank.gray { background: #cfcfcf; }

.info strong {
  display: block;
  font-size: 14px;
}

.info p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.votes {
  text-align: right;
  min-width: 40px;
}

.votes span {
  font-weight: bold;
  display: block;
}

.votes small {
  color: #888;
  font-size: 12px;
}

/* === RESPONSIVIDADE MOBILE === */
@media (max-width: 768px) {

  .mural-conteudo {
    flex-direction: column;
    align-items: center;
  }

  .btn-pedido-mural {
    display: block;
    width: 90%;
    text-align: center;
    margin: 20px auto;
  }

  .mais-pedidos {
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
  }

  .top10-box {
    width: 90%;
    margin: 0 auto;
  }

  .pedido-card {
    width: 90%;
    margin: 10px auto;
  }
}

.instagram {
    text-transform: lowercase; /* tudo em minúsculo */
}

.instagram::before {
    content: "@";
}

/* ===== BOTÕES DO FORMULÁRIO ===== */
.form-botoes {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn-enviar {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex: 1;
  min-width: 120px;
}
.btn-enviar:hover {
  opacity: 0.9;
}

.btn-cancelar {
  background: #e2e8f0;
  color: #1e293b;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex: 1;
  min-width: 120px;
}
.btn-cancelar:hover {
  background: #cbd5e1;
}

/* ===== RESPONSIVO MOBILE ===== */
@media(max-width: 768px){
  .mural-conteudo { flex-direction: column; align-items: center; }
  .pedidos-comunidade, .mais-pedidos { width: 100%; max-width: 100%; margin: 10px 0; }
  .btn-pedido-mural { width: 90%; margin: 20px auto; }
  .top10-box, .pedido-card, .modal-content { width: 90%; margin: 0 auto; }

  .form-row { flex-direction: column; }
  .form-botoes { flex-direction: column; }
  .btn-enviar, .btn-cancelar { width: 100%; }
}


.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  overflow-y: auto; /* permite rolagem */
  padding: 20px; /* espaço nas laterais */
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  width: 100%;
  max-width: 600px;
  margin: 20px auto; /* centraliza horizontal e dá espaço no topo e base */
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  animation: aparecer 0.3s ease;
  position: relative;
}

@media(max-width: 768px){
  .modal-content {
    margin: 40px auto; /* mais espaço no topo em mobile */
    max-height: calc(100vh - 80px); /* não ultrapassa a tela */
    overflow-y: auto; /* scroll interno se precisar */
  }
}
