/* css/layout.css */
.container { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
header.site { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lang-switch button { background: transparent; color: var(--text-dim); border: 1px solid var(--card-border); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { color: var(--bg-0); background: var(--neon-cyan); }

.view { display: none; }
.view.active { display: block; }

.step { display: none; }
.step.active { display: block; }
.field { margin: 18px 0; }
.field label { display: block; margin-bottom: 8px; color: var(--text-dim); }
.field input, .field select { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text); }
.options-grid { display: grid; gap: 10px; }
.option-btn { text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text); cursor: pointer; }
.option-btn[aria-pressed="true"] { border-color: var(--neon-pink); box-shadow: 0 0 18px rgba(255,94,207,0.3) inset; }

.result-card { border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: 0 0 32px rgba(255,94,207,0.2) inset; background: var(--card-bg); }
.result-sign { font-size: clamp(32px, 8vw, 56px); font-weight: 900; text-shadow: 0 0 18px var(--neon-pink); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

@media (max-width: 480px) { .container { padding: 16px 12px 48px; } }

/* PDF report via native browser print. Hidden on screen; shown only when printing. */
#print-report { display: none; }
@media print {
  body { background: #fff !important; }
  .container { display: none !important; }
  #print-report { display: block; color: #14082e; font-family: Georgia, "Times New Roman", serif; padding: 24px; }
  #print-report h1 { color: #b0402e; margin: 0 0 4px; }
  #print-report h2 { font-size: 40px; margin: 16px 0 4px; }
  #print-report .report-name { font-style: italic; color: #555; }
  #print-report .report-essencia { font-weight: bold; }
  #print-report hr { border: 0; border-top: 1px solid #ccc; margin: 16px 0; }
  #print-report .report-footer { margin-top: 24px; font-size: 12px; color: #777; }
}

/* Visible date-picker indicator on the dark theme */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.8);
  opacity: 1;
  cursor: pointer;
}

/* Disabled "next" button (used until the current step is answered) */
.neon-btn:disabled, .neon-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

/* Tarot-card options for the personality questions */
.tarot-title { text-align: center; font-size: 18px; margin-bottom: 10px; }
.tarot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tarot-card {
  position: relative;
  flex: 1 1 200px; max-width: 240px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 180px; padding: 20px 12px;
  cursor: pointer; text-align: center;
  color: var(--text);
  background: linear-gradient(160deg, rgba(59,29,110,0.55), rgba(8,3,15,0.85));
  border: 1px solid var(--card-border); border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255,94,207,0.08) inset;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tarot-card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(125,227,255,0.18); }
.tarot-card:focus-visible { outline: 3px solid var(--neon-cyan); outline-offset: 2px; }
.tarot-card[aria-pressed="true"] {
  border-color: var(--neon-pink);
  box-shadow: 0 0 26px rgba(255,94,207,0.45), 0 0 26px rgba(255,94,207,0.2) inset;
}
.tarot-numeral {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px; font-weight: 700; letter-spacing: 2px;
  color: var(--neon-cyan);
}
.tarot-text { font-size: 14px; line-height: 1.35; }
.tarot-corner { position: absolute; font-size: 12px; color: var(--neon-pink); opacity: 0.7; }
.tarot-corner.tl { top: 8px; left: 10px; }
.tarot-corner.br { bottom: 8px; right: 10px; }
/* On narrow screens, shrink the cards so two fit per row (instead of one). */
@media (max-width: 560px) { .tarot-card { flex-basis: 150px; } }

/* Landing / home page */
.home { text-align: center; padding: 24px 8px 8px; max-width: 640px; margin: 0 auto; }
.home-tagline { font-size: clamp(24px, 5vw, 36px); font-weight: 800; margin: 8px 0 18px; }
.home-lead { font-size: 18px; color: var(--text); }
.home p { color: var(--text-dim); line-height: 1.5; }
.home-disclaimer { font-style: italic; }
.home-cta { margin-top: 20px; font-size: 16px; }

/* Footer credit / contact */
.footer-credit { color: var(--text-dim); font-size: 12px; margin-top: 14px; }
.footer-credit a { color: var(--neon-cyan); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
