/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000000;
  color: #e8d5b7;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* ===== LABAREDAS DE FUNDO (mantidas) ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(255, 60, 0, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 100, 0, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 140, 0, 0.15) 0%, transparent 60%),
    #000;
  z-index: -2;
  animation: fireGlow 4s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(255, 80, 0, 0.4) 0%, transparent 8%),
    radial-gradient(circle at 25% 95%, rgba(255, 120, 0, 0.3) 0%, transparent 6%),
    radial-gradient(circle at 50% 92%, rgba(255, 60, 0, 0.5) 0%, transparent 10%),
    radial-gradient(circle at 75% 96%, rgba(255, 100, 0, 0.35) 0%, transparent 7%),
    radial-gradient(circle at 90% 90%, rgba(255, 140, 0, 0.4) 0%, transparent 9%);
  z-index: -1;
  animation: flameDance 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes fireGlow {
  0%   { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes flameDance {
  0%   { transform: translateY(0) scale(1); opacity: 0.6; }
  50%  { transform: translateY(-10px) scale(1.05); opacity: 0.9; }
  100% { transform: translateY(-5px) scale(1.02); opacity: 0.75; }
}

/* ===== PARTÍCULAS DE BRASA (mantidas) ===== */
@keyframes ember {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

.ember {
  position: fixed;
  bottom: 0;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #ff6b00, #ff0000);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 0 6px rgba(255, 69, 0, 0.5);
  animation: ember 6s linear infinite;
}

.hidden {
  display: none !important;
}

/* ===== TELA DE LOGIN ===== */
.tela-login {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center bottom, rgba(255, 60, 0, 0.3) 0%, transparent 70%),
    #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.login-box {
  background: rgba(15, 5, 0, 0.95);
  border: 2px solid #5a2800;
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  text-align: center;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-box h1 {
  color: #ff7a33;
  margin-bottom: 10px;
  font-size: 1.8rem;
  text-shadow: 0 0 8px rgba(255, 69, 0, 0.35);
  animation: flicker 3s ease-in-out infinite alternate;
}

@keyframes flicker {
  0%, 100% { text-shadow: 0 0 6px rgba(255, 69, 0, 0.3); }
  50%      { text-shadow: 0 0 10px rgba(255, 69, 0, 0.45); }
}

.login-box .subtitle {
  color: #d49060;
  margin-bottom: 25px;
  font-style: italic;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-box input {
  padding: 14px;
  background: #0a0500;
  border: 2px solid #4a1f00;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.25s;
}

.login-box input:focus {
  outline: none;
  border-color: #ff6b00;
  background: #1a0a00;
}

.login-box button {
  padding: 14px;
  background: linear-gradient(135deg, #c43000, #e85b00);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.25s;
}

.login-box button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #d83800, #ff6b00);
}

.login-erro {
  color: #ff5533;
  font-size: 0.9rem;
  min-height: 20px;
  margin: 8px 0 0;
  font-weight: bold;
}

.login-hint {
  margin-top: 20px;
  color: #8a5a30;
  font-size: 0.85rem;
}

/* ===== HEADER ===== */
header {
  background:
    linear-gradient(180deg, rgba(20, 8, 0, 0.98), rgba(0, 0, 0, 0.95));
  border-bottom: 3px solid #8a3500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
  padding-bottom: 15px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(138, 53, 0, 0.4);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d49060;
  font-weight: bold;
  font-size: 0.95rem;
}

.badge-admin {
  background: linear-gradient(135deg, #d89000, #c43000);
  color: #000;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  animation: pulse 2.5s infinite;
}

.btn-logout {
  background: transparent;
  border: 2px solid #8a3500;
  color: #d4683a;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.25s;
}

.btn-logout:hover {
  background: #8a3500;
  color: white;
}

header h1 {
  text-align: center;
  color: #ff7a33;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  text-shadow: 0 0 10px rgba(255, 69, 0, 0.3), 2px 2px 4px rgba(0,0,0,0.9);
  margin: 15px 0 5px;
  font-family: 'Georgia', serif;
  letter-spacing: 1px;
  animation: flicker 4s ease-in-out infinite alternate;
}

header .subtitle {
  text-align: center;
  color: #d49060;
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1rem;
}

/* ===== NAVEGAÇÃO DE ABAS ===== */
nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.tab-btn {
  background: rgba(20, 8, 0, 0.8);
  color: #d49060;
  border: 2px solid #4a1f00;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.25s;
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: #ff6b00;
  color: #ff7a33;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, #b82a00, #e85b00);
  color: white;
  border-color: #ff8c00;
}

/* ===== MAIN / CONTEÚDO ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 20px;
  position: relative;
  z-index: 1;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== CARDS / SEÇÕES ===== */
.card, section {
  background:
    linear-gradient(135deg, rgba(15, 5, 0, 0.95), rgba(25, 10, 0, 0.85));
  border: 2px solid #4a1f00;
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  position: relative;
}

.card::before, section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8a3500, transparent);
  opacity: 0.5;
  border-radius: 14px 14px 0 0;
}

.card h2, section h2 {
  color: #ff7a33;
  margin-bottom: 18px;
  font-size: 1.4rem;
  border-bottom: 2px dashed #4a1f00;
  padding-bottom: 10px;
  font-family: 'Georgia', serif;
}

.card h3, section h3 {
  color: #d49060;
  margin-bottom: 12px;
  margin-top: 15px;
  font-size: 1.1rem;
}

/* ===== FORMULÁRIOS ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="file"],
select,
textarea {
  padding: 12px 14px;
  background: #0a0500;
  border: 2px solid #4a1f00;
  border-radius: 8px;
  color: #e8d5b7;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.25s;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ff6b00;
  background: #150700;
}

input::placeholder,
textarea::placeholder {
  color: #6a4020;
}

textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

select {
  cursor: pointer;
}

input[type="file"] {
  cursor: pointer;
  padding: 10px;
}

input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #b82a00, #e85b00);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 10px;
  transition: all 0.25s;
}

input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #d83800, #ff6b00);
}

/* ===== BOTÕES ===== */
button[type="submit"],
.btn-primary {
  background: linear-gradient(135deg, #b82a00, #e85b00);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 5px;
}

button[type="submit"]:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #d83800, #ff6b00);
}

.btn-excluir {
  background: transparent;
  border: 1.5px solid #8a3500;
  color: #d4683a;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.25s;
}

.btn-excluir:hover {
  background: #8a3500;
  color: white;
}

/* ===== MEMBROS ===== */
#lista-membros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.membro-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 31, 0, 0.6);
  border: 1.5px solid #4a1f00;
  padding: 8px 14px;
  border-radius: 20px;
  color: #d49060;
  font-size: 0.95rem;
  transition: all 0.25s;
}

.membro-item:hover {
  border-color: #ff6b00;
  background: rgba(74, 31, 0, 0.9);
}

.membro-item button {
  background: transparent;
  border: none;
  color: #d4683a;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 4px;
  border-radius: 50%;
  transition: all 0.2s;
}

.membro-item button:hover {
  background: rgba(138, 53, 0, 0.3);
  color: #ff6b00;
}

/* ===== EVENTOS / CHURRASCOS ===== */
.evento-item {
  background: rgba(10, 5, 0, 0.6);
  border-left: 4px solid #8a3500;
  border-radius: 8px;
  padding: 15px 18px;
  margin-bottom: 12px;
  transition: all 0.25s;
}

.evento-item:hover {
  transform: translateX(4px);
  border-left-color: #ff6b00;
}

.evento-item .data {
  color: #ff7a33;
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.evento-item .info {
  color: #d4a574;
  margin: 3px 0;
  font-size: 0.95rem;
}

.evento-item .info strong {
  color: #d49060;
}

/* ===== PRESENÇA ===== */
#lista-presenca-membros {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.presenca-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 5, 0, 0.6);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid #4a1f00;
  transition: all 0.25s;
}

.presenca-item:hover {
  border-color: #ff6b00;
}

.presenca-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff4500;
}

.presenca-item label {
  cursor: pointer;
  color: #e8d5b7;
  flex: 1;
}

/* ===== RANKING ===== */
#lista-ranking,
#lista-sumido {
  list-style: none;
  padding: 0;
}

