/* src/global/css/base.css */
:root,
html {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace !important;
}

body {
  color-scheme: dark;
  font-family: 'Courier New', Courier, monospace, 'Montserrat', sans-serif !important;
  background: #1c1c1c !important;
  background-attachment: fixed !important;
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

/* ============================================================
   BARRA DE SCROLL TEMÁTICA ESCURA SAKURA GLASS
   ============================================================ */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
  background: #161618;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 182, 193, 0.45);
  box-shadow: 0 0 8px rgba(255, 182, 193, 0.35);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
::-webkit-scrollbar-corner {
  background: #161618;
}

/* Suporte Firefox / Padrão W3C */
html,
body,
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) #161618;
}

.rose-gate-container {
  min-height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

#app-content {
  flex: 1;
}

.hero {
  text-align: center;
  padding: 120px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 300;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-title em {
  font-style: italic;
  color: var(--text-muted);
}

.hero-sub {
  margin-top: 30px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* --- BOTÃO FLUTUANTE DE CONFIGURAÇÕES --- */
.settings-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
}

.settings-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.settings-fab:hover .settings-icon {
  background: var(--glass-hover);
}

.settings-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.settings-fab:hover .settings-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) !important;
}

.fab-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  padding: 0;
}

#bossReportFabBtn:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
}

#bossReportFabBtn:hover svg {
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.85));
}

/* --- PAGINAS GERAIS (Ex: Constituição) --- */
.page-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-title {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 50px;
  letter-spacing: 2px;
  color: var(--text-color);
}

.article {
  margin-bottom: 40px;
}

.article h2 {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding-bottom: 8px;
  font-family: 'Cormorant Garamond', serif !important;
  letter-spacing: 0.5px;
  text-align: left;
}

.article h2 svg {
  flex-shrink: 0 !important;
  display: block !important;
  margin: 0 !important;
}

.article h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 10px;
  color: #ffffff !important;
  letter-spacing: 0.3px;
  text-align: left;
}

.article p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
  opacity: 0.9;
}

.article ul {
  list-style-type: none;
  padding-left: 24px;
  margin-bottom: 20px;
}

.article li {
  font-size: 14px;
  line-height: 2.0;
  opacity: 0.85;
  margin-bottom: 24px;
  position: relative;
}

.article li::before {
  content: '•';
  position: absolute;
  left: -14px;
  color: var(--text-muted);
}

.signature {
  text-align: right;
  margin-top: 60px;
  font-size: 18px;
  font-style: italic;
  opacity: 0.8;
  font-family: 'Cormorant Garamond', serif;
}

.theme-toggle,
.login-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.primary-btn {
  background: var(--text-muted);
  border: 1px solid var(--text-muted);
  color: #1a1a1a;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

[data-theme="light"] .primary-btn {
  color: #ffffff;
}

.btn-outline-pill {
  background: transparent;
  border: 1px solid var(--text-color);
  color: var(--text-color);
  padding: 12px 35px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* ============================================================
   ROTULOS DE FORMULÁRIO (LABELS)
   ============================================================ */
label {
  font-weight: 700 !important;
}

/* ============================================================
   RESPONSIVIDADE GLOBAL (MOBILE <= 768px)
   ============================================================ */
@media (max-width: 768px) {

  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  ::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
  }

  .rose-gate-container {
    overflow-x: hidden !important;
    border-radius: 0 !important;
  }

  .hero {
    padding: 24px 14px 40px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero>div:first-child {
    margin-bottom: 28px !important;
    padding-bottom: 20px !important;
  }

  .hero>div:first-child p:first-child {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .hero>div:first-child p:last-child {
    font-size: 14px !important;
    margin-top: 12px !important;
    padding-right: 0 !important;
  }

  .page-container {
    padding: 22px 14px !important;
    margin: 14px auto !important;
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
  }

  .page-title {
    font-size: 24px !important;
    margin-bottom: 24px !important;
    letter-spacing: 1px !important;
  }

  .article h2 {
    font-size: 18px !important;
    gap: 8px !important;
  }

  .article p,
  .article li {
    font-size: 13.5px !important;
  }

  .signature {
    margin-top: 24px !important;
    font-size: 15px !important;
  }

  .recruit-banner-card {
    padding: 22px 14px !important;
    margin: 24px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
  }

  .recruit-banner-card h2 {
    font-size: 20px !important;
    margin-bottom: 14px !important;
  }

  .recruit-banner-card p {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  .newsletter-section {
    flex-direction: column !important;
    gap: 20px !important;
    margin-top: 28px !important;
  }

  .newsletter-section>div {
    min-width: 0 !important;
    width: 100% !important;
    border-right: none !important;
    padding-right: 0 !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-sizing: border-box !important;
  }

  .newsletter-section>div:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .newsletter-section input[type="email"] {
    width: 100% !important;
  }

  .newsletter-section label {
    white-space: normal !important;
    word-break: break-word !important;
  }

  .settings-fab {
    bottom: 12px !important;
    left: 12px !important;
  }

  .settings-icon,
  .fab-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  /* ============================================================
     ENGRENAGEM / FAB NO MOBILE (TOGGLE CONTROLADO POR CLIQUE)
     ============================================================ */
  .settings-fab:hover .settings-menu {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
  }

  .settings-fab.open .settings-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .settings-fab.open .settings-icon {
    background: var(--glass-hover) !important;
  }

  .btn-outline-pill {
    padding: 10px 24px !important;
    font-size: 13px !important;
  }

  /* ============================================================
     FORMULÁRIOS E PERFIL RESPONSIVOS NO MOBILE
     ============================================================ */
  .form-grid > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}