/* ============================================================
   Fase da Lua — style.css
   Fonte única de estilos do site. Baseado nos templates de referência.
   ============================================================ */

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

:root {
  --color-header:      #2d1b4e;
  --color-hero:        #1a0f30;
  --color-accent:      #c026d3;
  --color-accent-mid:  #e879f9;
  --color-accent-bg:   #fdf4ff;
  --color-accent-text: #6b21a8;
  --color-page-bg:     #faf8ff;
  --color-white:       #ffffff;
  --color-text:        #1a1a1a;
  --color-muted:       #555555;
  --color-border:      #e8e4f0;
  --color-table-alt:   #f5f0ff;
  --color-today:       #fdf4ff;
  --color-blue-bg:     #eff6ff;
  --color-blue-border: #3b82f6;
  --color-blue-text:   #1d4ed8;
  --font:              'Montserrat', sans-serif;
  --radius:            8px;
  --radius-lg:         12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-page-bg);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.65;
}

/* ─── AD SLOTS (reservados, invisíveis até ativar monetização) ─── */
.ad-slot {
  display: block;
  width: 100%;
  overflow: hidden;
  height: 0;
}
/* Para ativar: remover height:0, adicionar min-height correspondente */

/* ─── HEADER ─── */
.site-header {
  background: var(--color-header);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.site-logo {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.site-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.site-search input {
  width: 100%;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 0 12px 0 34px;
  font-family: var(--font);
  font-size: 12px;
  color: #fff;
  outline: none;
}

.site-search input::placeholder { color: rgba(255,255,255,0.45); }
.site-search input:focus {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
}

.site-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: rgba(255,255,255,0.5);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ─── HERO (home) ─── */
.site-hero {
  background: var(--color-hero);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Ícone da lua no hero — círculo com sombra pseudo-element */
.hero-moon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-header);
  border: 2px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.hero-moon::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--color-hero);
}

/* Lua Minguante */
.hero-moon--minguante::after {
  right: -14px; top: -8px;
  width: 52px; height: 76px;
}
/* Lua Nova */
.hero-moon--nova::after,
.hero-moon--nova { background: #111111; }
.hero-moon--nova::after { display: none; }
/* Quarto Crescente */
.hero-moon--crescente { background: #e8d8f8; }
.hero-moon--crescente::after {
  left: -14px; top: -8px;
  width: 52px; height: 76px;
  background: var(--color-hero);
}
/* Lua Cheia */
.hero-moon--cheia { background: #fafafa; }
.hero-moon--cheia::after { display: none; }

.hero-text { color: #fff; }

.hero-phase {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 3px;
}

.hero-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 7px;
}

.hero-badge {
  display: inline-block;
  background: rgba(192,38,211,0.3);
  border: 1px solid rgba(232,121,249,0.4);
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #f0abfc;
}

.hero-next {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  margin-top: 6px;
}

.hero-next strong { color: rgba(255,255,255,0.6); }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 24px;
  font-size: 12px;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--color-accent-text); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }
.breadcrumb .current { color: var(--color-accent-text); font-weight: 600; }

/* ─── LAYOUT PRINCIPAL ─── */
.page-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}

.page-main {
  flex: 1;
  padding: 20px 24px;
  min-width: 0;
}

.page-sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 20px 16px;
  border-left: 1px solid var(--color-border);
  background: var(--color-white);
}

/* ─── SECTION TITLE ─── */
.section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Pergunta de FAQ como heading (h3) — mantém o visual do <strong> anterior. */
.faq-q {
  font-size: inherit;
  font-weight: 700;
  color: var(--color-text);
  margin: 14px 0 4px;
}

/* ─── CONTENT BLOCK ─── */
.content-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
}

/* ─── PAGE HERO (páginas internas) ─── */
.page-hero {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.page-moon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-hero);
  border: 2px solid rgba(192,38,211,0.25);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.page-moon::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.page-moon--minguante::after {
  right: -16px; top: -10px;
  width: 62px; height: 92px;
  background: var(--color-page-bg);
}

.page-moon--nova { background: #111111; }
.page-moon--nova::after { display: none; }

.page-moon--crescente { background: #e8d8f8; }
.page-moon--crescente::after {
  left: -16px; top: -10px;
  width: 62px; height: 92px;
  background: var(--color-page-bg);
}

.page-moon--cheia { background: #fafafa; border-color: #d1d5db; }
.page-moon--cheia::after { display: none; }

.page-hero-text { flex: 1; }

.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.tag-row { display: flex; gap: 5px; flex-wrap: wrap; }

/* ─── PHASE CARDS (home) ─── */
.phase-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.phase-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.phase-card:hover { border-color: #c084fc; }

.phase-card.current {
  border-color: var(--color-accent);
  border-width: 1.5px;
}

.phase-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 auto 6px;
  border: 1.5px solid var(--color-border);
}

.phase-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text);
  display: block;
}

.phase-card.current .phase-name { color: var(--color-accent-text); }

.phase-date {
  font-size: 10px;
  color: var(--color-muted);
  display: block;
  margin-top: 2px;
}

/* ─── TABELA DE FASES ─── */
.phases-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.phases-table th {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  padding: 7px 10px;
  background: var(--color-header);
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.phases-table th:first-child { border-radius: 6px 0 0 0; }
.phases-table th:last-child  { border-radius: 0 6px 0 0; }

.phases-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}

.phases-table tr:nth-child(even) td { background: var(--color-table-alt); }

.phases-table tr.today td {
  background: var(--color-today);
  font-weight: 600;
}

.phases-table tr.today td:first-child {
  border-left: 3px solid var(--color-accent);
}

.phases-table tr:last-child td { border-bottom: none; }

.moon-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(0,0,0,0.1);
}

