/**
 * Share Section Styles
 * Sección para compartir la campaña en redes sociales
 * Basado en Figma: node 1030-33975
 */

.menudos-share-section {
    position: relative;
    width: 100%;
    padding: 56px 64px;
    background-color: #333;
    overflow: hidden;
}

/* Background Image Layer */
.share-section__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}


/* Container */
.share-section__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto;
}

/* Header */
.share-section__header {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 8px;
}

.share-section__title {
    margin: 0;
    font-family: var(--wp--preset--font-family--inter, 'Inter', sans-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.21;
    text-align: center;
    color: var(--wp--preset--color--white, #FFFFFF);
}

/* Share Banner */
.share-section__banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    padding: 48px;
    background-color: var(--wp--preset--color--text-dark, #333333);
    border: 1px solid var(--wp--preset--color--secondary, #787878);
    border-radius: 16px;
}

/* CTA Content */
.share-section__cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.share-section__banner-title {
    margin: 0;
    font-family: var(--wp--preset--font-family--delicious, 'Delicious Handrawn', cursive);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--wp--preset--color--accent, #FCAD00);
}

.share-section__banner-description {
    margin: 0;
    font-family: var(--wp--preset--font-family--inter, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.21;
    color: var(--wp--preset--color--light-gray, #F4F4F4);
}

/* Social Buttons */
.share-section__buttons {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 8px;
    flex-wrap: wrap;
}

/* Button Base */
.share-section__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    border: 1px solid var(--wp--preset--color--secondary, #787878);
    background-color: var(--wp--preset--color--white, #FFFFFF);
    color: var(--wp--preset--color--text-dark, #333333);
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.share-section__btn:hover {
    background-color: var(--wp--preset--color--light-gray, #F4F4F4);
    transform: scale(1.05);
}

.share-section__btn:active {
    transform: scale(0.98);
}

/* Primary Button (Compartir) */
.share-section__btn--primary {
    padding: 8px 16px;
    gap: 8px;
    height: 40px;
    font-family: var(--wp--preset--font-family--inter, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.21;
    border: 1px solid var(--wp--preset--color--light-gray, #F4F4F4);
}

/* Icon Button */
.share-section__btn--icon {
    width: 40px;
    height: 40px;
}

.share-section__btn--icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.share-section__btn--icon svg path {
    fill: currentColor;
}

/* Share Icon (large) */
.share-section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--wp--preset--color--accent, #FCAD00);
}

.share-section__icon svg {
    width: 64px;
    height: 64px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .menudos-share-section {
        padding: 48px 32px;
    }

    .share-section__banner {
        padding: 32px;
        max-width: 100%;
    }

    .share-section__title {
        font-size: 32px;
    }

    .share-section__banner-title {
        font-size: 36px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .menudos-share-section {
        padding: 40px 16px;
    }

    .share-section__container {
        gap: 24px;
    }

    .share-section__banner {
        flex-direction: column-reverse;
        padding: 24px;
        gap: 24px;
        text-align: center;
    }

    .share-section__cta {
        align-items: center;
    }

    .share-section__title {
        font-size: 28px;
    }

    .share-section__banner-title {
        font-size: 32px;
    }

    .share-section__banner-description {
        font-size: 14px;
    }

    .share-section__buttons {
        justify-content: center;
    }

    .share-section__icon svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .share-section__title {
        font-size: 24px;
    }

    .share-section__banner-title {
        font-size: 28px;
    }

    .share-section__buttons {
        gap: 6px;
    }

    .share-section__btn--primary {
        width: 100%;
        order: 1;
    }

    .share-section__btn--icon {
        width: 36px;
        height: 36px;
    }
}

/* Full width alignment */
.menudos-share-section.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.menudos-share-section.alignwide {
    width: calc(100% + 100px);
    max-width: 1400px;
    margin-left: -50px;
    margin-right: -50px;
}

/* Editor Styles */
.is-admin .menudos-share-section,
.block-editor-block-list__block .menudos-share-section {
    min-height: 300px;
}
