/**
 * Hero Slider Component Styles
 * Websfera Reusable Component
 */

#device-wrapper .hero-slider-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

#device-wrapper .hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

#device-wrapper .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#device-wrapper .hero-slide.active {
    opacity: 1;
}

#device-wrapper .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#device-wrapper .hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px 60px;
    backdrop-filter: blur(5px);
}

#device-wrapper .hero-overlay h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
    color: #1a1a1a;
}

#device-wrapper .hero-overlay p {
    font-size: 16px;
    color: #6b6b6b;
    letter-spacing: 1px;
    margin: 0;
}

/* Cursor d'edició en mode edició: icona de càmera */
body.edit-mode-active #device-wrapper .hero-slide {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='rgba(0,0,0,0.6)'/%3E%3Cpath d='M10 12h2l1-2h6l1 2h2a1 1 0 011 1v8a1 1 0 01-1 1H10a1 1 0 01-1-1v-8a1 1 0 011-1z' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='17' r='3' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, pointer;
}

@media (max-width: 768px) {
    #device-wrapper .hero-slider-container {
        height: 50vh;
        min-height: 400px;
    }

    #device-wrapper .hero-overlay {
        padding: 30px 40px;
    }

    #device-wrapper .hero-overlay h1 {
        font-size: 36px;
    }

    #device-wrapper .hero-overlay p {
        font-size: 14px;
    }
}
