/* ═══════════════════════════════════════════════════════
   Review Mensal com o Time — page-specific styles
   Depende de: style.css (design tokens) + simulators.css
   ═══════════════════════════════════════════════════════ */

:root {
  /* Fonts */
  --font-head:  'Ubuntu', sans-serif;
  --font-body:  'Ubuntu', sans-serif;
  
  --t-bg:        var(--z-bg);
  --t-surface:   var(--z-surface);
  --t-card:      var(--z-card);
  --t-border:    rgba(43,184,184,.15);
  --t-border-hi: rgba(43,184,184,.4);
  --t-primary:   var(--z-primary);
  --t-accent:    var(--z-primary);
  --t-accent-lo: rgba(43,184,184,.12);
  --t-danger:    #f87171;
  --t-text:      var(--z-text);
  --t-secondary: var(--z-text-2);
  --t-muted:     var(--z-text-2);
  --t-dim:       var(--z-text-muted);
  --font-h:      var(--font-head);
  --font-b:      var(--font-body);
  --radius:      10px;
  --radius-sm:   6px;
}

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

body {
  font-family: var(--font-body);
  background: var(--t-bg);
  color: var(--t-text);
  min-height: 100vh;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-h); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--t-bg); }
::-webkit-scrollbar-thumb { background: var(--t-border-hi); border-radius: 3px; }

/* ══ TOOLBAR ═════════════════════════════════════════════════════ */
.toolbar {
  position: sticky; top: 56px; z-index: 90;
  background: rgba(8,13,19,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--t-border);
  padding: .55rem 0;
}
.toolbar-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.toolbar-center {
  display: flex; align-items: center; gap: .75rem;
  flex: 1; max-width: 300px; margin: 0 auto;
}
.progress-outer {
  flex: 1; height: 3px; background: var(--t-border);
  border-radius: 99px; overflow: hidden;
}
.progress-inner {
  height: 100%; background: var(--t-accent);
  border-radius: 99px; transition: width .4s ease;
}
.progress-label { font-size: .7rem; color: var(--t-muted); white-space: nowrap; }
.toolbar-actions { display: flex; gap: .4rem; align-items: center; }
.save-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--t-accent); opacity: 0;
  transition: opacity .3s; flex-shrink: 0;
}
.save-dot.on { opacity: 1; }

/* ══ BUTTONS ═════════════════════════════════════════════════════ */
.btn-t {
  font-family: var(--font-h); font-size: .75rem; font-weight: 500;
  letter-spacing: .04em; border-radius: var(--radius-sm);
  padding: .3rem .85rem; border: 1px solid var(--t-border-hi);
  color: var(--t-muted); background: transparent; cursor: pointer;
  transition: all .18s; display: inline-flex;
  align-items: center; gap: .35rem; white-space: nowrap;
}
.btn-t:hover { border-color: var(--t-accent); color: var(--t-accent); background: var(--t-accent-lo); }
.btn-t.primary { background: var(--t-primary); color: #fff; border-color: var(--t-primary); }
.btn-t.primary:hover { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-bg); }
.btn-t.danger:hover  { border-color: var(--t-danger); color: var(--t-danger); background: rgba(248,113,113,.08); }

/* ══ PAGE HEADER ═════════════════════════════════════════════════ */
.page-header {
  background: var(--t-surface);
  border-bottom: 1px solid var(--t-border);
  padding: 2.25rem 0 0;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 90% 20%, rgba(43,184,184,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(43,184,184,.05) 0%, transparent 50%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--font-b); font-size: .68rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--t-accent); margin-bottom: .5rem;
}
.page-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700;
  color: var(--t-text); margin-bottom: .2rem; line-height: 1.15;
}
.page-header .subtitle { font-weight: 300; color: var(--t-secondary); font-size: .88rem; }
.session-strip {
  display: flex; align-items: center; gap: 2rem;
  flex-wrap: wrap; margin-top: 1.75rem; padding: .9rem 0;
  border-top: 1px solid var(--t-border);
}
.date-field { display: flex; align-items: center; gap: .65rem; }
.date-field label {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--t-muted); font-weight: 500; white-space: nowrap;
}
.date-field input[type="date"] {
  background: var(--t-card); border: 1px solid var(--t-border-hi);
  border-radius: var(--radius-sm); color: var(--t-text);
  font-family: var(--font-h); font-size: .88rem; font-weight: 500;
  padding: .3rem .75rem; outline: none; cursor: pointer;
  transition: border-color .2s; color-scheme: dark;
}
.date-field input[type="date"]:hover,
.date-field input[type="date"]:focus { border-color: var(--t-accent); }

