@import url('base/variables.css');
@import url('base/reset.css');
@import url('components/header.css');
@import url('components/buttons.css');
@import url('components/hero.css');
@import url('components/pages.css');
@import url('components/features.css');
@import url('components/chants.css');
@import url('components/missions.css');
@import url('components/resources.css');
@import url('components/profile.css');
@import url('components/donations.css');
@import url('components/payment-info.css');
@import url('components/tiers.css');
@import url('components/cards.css');
@import url('components/footer.css');
@import url('components/social-icons.css');
@import url('components/forms.css');
@import url('components/tabs.css');
@import url('components/filters.css');
@import url('components/countdown.css');
@import url('components/modal.css');
@import url('components/notification.css');
@import url('components/guide.css');
@import url('components/ai-chat.css');
@import url('layout/layout.css');
@import url('utils/animations.css');

/* Floating Chat Button Styles */
.floating-chat-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #90EE90 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
}

.floating-chat-btn:active {
    transform: scale(0.95);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(16, 185, 129, 0.7), 0 0 0 10px rgba(16, 185, 129, 0.1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-chat-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .floating-chat-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ========================================
   OFFLINE STATE STYLES
   When app is offline, dim content and show overlay
   ======================================== */
body.app-offline {
    overflow: hidden; /* Prevent scrolling when offline overlay is shown */
}

body.app-offline > *:not(#offline-overlay):not(script):not(style):not(link) {
    pointer-events: none;
    filter: blur(2px) grayscale(0.3);
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Ensure offline overlay is always on top */
#offline-overlay {
    z-index: 999999 !important;
}

/* Hide non-essential UI elements when offline */
body.app-offline .floating-chat-btn,
body.app-offline .notification-bell,
body.app-offline .pwa-install-btn {
    display: none !important;
}