#lista-ranking li,
#lista-sumido li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 5, 0, 0.6);
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  border-left: 3px solid #8a3500;
  transition: all 0.25s;
}

#lista-ranking li:hover,
#lista-sumido li:hover {
  transform: translateX(4px);
  background: rgba(20, 10, 0, 0.8);
}

#lista-ranking li:first-child {
  border-left-color: #d89000;
  background: linear-gradient(90deg, rgba(216, 144, 0, 0.12), rgba(10, 5, 0, 0.6));
}

#lista-ranking li:first-child .nome::before {
  content: '🥇 ';
}

#lista-ranking li:nth-child(2) .nome::before {
  content: '🥈 ';
}

#lista-ranking li:nth-child(3) .nome::before {
  content: '🥉 ';
}

.nome {
  color: #e8d5b7;
  font-weight: bold;
}

.valor {
  color: #ff7a33;
  font-weight: bold;
  font-size: 1.05rem;
}

/* ===== HOME STATS ===== */
#proximo-churrasco {
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.stat-card {
  background:
    linear-gradient(135deg, rgba(138, 53, 0, 0.12), rgba(10, 5, 0, 0.7));
  border: 2px solid #4a1f00;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  transition: all 0.25s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: #ff6b00;
}

.stat-card .label {
  color: #d4a574;
  font-size: 0.85rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card .value {
  color: #ff7a33;
  font-size: 1.5rem;
  font-weight: bold;
}

/* ===== IMAGEM NA OFENSA ===== */
.ofensa-img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  margin-top: 8px;
  display: block;
  cursor: pointer;
  border: 1px solid #4a1f00;
  transition: transform 0.25s;
}

