/* ============================================
   ReadPuppy Schedule Generator — schedule-gen.css ?v=1.0
   Public tool: form → visual timeline → block list → print
   ============================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.sg-hero {
  background: linear-gradient(160deg, var(--rp-hero-1) 0%, var(--rp-hero-2) 60%, var(--rp-hero-3) 100%);
  padding: 56px 0 48px;
  text-align: center;
  color: #fff;
}
.sg-hero__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.sg-hero__title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.sg-hero__title em {
  font-style: italic;
  color: #F59E0B;
}
.sg-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Wrap ──────────────────────────────────────────────────── */
.sg-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 0 64px;
}

/* ── Step Container ───────────────────────────────────────── */
.sg-step { animation: rp-fadein 0.3s ease; }
.sg-step__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.sg-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rp-purple);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sg-step__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--rp-dark);
  margin-bottom: 4px;
}
.sg-step__sub {
  font-size: 0.88rem;
  color: var(--rp-muted);
}

/* ── Form ──────────────────────────────────────────────────── */
.sg-form {
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.sg-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .sg-form__row { grid-template-columns: 1fr; }
}

/* ── Radio Groups ─────────────────────────────────────────── */
.sg-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sg-radio-group--compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 560px) {
  .sg-radio-group--compact { grid-template-columns: 1fr; }
}

.sg-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--rp-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.12s;
  background: var(--rp-white);
}
.sg-radio:hover {
  border-color: var(--rp-border-dark);
  background: var(--rp-bg-alt);
}
.sg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.sg-radio:has(input:checked) {
  border-color: var(--rp-purple);
  background: var(--rp-purple-light);
}

.sg-radio__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--rp-border-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.sg-radio:has(input:checked) .sg-radio__dot {
  border-color: var(--rp-purple);
  background: var(--rp-purple);
}
.sg-radio:has(input:checked) .sg-radio__dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.sg-radio__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.sg-radio__body strong {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--rp-dark);
  font-weight: 600;
}
.sg-radio__body span {
  font-size: 0.78rem;
  color: var(--rp-muted);
}

/* ── Results Header ───────────────────────────────────────── */
.sg-results-header {
  text-align: center;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--rp-border);
  margin-bottom: 28px;
}
.sg-results-header__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rp-purple);
  margin-bottom: 10px;
}
.sg-results-header__title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--rp-dark);
  line-height: 1.2;
  margin-bottom: 8px;
}
.sg-results-header__meta {
  font-size: 0.88rem;
  color: var(--rp-muted);
  font-family: 'Lora', serif;
  font-style: italic;
}

/* ── Warnings ─────────────────────────────────────────────── */
.sg-warnings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.sg-warning {
  background: var(--rp-red-light);
  border: 1px solid rgba(185,28,28,0.15);
  border-left: 4px solid var(--rp-red);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.sg-warning--high {
  background: var(--rp-amber-light);
  border-color: rgba(180,83,9,0.15);
  border-left-color: var(--rp-amber);
}
.sg-warning--info {
  background: var(--rp-purple-light);
  border-color: rgba(91,79,207,0.15);
  border-left-color: var(--rp-purple);
}

.sg-warning__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rp-red-text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sg-warning--high .sg-warning__title { color: var(--rp-amber-text); }
.sg-warning--info .sg-warning__title { color: var(--rp-purple-text); }

.sg-warning__message {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--rp-mid);
  margin-bottom: 10px;
}

.sg-warning__solutions {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rp-muted);
  margin-bottom: 6px;
}
.sg-warning__list {
  list-style: none;
  padding: 0;
}
.sg-warning__list li {
  padding-left: 20px;
  position: relative;
  font-size: 0.88rem;
  color: var(--rp-dark);
  margin-bottom: 4px;
  line-height: 1.5;
}
.sg-warning__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--rp-purple);
}

