/* Additional styles for ONG Projeto Esporte Crescer - Modern and Welcoming */

/* Smooth transitions for interactive elements */
a, button, .wp-block-button__link {
    transition: all 0.3s ease;
}

/* Hover effects for cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12) !important;
}

/* Button hover effects with shadows */
.wp-block-button__link {
    transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus, button:focus, .wp-block-button__link:focus {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 3px;
}

/* Card animations on scroll (can be enhanced with JS) */
.wp-block-group {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient text effect for headings (optional) */
.gradient-text {
    background: linear-gradient(135deg, var(--wp--preset--color--accent) 0%, var(--wp--preset--color--accent-3) 50%, var(--wp--preset--color--accent-4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image hover effects */
.wp-block-image img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.wp-block-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Navigation link styles */
.wp-block-navigation-item a {
    position: relative;
    transition: color 0.3s ease;
}

.wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--wp--preset--color--accent);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.wp-block-navigation-item a:hover::after {
    width: 100%;
}

/* Stats/Numbers emphasis */
.wp-block-heading[style*="font-size:4rem"] {
    background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
    -webkit-background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Testimonial cards special styling */
.wp-block-group[style*="border-left"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-group[style*="border-left"]:hover {
    transform: translateX(5px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

/* Social links styling */
.wp-block-social-links a {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.wp-block-social-links a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Cover block overlay improvements */
.wp-block-cover__inner-container {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile responsiveness improvements */
@media (max-width: 781px) {
    .wp-block-columns {
        gap: var(--wp--preset--spacing--30) !important;
    }
    
    .wp-block-button__link {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    h1, .wp-block-heading {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    }
    
    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem) !important;
    }
}

/* Print styles */
@media print {
    .wp-block-button,
    .wp-block-navigation,
    .wp-block-social-links {
        display: none;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wp-block-button__link {
        border: 2px solid currentColor;
    }
}

/* Loading animation for images */
.wp-block-image {
    position: relative;
    overflow: hidden;
}

.wp-block-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--wp--preset--color--base);
}

::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--accent);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wp--preset--color--accent-2);
}
