/**
 * LinkedIn QR Code Overlay Styles
 * Displays a customizable QR code with text on hero slides
 */

.hero-slide-overlay {
    position: absolute;
    z-index: 10;
    border-radius: 8px;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.hero-slide-overlay.has-background {
    backdrop-filter: blur(5px);
    /* Background color and opacity set inline from database */
}

/* Position variants */
.hero-slide-overlay.position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.hero-slide-overlay.position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.hero-slide-overlay.position-top-right {
    top: 80px;
    right: 20px;
}

.hero-slide-overlay.position-top-left {
    top: 80px;
    left: 20px;
}

.hero-slide-overlay-text {
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    order: -1;
    /* Color, size, and weight are set inline from database */
}

.hero-slide-overlay-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, border 0.3s ease;
    border: 3px solid transparent;
}

.hero-slide-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Hover effect with primary color border */
.hero-slide-overlay:hover .hero-slide-overlay-image {
    border-color: var(--primary-color, #ff0040);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--primary-color, #ff0040);
    transform: scale(1.02);
}

.hero-slide-overlay:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Hide LinkedIn QR widget on mobile devices */
    .hero-slide-overlay {
        display: none !important;
    }
}



/* Ensure overlay doesn't interfere with slide controls */
.hero-slide-overlay {
    pointer-events: auto;
}

/* Animation on slide change */
.swiper-slide-active .hero-slide-overlay {
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
