/* style.css - OrionLens Custom Styles using Template Components */

/* 3D Image Item Hover Effect */
._3d-image-item {
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease-out;
}

/* Base Gradient Overlay - Initially Hidden */
._3d-image-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: saturate(100%) blur(5px);
    z-index: 2;
}

._3d-image-item:hover::before {
    opacity: 1;
}

/* Hover Content Wrapper - Layout and Positioning */
.hover-info-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1.5rem;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    text-align: center;
    pointer-events: none;
}

._3d-image-item:hover .hover-info-wrap {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Typography Adjustments (Template classes are applied in HTML) */
.hover-info-wrap h3 {
    margin-bottom: 0.75rem;
}

.hover-info-wrap p {
    margin-bottom: 1.5rem;
    max-width: 280px;
}

/* Ready Button Component Animation */
.hover-info-wrap .main-button {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0.15s;
}

._3d-image-item:hover .hover-info-wrap .main-button {
    opacity: 1;
    transform: scale(1);
}

/* Hide original grid text on hover */
._3d-image-item:hover .header-image-grid {
    opacity: 0;
}

.header-image-grid {
    transition: opacity 0.3s ease;
}

/* Interaction with original elements */
.star-icon {
    transition: opacity 0.4s ease;
}

._3d-image-item:hover .star-icon {
    opacity: 0.15;
}

.cover-image {
    transition: transform 0.8s ease;
}

._3d-image-item:hover .cover-image {
    transform: scale(1.05);
}

/* Responsive Typography for Hover Info */
@media screen and (max-width: 991px) {

    .hover-info-wrap h4,
    .hover-info-wrap h5 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .hover-info-wrap p {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
    }
}

@media screen and (max-width: 479px) {

    .hover-info-wrap h4,
    .hover-info-wrap h5 {
        font-size: 1.8rem !important;
        /* Larger to compensate for container scaling */
    }

    .hover-info-wrap p {
        font-size: 1.3rem !important;
    }
}