/* ── Visual Timeline ──────────────────────────────────────── */
.sg-timeline-wrap {
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.sg-timeline {
  position: relative;
  height: 38px;
  background: var(--rp-bg-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 4px;
}

.sg-timeline__block {
  position: absolute;
  top: 0;
  bottom: 0;
  cursor: pointer;
  transition: opacity 0.15s;
  border-right: 1px solid rgba(255,255,255,0.3);
}
.sg-timeline__block:hover { opacity: 0.85; }
.sg-timeline__block--potty { background: #10B981; }
.sg-timeline__block--meal { background: #F59E0B; }
.sg-timeline__block--training { background: #7C3AED; }
.sg-timeline__block--nap { background: #6366F1; }
.sg-timeline__block--sleep { background: #312E81; }
.sg-timeline__block--play { background: #06B6D4; }
.sg-timeline__block--enrichment { background: #06B6D4; }
.sg-timeline__block--socialization { background: #14B8A6; }
.sg-timeline__block--wake { background: #F59E0B; }
.sg-timeline__block--winddown { background: #8B5CF6; }
.sg-timeline__block--away { background: #9CA3AF; background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255,255,255,0.2) 4px, rgba(255,255,255,0.2) 8px); }

.sg-timeline-axis {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: var(--rp-muted-light);
  font-weight: 600;
}
.sg-timeline-axis span { flex-shrink: 0; }

.sg-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}
.sg-legend-chip {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: #fff;
  display: inline-flex;
  align-items: center;
}
.sg-legend-chip--potty { background: #10B981; }
.sg-legend-chip--meal { background: #F59E0B; }
.sg-legend-chip--training { background: #7C3AED; }
.sg-legend-chip--nap { background: #6366F1; }
.sg-legend-chip--play { background: #06B6D4; }
.sg-legend-chip--sleep { background: #312E81; }

/* ── Block List ──────────────────────────────────────────── */
.sg-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sg-block {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rp-border);
  align-items: flex-start;
}
.sg-block:last-child { border-bottom: none; }

.sg-block__time {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rp-mid);
  min-width: 78px;
  flex-shrink: 0;
  padding-top: 2px;
}

.sg-block__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  line-height: 1;
  padding-top: 2px;
}

.sg-block__body {
  flex: 1;
  min-width: 0;
}

.sg-block__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rp-dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.sg-block__instruction {
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  color: var(--rp-mid);
  line-height: 1.6;
  margin-bottom: 8px;
}

.sg-block__why {
  background: var(--rp-purple-light);
  border-left: 2px solid var(--rp-purple);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 6px;
}
.sg-block__why-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rp-purple);
  margin-bottom: 4px;
}
.sg-block__why-text {
  font-size: 0.82rem;
  color: var(--rp-purple-text);
  line-height: 1.55;
  font-style: italic;
}

.sg-block__link {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rp-purple);
  text-decoration: none;
  margin-top: 4px;
}
.sg-block__link:hover { text-decoration: underline; }

/* Block type accents (left border on time column) */
.sg-block--potty { border-left: 3px solid #10B981; padding-left: 12px; margin-left: -12px; }
.sg-block--meal { border-left: 3px solid #F59E0B; padding-left: 12px; margin-left: -12px; }
.sg-block--training { border-left: 3px solid #7C3AED; padding-left: 12px; margin-left: -12px; }
.sg-block--nap { border-left: 3px solid #6366F1; padding-left: 12px; margin-left: -12px; background: rgba(99,102,241,0.03); }
.sg-block--sleep { border-left: 3px solid #312E81; padding-left: 12px; margin-left: -12px; background: rgba(49,46,129,0.03); }
.sg-block--play { border-left: 3px solid #06B6D4; padding-left: 12px; margin-left: -12px; }
.sg-block--enrichment { border-left: 3px solid #06B6D4; padding-left: 12px; margin-left: -12px; }
.sg-block--socialization { border-left: 3px solid #14B8A6; padding-left: 12px; margin-left: -12px; }
.sg-block--wake { border-left: 3px solid #F59E0B; padding-left: 12px; margin-left: -12px; }
.sg-block--winddown { border-left: 3px solid #8B5CF6; padding-left: 12px; margin-left: -12px; }
.sg-block--away { border-left: 3px solid #9CA3AF; padding-left: 12px; margin-left: -12px; background: rgba(156,163,175,0.05); }

/* ── Actions ──────────────────────────────────────────────── */
.sg-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ── Copy confirmation ────────────────────────────────────── */
.sg-copied {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.82rem;
  color: var(--rp-green);
  font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .sg-hero { padding: 40px 0 36px; }
  .sg-hero__title { font-size: 2rem; }
  .sg-wrap { padding: 24px 0 48px; }
  .sg-results-header__title { font-size: 1.5rem; }
  .sg-block { gap: 12px; }
  .sg-block__time { min-width: 62px; font-size: 0.78rem; }
  .sg-block__icon { width: 28px; font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .sg-hero__title { font-size: 1.7rem; }
  .sg-timeline-legend { gap: 6px; }
  .sg-legend-chip { font-size: 0.65rem; padding: 3px 8px; }
}

/* ══════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════ */
@media print {
  body { background: #fff !important; }
  .rp-nav, .rp-footer, .rp-puppy-bar, .no-print { display: none !important; }
  .sg-wrap { max-width: 100%; padding: 0; }
  .sg-step { display: block !important; }

  .sg-results-header {
    border-bottom: 2px solid #000;
    padding: 0 0 16px;
    margin-bottom: 20px;
  }
  .sg-results-header__title {
    font-size: 1.6rem;
    color: #000;
  }
  .sg-results-header__eyebrow { color: #000; }

  .sg-warnings { margin-bottom: 20px; }
  .sg-warning { page-break-inside: avoid; }

  .sg-blocks {
    font-size: 0.85rem;
  }
  .sg-block {
    padding: 10px 0;
    page-break-inside: avoid;
    border-bottom: 1px solid #999;
    margin-left: 0;
    padding-left: 8px;
  }
  .sg-block__why {
    background: #f5f5f5 !important;
    padding: 6px 10px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .sg-block__why-text { color: #333 !important; }
  .sg-block__title { color: #000; font-size: 0.95rem; }
  .sg-block__instruction { color: #222; font-size: 0.85rem; }
  .sg-block__link { display: none; }

  /* Print footer with brand */
  .sg-step-results::after {
    content: 'ReadPuppy.com · The prevention-first puppy training guide by Boston Dogtor';
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: #666;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #ccc;
  }
}
