/**
 * Awards page CSS styles
 */

/* Award card styles */
.award-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.award-card[data-has-image="true"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.view-award-image {
    color: #198754;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s ease;
}

.view-award-image:hover {
    color: #0d6efd;
}

/* Award image overlay styles */
.award-image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1030;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.award-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
}

#awardImage {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.close-overlay {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1001;
}

.close-overlay:hover {
    color: #000;
}

#overlayAwardTitle {
    color: #198754;
    margin-top: 15px;
    font-size: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .award-image-container {
        padding: 15px;
    }
    
    #awardImage {
        max-height: 60vh;
    }
    
    #overlayAwardTitle {
        font-size: 1.2rem;
    }
}