/* Social Share Plugin CSS */

.epa-share {
    margin: 1.5rem 0;
}

.epa-share--custom {
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 1rem;
    background: linear-gradient(140deg, #ffffff 0%, #f6f9fc 100%);
}

.epa-share--bootstrap,
.epa-share--uikit {
    padding: 0.5rem 0;
}

.epa-share__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.epa-share__label {
    margin: 0;
    font-weight: 600;
}

.epa-share--custom .epa-share__label {
    color: #1f2937;
}

.epa-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Διπλή κλάση ώστε να κερδίζει το .btn / .uk-button του template, που φορτώνει μετά και ορίζει display: inline-block */
.epa-share .epa-share__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    cursor: pointer;
    font-size: 0.92rem;
}

.epa-share__button:focus-visible {
    outline: 3px solid #0b5fff;
    outline-offset: 2px;
}

.epa-share__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Το κενό ορίζεται με margin (όχι gap) και το vertical-align κρατά τη στοίχιση
   ακόμη κι αν κάποιο template ακυρώσει το flex του κουμπιού. */
.epa-share .epa-share__icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 1em;
    margin-inline-end: 0.45em;
    vertical-align: -0.125em;
}

.epa-share__icon svg {
    width: 100%;
    height: 100%;
}

/* Τα SVG χρησιμοποιούνται ως mask, οπότε το εικονίδιο παίρνει το χρώμα κειμένου του κουμπιού
   (λειτουργεί σε φωτεινά και σκοτεινά templates). Το template μπορεί να αλλάξει το χρώμα με color. */
.epa-share__icon--mask {
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.epa-share__icon--facebook {
    -webkit-mask-image: url("../images/facebook.svg");
    mask-image: url("../images/facebook.svg");
}

.epa-share__icon--x {
    -webkit-mask-image: url("../images/x.svg");
    mask-image: url("../images/x.svg");
}

.epa-share__icon--linkedin {
    -webkit-mask-image: url("../images/linkedin.svg");
    mask-image: url("../images/linkedin.svg");
}

.epa-share__icon--mastodon {
    -webkit-mask-image: url("../images/mastodon.svg");
    mask-image: url("../images/mastodon.svg");
}

.epa-share__icon--native {
    -webkit-mask-image: url("../images/share.svg");
    mask-image: url("../images/share.svg");
}

/* Windows High Contrast: το background-color αντικαθίσταται, οπότε ορίζεται ρητά system χρώμα */
@media (forced-colors: active) {
    .epa-share__icon--mask {
        forced-color-adjust: none;
        background-color: ButtonText;
    }
}

.epa-share__button-text {
    line-height: 1.2;
}

.epa-share--custom .epa-share__button {
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    background: #1f2937;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.epa-share--custom .epa-share__button:hover {
    opacity: 0.92;
}

@media (max-width: 640px) {
    .epa-share__bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .epa-share__buttons {
        width: 100%;
    }

    .epa-share--custom .epa-share__button {
        width: 100%;
    }
}
