/**
 * Volunteer Hero Section Styles
 * Custom styles for the volunteer hub hero section
 * 
 * @package Yicheng_Commonweal
 */

/* Volunteer Hero Container */
.volunteer-hero-swiper .swiper-slide {
    transition: transform 0.6s ease-in-out;
}

.volunteer-hero-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.volunteer-hero-swiper .swiper-slide-active {
    z-index: 1;
}

/* Volunteer Details Card */
#volunteer-details {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Navigation Buttons */
.volunteer-nav-left,
.volunteer-nav-right {
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.volunteer-nav-left:hover,
.volunteer-nav-right:hover {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: scale(1.05);
}

.volunteer-nav-left:active,
.volunteer-nav-right:active {
    transform: scale(0.95);
}

/* Smooth animation for volunteer content updates */
.volunteer-name,
.volunteer-organization,
.volunteer-description {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Link hover effects */
.volunteer-link-1,
.volunteer-link-2 {
    position: relative;
    transition: color 0.3s ease-in-out;
}

.volunteer-link-1::after,
.volunteer-link-2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease-in-out;
}

.volunteer-link-1:hover::after,
.volunteer-link-2:hover::after {
    width: 100%;
}

/* Custom pagination bullets for volunteer swiper */
.hero-swiper-pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 50 !important;
    position: relative;
    min-height: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 14px !important;
    height: 14px !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    transition: all 0.3s ease-in-out !important;
    margin: 0 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
}

.hero-swiper-pagination .swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(239, 204, 100, 0.8) !important;
    transform: scale(1.2) !important;
    box-shadow: 0 0 8px rgba(239, 204, 100, 0.4) !important;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background-color: #FFFFFF !important;
    border-color: #EFCC64 !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 0 3px rgba(239, 204, 100, 0.3), 0 0 12px rgba(239, 204, 100, 0.5) !important;
}

.hero-swiper-pagination .swiper-pagination-bullet-custom {
    background-color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease-in-out !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
}

.hero-swiper-pagination .swiper-pagination-bullet-custom:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(239, 204, 100, 0.8) !important;
    transform: scale(1.2) !important;
    box-shadow: 0 0 8px rgba(239, 204, 100, 0.4) !important;
}

.hero-swiper-pagination .swiper-pagination-bullet-active.swiper-pagination-bullet-custom {
    background-color: #FFFFFF !important;
    border-color: #EFCC64 !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 0 3px rgba(239, 204, 100, 0.3), 0 0 12px rgba(239, 204, 100, 0.5) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .volunteer-hero-swiper .swiper-slide {
        background-attachment: scroll;
    }
    
    
    .hero-swiper-pagination {
        gap: 0.5rem;
        padding: 6px 12px;
    }
    
    .hero-swiper-pagination .swiper-pagination-bullet {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Animation keyframes for volunteer details */
@keyframes volunteer-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes volunteer-slide-in {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to volunteer content */
.hero-animate-initial.volunteer-content {
    animation: volunteer-slide-in 0.8s ease-out;
}

.hero-animate-initial.volunteer-details {
    animation: volunteer-fade-in 0.6s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* Ensure smooth background image transitions */
.volunteer-hero-swiper .swiper-slide > div:first-child {
    transition: transform 3s ease-in-out;
    will-change: transform;
}

/* Accessibility improvements */
.volunteer-nav-left:focus,
.volunteer-nav-right:focus {
    outline: 2px solid rgba(239, 204, 100, 0.8);
    outline-offset: 2px;
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .volunteer-nav-left,
    .volunteer-nav-right {
        border-color: rgba(255, 255, 255, 0.6);
    }
}