@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --bg-color: #0d0a0b;
  --card-bg: #161214;
  --accent-red: #ff2a4b;
  --accent-red-hover: #d91c39;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #2a2024;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Efeito Grid/Grind no Fundo Original */
  background-image: 
    linear-gradient(to right, rgba(255, 42, 75, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 42, 75, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Efeito Page-Up para transição de páginas */
main, .page-content {
  animation: pageUp 0.4s ease-out forwards;
}

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

/* Header & Nav */
header {
  background: rgba(22, 18, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-red);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

main {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 30px auto;
  padding: 0 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Grid Organizadora dos 3 Slots */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 25px;
}

.slot-card {
  background: #161214;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slot-card:hover, .slot-card.selected {
  border-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(255, 42, 75, 0.25);
}

/* Componente Moderno de Drag & Drop (Inspirado na Discloud) */
.dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  background: rgba(13, 10, 11, 0.6);
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  margin-top: 6px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-red);
  background: rgba(255, 42, 75, 0.05);
  box-shadow: 0 0 15px rgba(255, 42, 75, 0.15);
}

.dropzone-icon {
  color: var(--accent-red);
  width: 36px;
  height: 36px;
}

.dropzone-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropzone-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dropzone-file-name {
  font-size: 0.85rem;
  color: var(--accent-red);
  font-weight: 600;
  margin-top: 4px;
}

/* Esconde o input padrão nativo do navegador */
.file-input-hidden {
  display: none !important;
}

.btn-red {
  background: var(--accent-red);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
}

.btn-red:hover {
  background: var(--accent-red-hover);
}

.btn-red:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input, select {
  width: 100%;
  padding: 12px;
  background: #0d0a0b;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: white;
  margin-top: 6px;
  margin-bottom: 16px;
}

input:focus, select:focus {
  border-color: var(--accent-red);
  outline: none;
}

/* Accordion Fórum */
.forum-topic {
  background: #0d0a0b;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.forum-header {
  padding: 15px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 42, 75, 0.02);
}

.forum-body {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.forum-topic.open .forum-body {
  display: block;
}

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--card-bg);
  border-left: 4px solid var(--accent-red);
  color: white;
  padding: 15px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-profile-viewport {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--accent-red);
  object-fit: cover;
  margin: 0 auto 15px auto;
  display: block;
  box-shadow: 0 0 15px rgba(255, 42, 75, 0.4);
}

.myprofile-watermark {
  margin-top: 25px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.myprofile-glow-link {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 42, 75, 0.8), 0 0 15px rgba(255, 42, 75, 0.4);
}

/* Menu Responsivo Mobile */
@media (max-width: 768px) {
  .hamburger { 
    display: flex; 
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--card-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links.active { 
    display: flex; 
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    padding: 8px 0;
  }
}

/* ==========================================
   FOOTER ESTILO ATENDOJÁ / ARROW COMPANY
   ========================================== */

footer.site-footer {
  background-color: #110d0e;
  border-top: 1px solid var(--border-color);
  padding: 60px 20px 30px 20px;
  position: relative;
  overflow: hidden;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-columns {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column h4 {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--accent-red);
}

/* Marca d'água gigante no fundo com estilo AtendoJá */
.footer-watermark {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 42, 75, 0.08) 0%, rgba(255, 42, 75, 0.002) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Rodapé Inferior & Redes Sociais */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--accent-red);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-box {
  width: 38px;
  height: 38px;
  background: rgba(13, 10, 11, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-box:hover {
  background: rgba(255, 42, 75, 0.1);
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  .footer-columns {
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-watermark {
    bottom: 90px;
  }
}
