/* 
   ENHANCED: Custom CSS for Women page with enhanced visual design
   
   Main improvements:
   - Server-side category filtering (instead of client-side)
   - FIXED: Category filtering now uses PredicateBuilder to create EF Core compatible expressions
   - Visual enhancements for filter buttons with counts
   - Improved hover effects and animations
   - Decorative elements for better visual appeal
   - Color-coded field tags for different disciplines
*/

/* Improved typography for card titles */
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Field tags styling */
.field-tag {
    display: inline-block;
    border-radius: 16px;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

/* Field tag color coding */
.field-science { background-color: #4285F4; }
.field-tech { background-color: #34A853; }
.field-arts { background-color: #FBBC05; }
.field-politics { background-color: #EA4335; }
.field-business { background-color: #673AB7; }
.field-invention { background-color: #FF6D00; }
.field-other { background-color: #607D8B; }

/* Card hover effects */
.woman-card {
    transition: all 0.3s ease-in-out;
    height: 100%;
}

.woman-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06) !important;
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-img-top {
    transition: transform 0.5s ease;
    height: 220px;
    object-fit: cover;
}

.woman-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Button hover effect */
.details-btn {
    transition: all 0.3s ease;
    opacity: 0.85;
}

.woman-card:hover .details-btn {
    opacity: 1;
    transform: translateY(-2px);
}

/* Category filter styling */
/* ENHANCED: Improved category filters section styling */
.category-filters {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* ENHANCED: Added decorative elements */
.category-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335, #673AB7, #FF6D00);
    opacity: 0.8;
}

.filter-btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ENHANCED: Improved hover effect with subtle animation */
.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ENHANCED: Added effect for buttons with badge counts */
.filter-btn .badge {
    transition: all 0.2s ease;
    opacity: 0.8;
}

.filter-btn:hover .badge {
    opacity: 1;
    transform: scale(1.1);
}

.filter-btn.active {
    font-weight: 500;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

/* ENHANCED: Added class for hover animation applied by JS */
.btn-hover-effect {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Quick view modal styling */
.modal-woman-img {
    max-height: 300px;
    object-fit: cover;
}

/* Masonry grid layout */
@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 1.5rem;
    }
    
    @media (min-width: 992px) {
        .masonry-grid {
            column-count: 3;
        }
    }
    
    @media (min-width: 1200px) {
        .masonry-grid {
            column-count: 4;
        }
    }
    
    .masonry-grid .grid-item {
        display: inline-block;
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* Cool facts list styling */
.cool-facts-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.cool-facts-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cool-facts-list .bi-star-fill {
    color: #FBBC05;
    margin-top: 4px;
    font-size: 0.8rem;
}

/* ENHANCED: Alphabet navigation styling with grey background box */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.alphabet-link {
    min-width: 2rem;
    padding: 0.25rem 0.1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0.15rem;
}

.alphabet-link:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Image loading transitions */
.card-img-wrapper {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
    position: relative;
}

.card-img-top.woman-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card-img-top.woman-photo.loaded {
    opacity: 1;
}

/* Modal image styling */
.modal-woman-img.woman-photo {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-woman-img.woman-photo.loaded {
    opacity: 1;
}
