/* =========================
   Candace - Light Theme CSS
   ========================= */

/* Theme variables */
:root{
  color-scheme: light;

  --maxw: 1100px;
  --page-pad: 22px;

  /* Soft pink background using HEX #FFB6C1 */
  --bg: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 22%,
    #FFB6C1 120%
  );
   
/* SearchBox */
   --search-cols: 7;
  --shortcut-cell: 86px; /* should match .shortcut width */
  --search-max: calc(
    (var(--shortcut-cell) * var(--search-cols)) +
    (var(--shortcut-gap) * (var(--search-cols) - 1))
  );
   
  /* Text + UI */
  --text: #141418;
  --muted: rgba(20,20,24,.62);

  --border: rgba(20,20,24,.12);
  --border-strong: rgba(20,20,24,.20);

   --surface: #ffffff;     /* solid */
   --surface-2: #ffffff;   /* solid */

  --shadow: 0 12px 34px rgba(0,0,0,.12);

  /* Watermark controls (desktop sizing) */
  --wm-size: 240px;
  --wm-opacity: 0.18;

  /* Shortcut sizing */
  --shortcut-size: 56px;
  --shortcut-radius: 999px;
  --shortcut-radius-hover: 14px;
  --shortcut-gap: 18px;

  /* Fonts */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Base */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  padding: var(--page-pad);
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Watermark (DESKTOP DEFAULT): top-left corner, no distortion */
body::before{
  content:"";
  position: fixed;
  inset: 0;

  background-image: url("assets/seraphimF.png");
  background-repeat: no-repeat;

  /* Desktop: pinned top-left */
  background-position: left top;

  /* Preserve aspect ratio (no squashing) */
  background-size: var(--wm-size) auto;

  opacity: var(--wm-opacity);
  pointer-events: none;
  z-index: 0;
}

/* Content wrapper */
.wrap{
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* =========================
   Search (Ask TheologianGPT pill)
   ========================= */
.search{
  display: flex;
  justify-content: center;
  margin: 0 auto 18px;
}
.search form{
 width: 100%;
  max-width: min(var(--search-max), 92vw);
  margin: 0 auto;
}
.search input{
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;

  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);

  outline: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}
.search input::placeholder{
  color: rgba(20,20,24,.45);
}
.search input:focus{
  border-color: var(--border-strong);
  background: rgba(255,255,255,.94);
}

/* =========================
   Group container (transparent – no visible “box”)
   ========================= */
.group{
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

/* =========================
   Shortcuts grid
   ========================= */
.shortcuts{
  display: grid;
  grid-template-columns: repeat(auto-fit, 86px);
  justify-content: center;
  gap: var(--shortcut-gap);
  margin: 16px auto 0;
  padding: 0;
  list-style: none;
}

/* Shortcut item */
.shortcut{
  width: 86px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

/* Icon circle */
.shortcut-icon{
  width: var(--shortcut-size);
  height: var(--shortcut-size);
  margin: 0 auto 8px;

  display: grid;
  place-items: center;

  border-radius: var(--shortcut-radius);
   border: 1px solid rgba(20,20,24,.18);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);

  transition: border-radius .18s ease, transform .18s ease, box-shadow .18s ease;
}
.shortcut:hover .shortcut-icon{
  border-radius: var(--shortcut-radius-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

/* Icon image */
.shortcut-icon img{
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Label */
.shortcut-label{
  font-size: 0.82rem;
  line-height: 1.15;
  font-weight: 700;                 /* bold */
  color: rgba(20,20,24,.78);
}

/* Keyboard focus */
.shortcut:focus-visible .shortcut-icon{
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(20,20,24,.10), 0 14px 34px rgba(0,0,0,.12);
}

/* =========================
   Scripture (desktop + mobile)
   ========================= */
.scripture{
  display: block;
  width: min(860px, 92vw);
  margin: 42px auto 0;

  /* no visible “box” */
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.scripture-quote{ margin: 0; }

.scripture-quote p{
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(20,20,24,0.82);
  text-wrap: pretty;
}

.scripture-quote cite{
  display: block;
  margin-top: 10px;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(20,20,24,0.62);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

/* =========================
   Responsive tweaks
   ========================= */
@media (max-width: 768px){
  :root{
    --page-pad: 16px;
  }

  /* MOBILE watermark: full-background fill */
  body::before{
    background-position: center;
    background-size: cover; /* fills the viewport */
    opacity: 0.18;
  }

  .shortcuts{
    grid-template-columns: repeat(auto-fit, 86px);
    gap: 16px;
    margin-top: 14px;
  }

  .scripture{
    width: min(520px, 92vw);
    margin-top: 22px;
  }

  /* Optional: slightly narrower max width on mobile if you want */
  .search form{
    max-width: 620px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .shortcut-icon{ transition: none; }
}


