/* styles extracted from docs/index.html */
* { box-sizing: border-box; }
body {
  font-family: system-ui, sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 60px;
  color: #222;
  background: #fff;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.logo-header {
  /* container only: center and provide 3D perspective */
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px; /* needed so child transforms feel 3D */
  width: fit-content; /* shrink to content so hover area is limited */
}
.logo-card {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .12s ease-out;
  border-radius: 10px;
  background: #921a1a;
  padding: 16px 22px;
  max-width: fit-content;
}
.logo-header img { height: 136px; width: auto; display: block; transform-origin: center center; display: block; }
h2 { margin-top: 32px; border-bottom: 1px solid #eee; padding-bottom: 6px; }
p, li { line-height: 1.6; }
code { background: #f4f4f4; padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
.badge { display: inline-block; background: #f4f4f4; color: #666; font-size: 12px;
         padding: 2px 8px; border-radius: 12px; border: 1px solid #ddd; margin-left: 8px; vertical-align: middle; }

/* Theme toggle button */
.theme-toggle {
  position: absolute;
  top: 18px;
  right: 32px;
  z-index: 10;
  background: #f4f4f4;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.2s, color 0.2s;
}
.theme-toggle svg { width: 22px; height: 22px; }

/* Dark theme styles */
body.dark {
  background: #18191a;
  color: #f3f3f3;
}
body.dark .logo-card {
  background: #5a1111;
}
body.dark h2 {
  border-bottom: 1px solid #333;
}
body.dark code, body.dark .badge {
  background: #23272e;
  color: #e0e0e0;
  border-color: #333;
}
body.dark .note {
  color: #aaa;
}
body.dark h3 {
  color: #ccc;
}
body.dark .theme-toggle {
  background: #23272e;
  color: #f3f3f3;
  border-color: #444;
}
/* Button tweaks for dark */
.install-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 8px; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .15s;
}
.btn-firefox  { background: #e66000; color: #fff; }
.btn-firefox:hover  { background: #c75500; }
.btn-chrome   { background: #1a73e8; color: #fff; }
.btn-chrome:hover   { background: #1558b0; }
.btn-manual   { background: #555; color: #fff; }
.btn-manual:hover   { background: #333; }
.install-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.steps { margin: 10px 0 0 0; padding-left: 20px; }
.steps li { margin-bottom: 4px; }
.note { font-size: 13px; color: #666; margin-top: 8px; }
/* Footer (full-width within content) */
.site-footer {
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 14px;
  color: #5b5b5b;
  margin-top: 14px;
  border-top: 1px solid transparent; /* prevents margin collapse with previous element */
  border-radius: 10px;
  font-weight: 400;
  transition: transform .18s ease, color .15s ease, font-weight .22s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: visible;
}
.site-footer a { color: inherit; text-decoration: none; }

/* decorative gradient glow that spans the full footer width on hover */
.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 6px;
  width: 0;
  margin: 0 auto;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(230,96,0,0.9), rgba(26,115,232,0.9));
  filter: blur(10px);
  opacity: 0;
  transition: width .28s ease, opacity .2s ease;
  pointer-events: none;
}
.site-footer:hover { color: #222;  font-weight: 600; }
.site-footer:hover::before { width: 100%; opacity: 1; }

.site-footer:hover::after { opacity: 0.85; }

body.dark .site-footer {
  color: #fff;
}
body.dark .site-footer::before { background: linear-gradient(90deg, rgba(255,138,80,0.9), rgba(102,182,235,0.9)); }

/* Alerta visual para o bloco de privacidade */
#privacidade {
  background: #fdecef; /* fundo vermelho claro */
  border-left: 6px solid #c92a2a; /* borda esquerda estilo alerta */
  padding: 14px 16px;
  border-radius: 6px;
  margin: 14px 0;
}

/* Ajuste para tema escuro */
body.dark #privacidade {
  background: rgba(201, 42, 42, 0.10);
  border-left-color: #ff6b6b;
}

/* Card system for feature list: flexible, wrapping cards */
/* Column-style layout similar to Tailwind's `space-y-4 md:columns-2 md:gap-4` */
.features-columns {
  column-count: 2;
  column-gap: 1rem; /* md:gap-4 ~ 1rem */
  margin-top: 12px;
}

/* vertical spacing between stacked blocks (space-y-4) */
.features-columns .feature-item { margin-bottom: 1rem; }

.feature-item {
  display: inline-block; /* required so items respect columns */
  width: 100%;
  background: #f0f2f3; /* slightly lighter than body */
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15); /* minimal shadow (3px) */
  border-radius: 10px;
  padding: 16px;
  box-sizing: border-box;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
}

.feature-item h3 { margin: 0 0 8px 0; font-size: 1rem; }
.feature-item ul { margin-top: 6px; }

@media (max-width: 974px) {
  .features-columns { column-count: 1; column-gap: 0.75rem; }
}

/* Dark theme adjustments for cards */
body.dark .feature-item {
  background: #202328;
  box-shadow: 0px 2px 3px rgba(0,0,0,0.3);
}
