/* ── Google Fonts override for Tailwind font stacks ───────── */

.font-serif {
    font-family: 'Lora', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', ui-sans-serif, sans-serif;
}


/* ── Smooth custom scrollbar ───────────────────────────────── */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F5F3EE;
}

::-webkit-scrollbar-thumb {
    background: #2E4A7D;
    border-radius: 3px;
}


/* ── Scroll-reveal utility (driven by IntersectionObserver) ── */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ── Stagger animation delays for child elements ───────────── */

.stagger>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger>*:nth-child(2) {
    transition-delay: 0.15s;
}

.stagger>*:nth-child(3) {
    transition-delay: 0.25s;
}

.stagger>*:nth-child(4) {
    transition-delay: 0.35s;
}

.stagger>*:nth-child(5) {
    transition-delay: 0.45s;
}

.stagger>*:nth-child(6) {
    transition-delay: 0.55s;
}


/* ── Liturgical colour dot ─────────────────────────────────── */

.lit-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}


/* ── Donation progress bar animation ──────────────────────── */

.progress-fill {
    transition: width 1.2s ease;
}


/* ── Global dark-mode colour transition ───────────────────── */

* {
    transition-property: background-color, border-color, color;
    transition-duration: 200ms;
    transition-timing-function: ease;
}


/* ── Prayer Modal Styles ──────────────────────────────────── */

#prayerModal {
    animation: fadeIn 0.3s ease;
}

#prayerModal.hidden {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

#modalContent {
    animation: slideUp 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

#prayerModal.hidden #modalContent {
    animation: slideDown 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}


/* ── Liturgical Calendar Enhanced Styles ──────────────────── */

.cal-day {
    position: relative;
    outline: 2px solid transparent;
    outline-offset: -1px;
}

.cal-day:hover {
    outline-color: #C9A227;
}

.cal-day:focus {
    outline: 2px dashed #2E4A7D;
    outline-offset: 2px;
}


/* Sunday column styling */

.sunday-col {
    background-color: rgba(239, 68, 68, 0.05);
    border-color: rgba(220, 38, 38, 0.2);
}

.dark .sunday-col {
    background-color: rgba(127, 29, 29, 0.15);
    border-color: rgba(127, 29, 29, 0.3);
}


/* Today indicator */

.today-indicator {
    position: relative;
    z-index: 10;
}


/* Feast day styling */

.feast-day {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(193, 162, 39, 0.2) 100%);
}

.feast-day:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(193, 162, 39, 0.35) 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(193, 162, 39, 0.1);
}

.feast-day:dark:hover {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(193, 162, 39, 0.4) 100%);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(193, 162, 39, 0.15);
}


/* Tooltip arrow animation */

.group:hover .feast-day~div svg,
.feast-day:hover svg {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feast-day .lit-dot {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/* Calendar day styling improvements */

.cal-day {
    transition: all 0.2s ease;
}

.cal-day:hover {
    transform: translateY(-2px);
}


/* Tooltip positioning */

.group {
    position: relative;
}

.group-hover\:block {
    display: none;
}

.group:hover .group-hover\:block {
    display: block;
}


/* Better tooltip styling for dark mode */

@media (prefers-color-scheme: dark) {
    .feast-day {
        background: linear-gradient(135deg, rgba(51, 51, 51, 0.7) 0%, rgba(193, 162, 39, 0.2) 100%);
    }
    .feast-day:hover {
        background: linear-gradient(135deg, rgba(75, 75, 75, 0.9) 0%, rgba(193, 162, 39, 0.3) 100%);
    }
}


/* Ensure tooltips appear on top */

.group-hover\:block {
    z-index: 50;
    pointer-events: none;
}


/* Smooth color transitions for liturgical dots */

.lit-dot {
    transition: all 0.2s ease;
}

.feast-day:hover .lit-dot {
    transform: scale(1.2);
}


/* Enhanced spacing and borders */

.cal-day {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.dark .cal-day {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.cal-day:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.fl-wrapper {
    z-index: 60!important;
}