/* ============================================
   SHARE A BLOG
   ============================================ */

/* Card action, same pill as the likes / comments / download ones. */
.blog-share {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    min-width: 30px;
}

.blog-share:hover {
    background: rgba(11, 35, 91, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(11, 35, 91, 0.4);
}

.share-icon {
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* ---------- modal ---------- */

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.share-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 24px;
    padding: 30px 28px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(11, 35, 91, 0.25);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-modal-overlay.show .share-modal {
    transform: scale(1) translateY(0);
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-mode .share-modal {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(250, 229, 5, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.share-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.share-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

body.dark-mode .share-modal-title {
    color: var(--pe-yellow);
}

.close-share {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: white;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.close-share:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

body.dark-mode .close-share {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .close-share:hover {
    background: rgba(250, 229, 5, 0.2);
    border-color: rgba(250, 229, 5, 0.4);
    color: var(--pe-yellow);
}

.share-section-label {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

body.dark-mode .share-section-label {
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- networks ---------- */

.share-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.share-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

.share-tile {
    width: 58px;
    height: 58px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    transition: all 0.25s ease;
}

.share-target-label {
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
}

.share-target:hover .share-tile {
    transform: translateY(-3px);
}

.share-target[data-share="linkedin"] .share-tile {
    color: #0a66c2;
}

.share-target[data-share="linkedin"]:hover .share-tile {
    border-color: #0a66c2;
    box-shadow: 0 6px 16px rgba(10, 102, 194, 0.22);
}

.share-target[data-share="facebook"] .share-tile {
    color: #1877f2;
}

.share-target[data-share="facebook"]:hover .share-tile {
    border-color: #1877f2;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.22);
}

.share-target[data-share="whatsapp"] .share-tile {
    color: #25d366;
}

.share-target[data-share="whatsapp"]:hover .share-tile {
    border-color: #25d366;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.22);
}

.share-target[data-share="email"] .share-tile {
    color: #111827;
}

.share-target[data-share="email"]:hover .share-tile {
    border-color: #111827;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18);
}

body.dark-mode .share-tile {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .share-target-label {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .share-target[data-share="email"] .share-tile {
    color: #ffffff;
}

body.dark-mode .share-target[data-share="email"]:hover .share-tile {
    border-color: rgba(250, 229, 5, 0.5);
    box-shadow: 0 6px 16px rgba(250, 229, 5, 0.2);
}

/* ---------- page link ---------- */

.share-separator {
    height: 1px;
    background: #e5e7eb;
    margin: 24px 0;
}

body.dark-mode .share-separator {
    background: rgba(255, 255, 255, 0.12);
}

.share-link-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 6px 0 14px;
    background: #f3f4f6;
    border-radius: 12px;
    box-sizing: border-box;
}

body.dark-mode .share-link-field {
    background: rgba(255, 255, 255, 0.06);
}

.share-link-field input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
    font-size: 13.5px;
    color: #6b7280;
    text-overflow: ellipsis;
}

body.dark-mode .share-link-field input {
    color: rgba(255, 255, 255, 0.7);
}

.share-copy-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.share-copy-btn:hover {
    background: rgba(11, 35, 91, 0.08);
    color: var(--pe-navy);
}

.share-copy-btn.copied {
    color: #16a34a;
}

body.dark-mode .share-copy-btn {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .share-copy-btn:hover {
    background: rgba(250, 229, 5, 0.2);
    color: var(--pe-yellow);
}

body.dark-mode .share-copy-btn.copied {
    color: #4ade80;
}

@media (max-width: 500px) {
    .share-modal {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .share-modal-header {
        margin-bottom: 22px;
    }

    .share-modal-title {
        font-size: 20px;
    }

    .share-targets {
        gap: 12px;
        justify-content: space-between;
    }

    .share-tile {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .share-target-label {
        font-size: 11.5px;
    }

    .share-separator {
        margin: 20px 0;
    }
}
