@import "../../assets/css/variable.css";

/* Background variants */
.features-highlight--bg-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
}

.features-highlight--bg-dark {
    background: #0f172a;
    color: #fff;
}

.features-highlight--bg-gradient-blue {
    background: linear-gradient(135deg, #1e40af 0%, #0c4a6e 100%);
    color: #fff;
}

.features-highlight {
    margin-top: var(--margin-top);
}
.features-highlight__container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--margin);
}
.features-highlight__container-border {
    border-radius: var(--radius);
    padding: var(--margin-top) var(--margin);
}
.features-highlight__container-header {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    text-align: center;
    padding-bottom: var(--margin);
    color: var(--bg-white);
    .features-highlight__heading {
        color: var(--bg-white);
        margin: 0;
    }
}

.features-highlight__icon {
    margin-bottom: 2rem;
}
.features-highlight__items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-highlight__item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-item: center;
    justify-content: center;
    gap: 1rem;
    padding: var(--margin);
    border-radius: var(--radius);

    /* Effetto Glass (Glassmorphism) */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: solid 1px rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.features-highlight__item:hover {
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.features-highlight__icon,
.features-highlight__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    img {
        width: auto;
    }
}

.features-highlight__title {
    text-align: center;
}

.features-highlight__description {
    width: 100%;
    text-align: center;
}

.features-highlight__buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--margin);
}

@media (max-width: 1024px) {
    .features-highlight__container-border {
        width: 100vw;
        position: relative;
        left: -16px;
    }
    .features-highlight__buttons {
        margin-top: 50px;
    }
}

body.wp-admin .splide {
    width: 100%;
    overflow: hidden;
}
body.wp-admin .splide__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: fit-content;
    overflow-x: visible;
    .splide__slide {
        flex: 0 0 320px;
        min-width: 280px;
        max-width: 400px;
        .features-grid__item {
            width: auto;
        }
    }
}

/* Placeholder styles */
.features-highlight__heading--placeholder,
.features-highlight__intro--placeholder {
    opacity: 0.8;
    font-style: italic;
}

.features-highlight__items--placeholder {
    padding: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.features-highlight__icon--placeholder {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.features-highlight__icon--placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.features-highlight__title--placeholder,
.features-highlight__description--placeholder {
    opacity: 0.7;
    font-style: italic;
}

.features-highlight__buttons--placeholder .wp-block-button__link--placeholder {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    opacity: 0.7;
    cursor: default;
}

.features-highlight__buttons--placeholder
    .wp-block-button__link--placeholder:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: none;
    box-shadow: none;
}
