/* 
   ENHANCED: Custom CSS for Innovations page with visual improvements
   
   Main improvements:
   - Server-side category filtering
   - Visual category filters with counts
   - Enhanced card design with hover effects
   - Color-coded category tags
   - Quick view modals
   - Masonry grid layout
*/

/* Improved typography for card titles */
.innovation-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Category tags styling */
.category-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;
}

/* Category tag color coding */
.category-science { background-color: #4285F4; }
.category-tech { background-color: #34A853; }
.category-medicine { background-color: #EA4335; }
.category-environment { background-color: #16a085; }
.category-home { background-color: #9b59b6; }
.category-transportation { background-color: #e67e22; }
.category-communication { background-color: #3498db; }
.category-entertainment { background-color: #f1c40f; }
.category-other { background-color: #607D8B; }

/* Card hover effects */
.innovation-card {
    transition: all 0.3s ease-in-out;
    height: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
}

.innovation-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;
    border-color: rgba(13, 110, 253, 0.3);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-img-top {
    transition: transform 0.5s ease;
    height: 160px;
    object-fit: cover;
}

.innovation-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Button hover effect */
.details-btn {
    transition: all 0.3s ease;
    opacity: 0.85;
}

.innovation-card:hover .details-btn {
    opacity: 1;
    transform: translateY(-2px);
}

/* Category filter 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;
}

/* Decorative elements */
.category-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4285F4, #34A853, #EA4335, #16a085, #9b59b6, #e67e22, #3498db);
    opacity: 0.8;
}

.filter-btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Improved hover effect with subtle animation */
.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 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);
}

/* Added class for hover animation applied by JS */
.btn-hover-effect {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Quick view modal styling */
.modal-innovation-img {
    max-height: 250px;
    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;
    }
}

/* Connected woman badge */
.connected-woman-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.innovation-card:hover .connected-woman-badge {
    transform: scale(1.1);
}

/* Alphabet navigation removed as requested */