/* ============================================================
   PHILOSIFY.CSS — layout atualizado 02/11/2025
   ============================================================ */

/* ===== VARIÁVEIS GERAIS ===== */
:root{
  --brand:#e2007a;          /* magenta do logo */
  --brand-dark:#b0004f;
  --gray:#f6f6f7;
  --cm: 37.8px;             /* 1 cm ~ 37.8 px */
  --half-cm: 18.9px;        /* 0,5 cm */
  --mm: 3.8px;              /* 1 mm */
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "EB Garamond", Garamond, Georgia, serif;
  background: var(--gray);
  color: #111;
}

/* ===== HEADER COM VÍDEO ===== */
.site-header {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  background: #000;
}

/* vídeo ocupa todo o header */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: contrast(1.02) saturate(1.02);
}

/* faixa superior (idiomas + GUIDE) */
.top-strip {
  position: absolute;
  top: 1mm;
  left: 0;
  right: 0;
  height: 16px;
  background: rgba(255,255,255,0.86);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 3;
}
.guide-link,
.lang-item {
  color: var(--brand);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
}
.lang-item.active {
  color: var(--brand);
  text-decoration: underline;
}
.guide-link:hover,
.lang-item:hover {
  text-decoration: underline;
}

/* ===== CONTEÚDO CENTRAL ===== */
.header-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}

/* LOGO — 50% maior */
.logo {
  width: clamp(195px, 30vw, 300px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
}

/* TAGLINE — branca, 20pt, bold, sem fundo */
.tagline {
  margin-top: var(--half-cm);
  font-weight: 700;
  font-size: 20pt;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

/* ===== BUSCA + BOTÃO ===== */
.search-wrap {
  margin-top: var(--half-cm);
  display: grid;
  grid-template-columns: 7cm 3cm;   /* larguras exatas */
  gap: var(--mm);                   /* 1 mm */
  width: min(600px, 90%);
  justify-content: center;
}

/* Campo de busca: translúcido, sem borda */
.input {
  background: rgba(0,0,0,0.30);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.35),
              inset 0 1px 0 rgba(255,255,255,.06);
}
.input::placeholder { color: rgba(255,255,255,0.85); }

/* Botão Analyze: 3cm, gradiente magenta */
.button {
  width: calc(3 * var(--cm));
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  background: linear-gradient(90deg, #ec4899, #db2777);
  box-shadow: 0 10px 22px rgba(226,0,122,.35),
              0 2px 6px rgba(0,0,0,.35);
  cursor: pointer;
}
.button:hover { background: linear-gradient(90deg, #db2777, #b0004f); }

/* Spinner (mantido) */
.btn-spinner { display: none; }

/* ===== RESULTADOS ===== */
.results {
  max-width: 980px;
  margin: 40px auto;
  display: grid;
  gap: 16px;
  padding: 0 16px;
}
.results .card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.10),
              0 2px 6px rgba(0,0,0,.06);
}

/* ===== RODAPÉ ===== */
footer.footer, footer {
  margin-top: 40px;
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 24px 16px;
  font-size: 13px;
}
footer.footer a, footer a {
  color: #fff;
  text-decoration: none;
}
footer.footer a:hover, footer a:hover {
  text-decoration: underline;
}

/* ===== MODAL GUIDE (se existir) ===== */
.guide-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.guide-content {
  background: #111;
  border: 1px solid #c7c2ac;
  border-radius: 12px;
  width: 85%;
  max-width: 960px;
  height: 80vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,.6);
}
.guide-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.close-guide {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 18px;
  color: #c7c2ac;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.close-guide:hover { color: #fff; }

/* ===== RESPONSIVO ===== */
@media (max-width: 800px){
  .results .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .header-content { padding: 32px 12px; }
  .search-wrap { grid-template-columns: 1fr; }
  .button { width: 100%; }
}

:root{
  --half-cm: 0.5cm;
  --mm: 1mm;
}

/* Make sure header uses margins-only rhythm, not gap */
.header-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0; /* ensure grid/flex gap isn't adding extra spacing */
}

/* Logo 50% larger than before (adjust as you like) */
.logo{
  width: clamp(195px, 30vw, 300px);
  height: auto;
  display:block;
  margin: 0; /* no extra margins here */
  filter:none; /* no shadows/glow */
}

/* Tagline — plain white 20pt, bold, NO shadow/backdrop */
.tagline{
  margin-top: var(--half-cm);      /* 0.5 cm below logo     */
  margin-bottom: var(--half-cm);   /* 0.5 cm above the input */
  font-weight: 700;
  font-size: 20pt;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: none;               /* ensure no shadow */
  background: transparent;         /* ensure no pill */
}

/* Search row: exact widths and spacing */
.search-wrap{
  display:grid;
  grid-template-columns: 7cm 3cm;  /* exact widths requested */
  gap: var(--mm);                  /* 1 mm between field & button */
  width: min(600px, 90%);
  justify-content:center;
}

/* Input: ~70% transparent, no border */
.input{
  width:auto;                      /* let grid define width (7cm) */
  background: rgba(255,255,255,0.3);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  box-shadow: none;                /* no elevation */
}
.input::placeholder{ color: rgba(255,255,255,0.8); }

/* Button: 3 cm, no border */
.button{
  width: auto;                     /* let grid define width (3cm) */
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, #ec4899, #db2777);
  cursor: pointer;
  box-shadow: none;                /* no elevation */
}

/* Header language strip colors (magenta) and underline on hover/active */
.top-strip{ background: rgba(255,255,255,0.86); }
.guide-link, .lang-item{
  color: #db2777;                  /* brand magenta */
  text-decoration: none;
}
.lang-item:hover, .guide-link:hover{ text-decoration: underline; }
.lang-item.active{ text-decoration: underline; font-weight: 700; color: #db2777; }

/* Mobile: stack the input/button */
@media (max-width:560px){
  .search-wrap{ grid-template-columns: 1fr; }
}
