/* Custom Styles for Florida Homeowners Guide */

.gradient-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
}

.maintenance-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.maintenance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

section[id] {
    scroll-margin-top: 70px;
}

/* Performance optimizations */
.lazy-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-img.loaded {
    opacity: 1;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile-first responsive design enhancements */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .maintenance-card {
        margin-bottom: 1rem;
    }
}

/* Preload critical resources */
.preload-hint {
    display: none;
}

/* CTA Animations */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Hover effects for engagement */
.engagement-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Live indicator animation */
.live-indicator {
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Social proof counters animation */
.counter-animation {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Post hover effects */
.post-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
}

/* Member avatar bounce */
.member-avatar {
    transition: transform 0.3s ease;
}

.member-avatar:hover {
    transform: scale(1.1);
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8, #3b82f6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
