/**
 * Homepage Memorial Banner Styles
 * For displaying memorial/tribute banners on homepage
 */

.homepage-memorial-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 99999;
    overflow-y: auto;
    padding: 20px 0;
}

#memorial-banner-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.homepage-memorial-banner .container {
    position: relative;
    z-index: 2;
}

.memorial-banner-content {
    padding: 40px 0;
}

#memorial-banner-image img {
    max-height: 70vh;
    object-fit: contain;
}

.memorial-logo-wrapper {
    cursor: pointer;
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Memorial mode: grayscale logo, smaller size */
body.memorial .memorial-enter-logo {
    width: 120px;
    filter: grayscale(100%) drop-shadow(0 0 10px rgba(255,255,255,0.5));
    transition: all 0.3s ease;
}

/* Non-memorial mode: normal logo */
body:not(.memorial) .memorial-enter-logo {
    width: 150px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
    transition: all 0.3s ease;
}

.memorial-logo-wrapper:hover .memorial-enter-logo {
    filter: grayscale(100%) drop-shadow(0 0 20px rgba(255,255,255,0.8));
    transform: scale(1.05);
}

body:not(.memorial) .memorial-logo-wrapper:hover .memorial-enter-logo {
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.8));
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    body.memorial .memorial-enter-logo {
        width: 90px;
    }

    body:not(.memorial) .memorial-enter-logo {
        width: 120px;
    }

    #memorial-banner-image img {
        max-height: 60vh;
    }

    .memorial-banner-content {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    body.memorial .memorial-enter-logo {
        width: 80px;
    }

    body:not(.memorial) .memorial-enter-logo {
        width: 100px;
    }

    #memorial-banner-image img {
        max-height: 50vh;
    }
}