/* ══ CONTENT ═════════════════════════════════════════════════════ */
.content-wrap { max-width: 800px; margin: 0 auto; padding: 2rem 1rem 4rem; }

/* ══ OPENING CARD ════════════════════════════════════════════════ */
.opening-card {
  background: var(--t-card); border: 1px solid var(--t-border);
  border-left: 3px solid var(--t-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem; margin-bottom: 2rem;
}
.tag-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--t-accent); font-weight: 700; font-family: var(--font-b);
  background: var(--t-accent-lo); border-radius: 99px;
  padding: .18rem .65rem; margin-bottom: .8rem;
}
.opening-quote {
  font-style: italic; font-weight: 300; color: var(--t-text);
  font-size: .97rem; line-height: 1.7;
}
.opening-quote::before { content: '\201C'; color: var(--t-accent); font-size: 1.3em; line-height: 0; vertical-align: -.2em; }
.opening-quote::after  { content: '\201D'; color: var(--t-accent); font-size: 1.3em; line-height: 0; vertical-align: -.2em; }

/* ══ BLOCK ═══════════════════════════════════════════════════════ */
.block-wrap { margin-bottom: 1.5rem; }
.block-head {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1.1rem; background: var(--t-surface);
  border: 1px solid var(--t-border); border-radius: var(--radius);
  cursor: pointer; transition: border-color .2s, background .2s;
  user-select: none;
}
.block-head:hover { border-color: var(--t-border-hi); background: var(--t-card); }
.block-head.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.block-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(43,184,184,.15); color: var(--t-muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-size: .75rem; font-weight: 700;
  flex-shrink: 0; transition: background .3s, color .3s;
}
.block-num.done { background: var(--t-primary); color: #fff; }
.block-info { flex: 1; }
.block-info h2 {
  font-size: .88rem; font-weight: 700; color: var(--t-text);
  text-transform: uppercase; letter-spacing: .06em; line-height: 1.2;
}
.block-info small { font-size: .72rem; color: var(--t-secondary); font-weight: 300; }
.block-chevron { color: var(--t-muted); font-size: .85rem; transition: transform .25s; }
.block-chevron.rotated { transform: rotate(-90deg); }
.block-body {
  background: var(--t-card); border: 1px solid var(--t-border);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.25rem 1.25rem 1rem; display: none;
}
.block-body.open { display: block; }

/* ══ QUESTION CARD ═══════════════════════════════════════════════ */
.q-card {
  background: var(--t-surface); border: 1px solid var(--t-border);
  border-radius: var(--radius); padding: 1.1rem 1.25rem .9rem;
  margin-bottom: .9rem; transition: border-color .2s;
}
.q-card:last-child { margin-bottom: 0; }
.q-card:focus-within { border-color: var(--t-primary); box-shadow: 0 0 0 3px rgba(43,184,184,.1); }
.q-num {
  font-size: .63rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--t-accent); font-weight: 700; font-family: var(--font-b); margin-bottom: .55rem;
}
.q-text {
  font-style: italic; font-weight: 300; font-size: .94rem; line-height: 1.65;
  color: var(--t-text); border-left: 2px solid var(--t-border-hi);
  padding-left: .85rem; margin-bottom: .85rem;
}
.q-variation {
  font-size: .8rem; font-style: italic; color: var(--t-secondary);
  border-left: 2px solid rgba(43,184,184,.25);
  padding-left: .75rem; margin-bottom: .9rem; line-height: 1.5;
}
.q-variation strong {
  display: block; font-style: normal; font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--t-accent); margin-bottom: .15rem;
}
.field-label {
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--t-muted); font-weight: 500; margin-bottom: .35rem;
  display: flex; align-items: center; gap: .35rem;
}
.field-label i { color: var(--t-accent); font-size: .75rem; }
textarea.notes {
  width: 100%; min-height: 88px; background: var(--t-bg);
  border: 1px solid var(--t-border); border-radius: var(--radius-sm);
  color: var(--t-text); font-family: var(--font-b);
  font-size: .88rem; font-weight: 400; padding: .6rem .85rem;
  resize: vertical; outline: none; transition: border-color .2s; line-height: 1.6;
}
textarea.notes:focus { border-color: var(--t-primary); }
textarea.notes::placeholder { color: var(--t-dim); font-style: italic; }

