/* Selah Shabbat — supplemental styling atop Tailwind CDN */

:root {
  --glow: rgba(176, 141, 87, 0.35);
}

body {
  background-image:
    radial-gradient(60rem 60rem at 50% -20rem, var(--glow), transparent 70%);
  background-attachment: fixed;
}

.dark body,
html.dark body {
  --glow: rgba(176, 141, 87, 0.14);
}

/* Nav links */
.nav-link {
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
  color: inherit;
  text-decoration: none;
}
.nav-link:hover { background: rgba(176, 141, 87, 0.12); }
.nav-active { color: #7c2d3a; font-weight: 600; }
html.dark .nav-active { color: #b08d57; }

/* Card */
.card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(176, 141, 87, 0.28);
  border-radius: 1rem;
  box-shadow: 0 8px 30px -12px rgba(43, 38, 34, 0.25);
  backdrop-filter: blur(6px);
}
html.dark .card {
  background: rgba(33, 29, 26, 0.75);
  border-color: rgba(176, 141, 87, 0.22);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.6);
}

/* Scripture body: generous leading, drop-cap on first verse */
.scripture p {
  margin-bottom: 0.85rem;
  line-height: 1.9;
  font-size: 1.12rem;
}
.scripture .verse-num {
  font-size: 0.7rem;
  vertical-align: super;
  color: #b08d57;
  margin-right: 0.15rem;
  font-weight: 600;
}
.scripture.hebrew {
  direction: rtl;
  text-align: right;
  font-size: 1.4rem;
  line-height: 2.1;
}

/* Chat bubbles */
.bubble {
  border-radius: 1rem;
  padding: 0.6rem 0.9rem;
  max-width: 42rem;
  line-height: 1.55;
  border: 1px solid rgba(176, 141, 87, 0.25);
}
.bubble-mine {
  background: #7c2d3a;
  color: #f6f1e7;
  border-color: transparent;
  margin-left: auto;
}
html.dark .bubble-mine { background: #8a3644; }
.bubble-theirs {
  background: rgba(255, 255, 255, 0.6);
}
html.dark .bubble-theirs { background: rgba(33, 29, 26, 0.85); }

/* Inputs */
.field {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(176, 141, 87, 0.4);
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  transition: border 0.2s, box-shadow 0.2s;
}
.field:focus {
  outline: none;
  border-color: #b08d57;
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2);
}
html.dark .field { background: rgba(22, 19, 17, 0.7); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.3rem;
  border-radius: 9999px;
  background: #7c2d3a;
  color: #f6f1e7;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.12s, filter 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
html.dark .btn { background: #b08d57; color: #161311; }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(176, 141, 87, 0.5);
  color: inherit;
}
html.dark .btn-ghost { color: inherit; }

/* Fade-in */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: riseIn 0.5s ease both; }

/* Locked overlay shimmer */
.locked {
  filter: grayscale(0.4) opacity(0.7);
  pointer-events: none;
  user-select: none;
}