.today-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-accent-text);
}

.table-link {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent-text);
  text-decoration: none;
}

.table-link:hover { text-decoration: underline; }

/* ─── INFO BOXES ─── */
.info-box {
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-left: 3px solid;
}

.info-box.purple {
  background: var(--color-accent-bg);
  border-color: var(--color-accent);
}

.info-box.blue {
  background: var(--color-blue-bg);
  border-color: var(--color-blue-border);
}

.info-box-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.info-box.purple .info-box-title { color: var(--color-accent-text); }
.info-box.blue .info-box-title   { color: var(--color-blue-text); }

.info-box p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

.info-box p strong { color: var(--color-text); }

/* ─── TWO-COL GRID (favorável / evitar) ─── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 2px;
}

/* ─── HUB CARDS ─── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.hub-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  cursor: pointer;
  background: var(--color-white);
  text-decoration: none;
  display: block;
  transition: border-color 0.15s;
}

.hub-card:hover { border-color: #c084fc; }

.hub-icon {
  font-size: 20px;
  margin-bottom: 6px;
  display: block;
}

.hub-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent-text);
  margin-bottom: 5px;
}

.hub-desc {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 7px;
}

.hub-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
}

/* ─── TEXTOS CORPO ─── */
.support-text,
.body-text {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.support-text strong,
.body-text strong { color: var(--color-text); }

/* ─── TAGS ─── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }

.tag {
  display: inline-block;
  background: var(--color-accent-bg);
  color: var(--color-accent-text);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 10px;
  text-decoration: none;
  transition: background 0.15s;
}

.tag:hover { background: #f3e8ff; }

/* ─── GRID DE SIGNOS ─── */
.sign-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sign-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 6px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.sign-card:hover {
  border-color: #c084fc;
  background: var(--color-accent-bg);
}

.sign-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent-text);
  display: block;
}

.sign-date {
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 2px;
  display: block;
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 18px 0;
}

/* ─── SIDEBAR ─── */
.sb-block {
  background: var(--color-page-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}

.sb-title {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 10px;
}

.sb-phase-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: opacity 0.15s;
}

.sb-phase-item:last-child { border-bottom: none; padding-bottom: 0; }
.sb-phase-item:hover { opacity: 0.75; }

.sb-moon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.sb-phase-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
}

.sb-phase-date {
  font-size: 11px;
  color: var(--color-muted);
  margin-left: auto;
}

.sb-info-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
}

.sb-info-row:last-child { border-bottom: none; }
.sb-info-key { color: var(--color-muted); }
.sb-info-val { font-weight: 600; color: var(--color-text); }

.sb-links { display: flex; flex-direction: column; gap: 4px; }

.sb-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-text);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s;
}

.sb-link:last-child { border-bottom: none; }
.sb-link:hover { color: var(--color-accent); }
.sb-link.active { color: var(--color-accent); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--color-header);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.footer-links { display: flex; gap: 18px; margin-left: auto; }

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .page-layout { flex-direction: column; }
  .page-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
  .two-col-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  .site-nav { display: none; }
  .page-main { padding: 16px; }
  .page-sidebar { display: none; }
  .phase-cards { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: 1fr; }
  .hero-phase { font-size: 18px; }
  .page-title { font-size: 22px; }
  .sign-grid { grid-template-columns: repeat(3, 1fr); }
  .breadcrumb { padding: 8px 16px; }
  .months-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-day { font-size: 13px; }
  .cal-illum { display: none; }
}

/* ===== Calendário lunar ===== */
.months-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 12px 0;
}
.month-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-white);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
}
.month-card:hover { border-color: var(--color-accent-mid); box-shadow: 0 2px 8px rgba(192,38,211,.08); }
.month-card.current { border-color: var(--color-accent); background: var(--color-accent-bg); }
.month-card-name { font-weight: 600; }
.month-card-meta { font-size: 12px; color: var(--color-muted); }
.month-card-line { font-size: 12px; color: var(--color-text); }

.cal-grid { margin: 12px 0; }
.cal-grid-head,
.cal-grid-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wd {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
  padding: 4px 0;
}
.cal-grid-body { margin-top: 6px; }
.cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 64px;
  padding: 6px 4px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
}
a.cal-cell:hover { border-color: var(--color-accent-mid); box-shadow: 0 2px 8px rgba(192,38,211,.10); }
.cal-cell--empty { border: none; background: transparent; }
.cal-cell--today { border-color: var(--color-accent); background: var(--color-today); }
.cal-cell--change { background: var(--color-table-alt); }
.cal-day { font-size: 14px; font-weight: 600; }
.cal-moon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid transparent;
}
.cal-illum { font-size: 11px; color: var(--color-muted); }
.cal-change-badge {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  color: var(--color-accent-text);
  font-weight: 600;
}
.cal-today-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
}