/* ══ RECOGNITION ═════════════════════════════════════════════════ */
.rec-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; min-height: 1rem; }
.rec-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(43,184,184,.15); border: 1px solid rgba(43,184,184,.3);
  color: var(--t-accent); border-radius: 99px;
  font-size: .75rem; font-weight: 500; padding: .15rem .6rem; font-family: var(--font-b);
}
.rec-tag .rm { opacity: .5; cursor: pointer; font-size: .85em; line-height: 1; transition: opacity .15s; }
.rec-tag .rm:hover { opacity: 1; }
.rec-add { display: flex; gap: .4rem; margin-top: .4rem; }
.rec-add input {
  flex: 1; background: var(--t-bg); border: 1px solid var(--t-border);
  border-radius: 99px; color: var(--t-text); font-family: var(--font-b);
  font-size: .8rem; padding: .25rem .85rem; outline: none; transition: border-color .2s;
}
.rec-add input:focus { border-color: var(--t-primary); }
.rec-add input::placeholder { color: var(--t-dim); }
.rec-add button {
  background: transparent; border: 1px solid var(--t-border-hi);
  color: var(--t-secondary); border-radius: 99px; padding: .25rem .8rem;
  font-size: .78rem; font-family: var(--font-h); font-weight: 500;
  cursor: pointer; transition: all .18s;
}
.rec-add button:hover { border-color: var(--t-accent); color: var(--t-accent); }

/* ══ CHECKLIST ═══════════════════════════════════════════════════ */
.checklist-card {
  background: var(--t-card); border: 1px solid var(--t-border);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-top: 2rem;
}
.checklist-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem;
}
.checklist-head h3 {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--t-text); display: flex; align-items: center; gap: .5rem;
}
.checklist-head h3 i { color: var(--t-accent); }
.check-count { font-size: .72rem; color: var(--t-secondary); }
.chk-item {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .55rem 0; border-bottom: 1px solid var(--t-border); cursor: pointer;
}
.chk-item:last-child { border-bottom: none; }
.chk-item input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--t-primary);
  cursor: pointer; flex-shrink: 0; margin-top: 3px;
}
.chk-item span { font-size: .88rem; font-weight: 400; color: var(--t-text); line-height: 1.5; transition: color .2s; }
.chk-item.done span { color: var(--t-dim); text-decoration: line-through; }

/* ══ CLOSING QUOTE ═══════════════════════════════════════════════ */
.closing-quote {
  font-style: italic; font-weight: 300; font-size: .9rem; color: var(--t-secondary);
  border-left: 2px solid var(--t-border-hi); padding-left: .85rem;
  margin-bottom: .9rem; line-height: 1.65;
}

/* ══ DIVIDER ═════════════════════════════════════════════════════ */
.divider { height: 1px; background: var(--t-border); margin: .25rem 0 1.5rem; }

/* ══ TOAST CONFIRM ═══════════════════════════════════════════════ */
.toast-backdrop {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(8,13,19,.55);
  backdrop-filter: blur(3px);
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.toast-backdrop.show { opacity: 1; pointer-events: all; }
.toast-box {
  background: var(--t-card); border: 1px solid var(--t-border-hi);
  border-top: 3px solid var(--t-danger); border-radius: var(--radius);
  padding: 1.4rem 1.6rem 1.2rem;
  width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: translateY(-16px);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.toast-backdrop.show .toast-box { transform: translateY(0); }
.toast-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--t-danger); font-size: 1rem; margin-bottom: .9rem;
}
.toast-title { font-family: var(--font-h); font-size: .95rem; font-weight: 700; color: var(--t-text); margin-bottom: .35rem; }
.toast-msg { font-size: .82rem; font-weight: 400; color: var(--t-secondary); line-height: 1.55; margin-bottom: 1.1rem; }
.toast-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.toast-cancel {
  font-family: var(--font-h); font-size: .78rem; font-weight: 500;
  padding: .38rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--t-border-hi); color: var(--t-secondary);
  background: transparent; cursor: pointer; transition: all .15s;
}
.toast-cancel:hover { border-color: var(--t-muted); color: var(--t-text); }
.toast-confirm {
  font-family: var(--font-h); font-size: .78rem; font-weight: 600;
  padding: .38rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--t-danger); color: var(--t-danger);
  background: rgba(248,113,113,.08); cursor: pointer; transition: all .15s;
}
.toast-confirm:hover { background: var(--t-danger); color: #fff; }

/* ══ PRINT ═══════════════════════════════════════════════════════ */
@media print {
  .page-nav, .toolbar, .btn-t, .zazen-footer, .back-to-top { display: none !important; }
  .block-body { display: block !important; }
  body { background: #fff; color: #111; }
  textarea.notes { border: 1px solid #ccc; background: #fff; color: #111; }
}

/* ══ MOBILE ══════════════════════════════════════════════════════ */
@media (max-width: 576px) {
  .toolbar { top: 52px; }
  .content-wrap { padding: 1.25rem .75rem 3rem; }
}