.ofensa-img:hover {
  transform: scale(1.01);
}

/* ===== OFENSAS ===== */
#lista-ofensas {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.ofensa-item {
  background: rgba(10, 5, 0, 0.7);
  border-left: 4px solid #8a3500;
  border-radius: 8px;
  padding: 14px 18px;
  position: relative;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ofensa-item:hover {
  transform: translateX(4px);
  border-left-color: #ff6b00;
}

.ofensa-item .data-ofensa {
  display: block;
  color: #6a4020;
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.ofensa-item .autor {
  color: #ff7a33;
  font-weight: bold;
  font-size: 1rem;
  display: block;
  margin-bottom: 6px;
}

.ofensa-item .autor::before {
  content: '🤬 ';
}

.ofensa-item .texto {
  color: #e8d5b7;
  line-height: 1.5;
  word-wrap: break-word;
  margin-bottom: 10px;
}

/* ===== COMENTÁRIOS NAS OFENSAS ===== */
.ofensa-acoes {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #4a1f00;
  flex-wrap: wrap;
}

.btn-comentar {
  background: transparent;
  border: 1.5px solid #8a3500;
  color: #d49060;
  padding: 5px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  transition: all 0.25s;
}

.btn-comentar:hover {
  background: rgba(138, 53, 0, 0.25);
  border-color: #ff6b00;
}

.contador-comentarios {
  color: #8a5a30;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.form-comentario {
  margin-top: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  border: 1px solid #4a1f00;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-comentario textarea {
  min-height: 60px;
  font-size: 0.9rem;
}

.form-comentario .btn-mini {
  align-self: flex-end;
  padding: 8px 16px;
  background: linear-gradient(135deg, #b82a00, #e85b00);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.85rem;
  transition: all 0.25s;
}

.form-comentario .btn-mini:hover {
  background: linear-gradient(135deg, #d83800, #ff6b00);
}

.lista-comentarios {
  margin-top: 12px;
  padding-left: 20px;
  border-left: 2px solid #4a1f00;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comentario-item {
  background: rgba(20, 8, 0, 0.7);
  border-left: 3px solid #8a4a25;
  border-radius: 6px;
  padding: 10px 12px;
  position: relative;
  font-size: 0.9rem;
  transition: all 0.25s;
}

.comentario-item:hover {
  background: rgba(30, 12, 0, 0.9);
}

.comentario-item .autor-comentario {
  color: #d49060;
  font-weight: bold;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 3px;
}

.comentario-item .autor-comentario::before {
  content: '↳ 💬 ';
}

.comentario-item .data-comentario {
  color: #6a4020;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 4px;
}

.comentario-item .texto-comentario {
  color: #d4a574;
  word-wrap: break-word;
  line-height: 1.4;
}

.comentario-item .btn-excluir-mini {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  color: #d4683a;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  opacity: 0.5;
}

.comentario-item:hover .btn-excluir-mini {
  opacity: 1;
}

.comentario-item .btn-excluir-mini:hover {
  background: rgba(138, 53, 0, 0.3);
}

/* ===== HINTS / MENSAGENS ===== */
.hint {
  color: #6a4020;
  font-style: italic;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
}

/* ===== ADMIN ONLY ===== */
.admin-only.hidden {
  display: none !important;
}

/* ===== SCROLLBAR CUSTOMIZADA ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8a3500, #4a1f00);
  border-radius: 6px;
  border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b82a00, #8a3500);
}

/* ===== ANIMAÇÕES ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.03); }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  .header-top {
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  nav {
    gap: 5px;
    padding: 0 10px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .card, section {
    padding: 18px;
  }

  .card h2, section h2 {
    font-size: 1.2rem;
  }

  .ofensa-img {
    max-height: 300px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .login-box {
    padding: 30px 20px;
  }

  .login-box h1 {
    font-size: 1.5rem;
  }

  .lista-comentarios {
    padding-left: 12px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 15px 12px;
  }

  .tab-btn {
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .user-info {
    font-size: 0.85rem;
  }

  .btn-logout {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  /* ===== MURAL DE FOTOS (GALERIA) ===== */
.galeria-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.foto-card {
  background: rgba(10, 5, 0, 0.7);
  border: 2px solid #4a1f00;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.foto-card:hover {
  transform: translateY(-4px);
  border-color: #ff6b00;
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.25);
}

.foto-card .foto-thumb {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #000;
  display: block;
}

.foto-card .foto-legenda-box {
  padding: 12px 14px;
  background: rgba(20, 8, 0, 0.85);
}

.foto-card .foto-titulo {
  color: #ff7a33;
  font-weight: bold;
  font-size: 1rem;
  display: block;
  margin-bottom: 3px;
  word-wrap: break-word;
}

.foto-card .foto-data {
  color: #8a5a30;
  font-size: 0.78rem;
}

.foto-card .btn-excluir-foto {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #ff5533;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
}

.foto-card:hover .btn-excluir-foto {
  opacity: 1;
}

/* ===== MODAL ADICIONAR FOTO ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-box {
  background: linear-gradient(135deg, rgba(15, 5, 0, 0.98), rgba(25, 10, 0, 0.95));
  border: 2px solid #5a2800;
  border-radius: 16px;
  padding: 25px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #4a1f00;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.modal-header h2 {
  color: #ff7a33;
  font-size: 1.4rem;
  border: none;
  margin: 0;
  padding: 0;
  font-family: 'Georgia', serif;
}

.modal-close, .modal-foto-close {
  background: transparent;
  border: none;
  color: #d4683a;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover, .modal-foto-close:hover {
  background: rgba(138, 53, 0, 0.3);
  color: #ff6b00;
}

.foto-dropzone {
  border: 2px dashed #5a2800;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  color: #ff7a33;
  cursor: pointer;
  display: block;
  transition: all 0.25s;
}

.foto-dropzone:hover {
  border-color: #ff6b00;
  background: rgba(255, 107, 0, 0.05);
}

#foto-preview {
  max-width: 100%;
  max-height: 260px;
  border-radius: 8px;
}

/* ===== MODAL VISUALIZAR FOTO ===== */
.modal-foto-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  overflow-y: auto;
  padding: 40px 20px;
}

.modal-foto-close {
  position: fixed;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  z-index: 10001;
}

.modal-foto-conteudo {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#ver-foto-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  border: 1px solid #4a1f00;
  background: #000;
}

#ver-foto-legenda {
  color: #ff7a33;
  text-align: center;
  font-size: 1.3rem;
  margin: 0;
}

.comentarios-foto-wrapper {
  width: 100%;
  background: rgba(15, 5, 0, 0.9);
  border: 1px solid #4a1f00;
  border-radius: 12px;
  padding: 18px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .foto-card .foto-thumb { height: 180px; }
  #ver-foto-img { max-height: 55vh; }
}
}
