/*
  moral-patienthood.css
  Custom Reveal.js theme for:
  "Is consciousness prerequisite for moral patienthood?"
*/

/* 1. Font imports (you can change these if you prefer) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@300;400;500;600&display=swap');

/* 2. Root color variables: tune these to taste */
:root {
  --bg-main: #050713;         /* deep twilight */
  --bg-gradient-top: #050713;
  --bg-gradient-bottom: #18132a;

  --fg-main: #f2f3f7;
  --fg-muted: #b6b7c3;

  --accent-obj: #4fc3f7;      /* objective (blue) */
  --accent-inter: #9ccc65;    /* inter-subjective (green) */
  --accent-subj: #ffb74d;     /* subjective (amber) */

  --accent-primary: #b39ddb;  /* general accent (lavender) */
  --accent-strong: #ffca28;   /* strong callouts (gold) */

  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* 3. Global reveal container styles */

.reveal {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fg-main);
  background: radial-gradient(circle at top center, #14172a 0%, var(--bg-main) 45%, #020308 100%);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  box-sizing: border-box;
  padding: 1.2em 1.4em 1.1em 1.4em;
}

/* 4. Slide content area: subtle "card" effect */

.reveal .slides section:not(.stack) {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.00) 40%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* 5. Headings */

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--fg-main);
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
  margin-bottom: 0.35em;
}

.reveal h1 {
  font-size: 2.4em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.25em;
}

.reveal h2 {
  font-size: 1.4em;
}

.reveal h3 {
  font-size: 1.2em;
  color: #e7e2ff;
}

/* Subtitle or secondary heading style */
.reveal h2.subtle {
  font-size: 1.4em;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: none;
}

/* 6. Base text */

.reveal p,
.reveal li {
  font-size: 0.9em;
  line-height: 1.5;
  color: var(--fg-main);
}

.reveal p.lead {
  font-size: 1.05em;
  color: var(--fg-muted);
}

/* 7. Lists (for your checklists and bullet points) */

.reveal ul,
.reveal ol {
  margin-left: 1.2em;
}

.reveal ul li {
  margin: 0.18em 0;
}

/* custom bullets with a subtle gradient dot */
.reveal ul li::marker {
  content: "• ";
  color: var(--accent-primary);
}

/* nested lists a bit lighter */
.reveal ul ul li::marker {
  color: var(--fg-muted);
}

/* 8. Links */

.reveal a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(179, 157, 219, 0.5);
}

.reveal a:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

/* 9. Title slide */

.reveal section.title-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reveal section.title-slide h1 {
  font-size: 2.8em;
}

.reveal section.title-slide h2 {
  margin-top: 0.2em;
  font-size: 1.4em;
  color: var(--fg-muted);
}

.reveal section.title-slide p {
  margin-top: 0.8em;
  font-size: 1.0em;
  color: var(--fg-muted);
}

/* subtle "moral circle" motif on title slide */
.reveal section.title-slide::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(179, 157, 219, 0.25);
  box-shadow: 0 0 60px rgba(179, 157, 219, 0.35);
  top: 12%;
  right: 5%;
  pointer-events: none;
}

/* 10. Quotes / philosophical excerpts */

.reveal blockquote {
  border-left: 3px solid var(--accent-primary);
  padding-left: 1em;
  margin-left: 0;
  color: var(--fg-muted);
  font-style: italic;
}

.reveal blockquote::before {
  content: "“";
  color: var(--accent-primary);
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.15em;
}

/* 11. Code blocks and inline code (for any technical slides) */

.reveal code {
  font-size: 0.8em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.25em;
  border-radius: 4px;
}

.reveal pre code {
  display: block;
  padding: 0.8em;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
}

/* 12. Tables (including your three-worlds table) */

.reveal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8em;
  margin: 0.7em 0;
}

.reveal th,
.reveal td {
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.5em 0.55em;
  vertical-align: top;
}

.reveal th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

/* Optional semantic row styles, if you add classes to table rows */

.reveal tr.objective-row td {
  border-left: 3px solid var(--accent-obj);
}

.reveal tr.inter-row td {
  border-left: 3px solid var(--accent-inter);
}

.reveal tr.subjective-row td {
  border-left: 3px solid var(--accent-subj);
}

/* 13. Fragments (for stepwise appearance of bullets) */

.reveal .fragment {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal .fragment.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal .fragment.fade-up {
  transform: translateY(12px);
}

/* 14. Image treatment (for Unitree, Gemini screenshots, etc.) */

.reveal section img {
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.5em;
}

/* 15. Speaker notes indicator (if visible) */

.reveal .speaker-notes {
  font-size: 0.7em;
  color: var(--fg-muted);
}

/* 16. Progress bar & slide numbers */

.reveal .progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.reveal .progress span {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-strong));
}

.reveal .slide-number {
  font-size: 0.6em;
  color: var(--fg-muted);
}

/* 17. Small utility classes you can use in Markdown */

.reveal .pill {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* semantic pills that match your three worlds */

.reveal .pill-objective {
  border-color: var(--accent-obj);
  color: var(--accent-obj);
}

.reveal .pill-inter {
  border-color: var(--accent-inter);
  color: var(--accent-inter);
}

.reveal .pill-subjective {
  border-color: var(--accent-subj);
  color: var(--accent-subj);
}


.reveal .slides section > h2 {
  font-size: 1.3em !important;
  color: inherit;
}

