/* Custom overrides beyond Tailwind */
[x-cloak] { display: none !important; }

/* ─── Typography ──────────────────────────────────────────────────── */

/* Scripture quotes: serif, slightly larger, italic */
.scripture-quote {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.7;
    color: #44403c; /* stone-700 */
}
.dark .scripture-quote {
    color: #d6d3d1; /* stone-300 */
}

/* Greek terms: serif, larger for character clarity */
.greek-text {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Blockquotes in prose get the serif treatment */
.prose blockquote,
.prose blockquote p {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #57534e; /* stone-600 */
}
.dark .prose blockquote,
.dark .prose blockquote p {
    color: #a8a29e; /* stone-400 */
}

/* ─── Prose link colours (warm teal instead of blue) ─────────────── */

.prose a {
    color: #0d9488; /* accent-600 / teal-600 */
    text-decoration: underline;
}
.prose a:hover {
    color: #0f766e; /* accent-700 */
}
.dark .prose a {
    color: #2dd4bf; /* accent-400 */
}
.dark .prose a:hover {
    color: #5eead4; /* accent-300 */
}

.prose hr {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

/* ─── Card hover effect ───────────────────────────────────────────── */

/* Reusable class — apply to any card that should lift on hover */
.card-hover {
    transition: box-shadow 200ms ease, transform 200ms ease;
}
.card-hover:hover {
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}
.dark .card-hover:hover {
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.35);
}

/* ─── Sticky filter bar shadow (browse_db.html) ───────────────────── */

/* When the filter bar sticks at top it gets a subtle shadow via this class.
   The sticky + z-index are applied inline in the template; this just
   provides the shadow that appears when content scrolls under it. */
.filter-bar-sticky {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
}
.dark .filter-bar-sticky {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.35);
}

/* ─── Dark mode: warmer slate backgrounds ─────────────────────────── */
/* These supplement the Tailwind slate-* utilities already in templates.
   They're here as a reference — the actual dark: classes use slate-
   variants set in base.html and individual templates.                  */

/* Muted accent links in dark mode sidebar/cards */
.dark .accent-muted {
    color: #5eead4; /* accent-300 — softer than full teal */
}

/* ─── Scripture Verse Popover ─────────────────────────────────────── */

.verse-popover {
    position: absolute;
    z-index: 9999;
    max-width: 350px;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 4px 10px -3px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

.verse-popover.verse-popover--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.verse-popover__header {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.4rem;
}

.verse-popover__ref {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #0d9488;
}

.verse-popover__body {
    color: #374151;
    margin: 0 0 0.5rem 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.verse-popover__link {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0d9488;
    text-decoration: none;
}

.verse-popover__link:hover {
    color: #0f766e;
    text-decoration: underline;
}

/* Dark mode */
.dark .verse-popover {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 4px 10px -3px rgba(0, 0, 0, 0.3);
}

.dark .verse-popover__header {
    border-bottom-color: #334155;
}

.dark .verse-popover__ref {
    color: #2dd4bf;
}

.dark .verse-popover__body {
    color: #d1d5db;
}

.dark .verse-popover__link {
    color: #2dd4bf;
}

.dark .verse-popover__link:hover {
    color: #5eead4;
}

/* Enhanced scripture references (verse lists + auto-enhanced prose) */
.scripture-enhanced {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.scripture-ref-text {
    font-weight: 500;
}
.scripture-bible-btn {
    font-size: 0.75rem;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s;
    line-height: 1;
}
.scripture-bible-btn:hover {
    opacity: 1;
}
.scripture-explore-btn {
    font-size: 0.75rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}
.scripture-explore-btn:hover {
    color: #3b82f6;
    text-decoration: underline;
}
/* Dark mode */
.dark .scripture-explore-btn {
    color: #9ca3af;
}
.dark .scripture-explore-btn:hover {
    color: #60a5fa;
}
