/* ===================================
   Endtime Ingathering — Custom CSS
   =================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A0033;
}
::-webkit-scrollbar-thumb {
    background: #4B0082;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6A1FB8;
}

/* Selection colour */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(75, 0, 130, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(75, 0, 130, 0.5), 0 0 60px rgba(201, 168, 76, 0.2);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.4s ease forwards;
}

.animate-slide-out {
    animation: slideOut 0.4s ease forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Intersection Observer reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glass card effect */
.glass-card {
    background: rgba(75, 0, 130, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(75, 0, 130, 0.2);
}

.glass-card:hover {
    background: rgba(75, 0, 130, 0.15);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gold shimmer text */
.gold-shimmer {
    background: linear-gradient(90deg, #C9A84C, #FFE08A, #C9A84C);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Horizontal scroll container */
.scroll-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar {
    display: none;
}
.scroll-item {
    scroll-snap-align: start;
}

/* Hero overlay gradient */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(26, 0, 51, 0.92) 0%,
        rgba(75, 0, 130, 0.85) 50%,
        rgba(26, 0, 51, 0.90) 100%
    );
}

/* Section divider */
.section-divider {
    position: relative;
}
.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C9A84C, transparent);
    border-radius: 2px;
}

/* Quill editor overrides (admin) */
.ql-toolbar {
    background: rgba(75, 0, 130, 0.2) !important;
    border-color: rgba(75, 0, 130, 0.3) !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}
.ql-container {
    background: rgba(26, 0, 51, 0.5) !important;
    border-color: rgba(75, 0, 130, 0.3) !important;
    border-radius: 0 0 0.75rem 0.75rem !important;
    color: #e2d5f0 !important;
    font-family: 'Inter', sans-serif !important;
    min-height: 300px;
}
.ql-editor {
    min-height: 300px;
}
.ql-snow .ql-stroke {
    stroke: #b89cff !important;
}
.ql-snow .ql-fill {
    fill: #b89cff !important;
}
.ql-snow .ql-picker-label {
    color: #b89cff !important;
}
.ql-snow .ql-picker-options {
    background: #1A0033 !important;
    border-color: rgba(75, 0, 130, 0.3) !important;
}

/* Prayer wall cards */
.prayer-card {
    position: relative;
    overflow: hidden;
}
.prayer-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 5rem;
    font-family: 'Playfair Display', serif;
    color: rgba(201, 168, 76, 0.1);
    line-height: 1;
}

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(201, 168, 76, 0.3);
    border-top: 3px solid #C9A84C;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin sidebar transition */
.admin-sidebar {
    transition: transform 0.3s ease, width 0.3s ease;
}

/* Audio player styling */
audio {
    width: 100%;
    border-radius: 0.75rem;
}
audio::-webkit-media-controls-panel {
    background: rgba(75, 0, 130, 0.3);
}

/* Print styles */
@media print {
    nav, footer, .no-print { display: none !important; }
    body { background: white; color: black; }
}
