/* Phramea CMS - Content share buttons */
.share-block {
    --share-radius: 12px;
    border-radius: var(--share-radius);
    overflow: hidden;
    border: 1px solid rgba(11, 143, 163, .15);
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 61, 92, .06);
}

.share-block-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.1rem;
    font-weight: 600;
    font-size: .92rem;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary, #003D5C), var(--primary, #0B8FA3));
}

.share-block-head i {
    opacity: .9;
}

.share-block-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    padding: 1rem;
}

.share-block--bar .share-block-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 68px;
    padding: .55rem .35rem;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.2;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
    cursor: pointer;
}

.share-btn i {
    font-size: 1.25rem;
    color: var(--share-color, var(--primary));
    transition: transform .2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 61, 92, .12);
    border-color: rgba(11, 143, 163, .25);
    color: #0f172a;
}

.share-btn:hover i {
    transform: scale(1.08);
}

.share-btn-label {
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-block-url {
    padding: 0 1rem 1rem;
}

.share-url-input {
    width: 100%;
    border: 1px dashed rgba(11, 143, 163, .35);
    border-radius: 8px;
    padding: .5rem .65rem;
    font-size: .75rem;
    color: #64748b;
    background: #f8fafc;
}

.share-block--inline {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.share-block--inline .share-block-head {
    background: transparent;
    color: var(--secondary, #003D5C);
    padding: 0 0 .75rem;
    font-size: .95rem;
}

.share-block--inline .share-block-grid {
    padding: 0;
}

.share-block--bar {
    margin-top: 1.25rem;
}

.share-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    padding: .75rem 1.1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(11, 143, 163, .35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}

.share-toast.show {
    opacity: 1;
    transform: translateY(0);
}

body.dark-theme .share-block {
    background: var(--dark-card, #1e293b);
    border-color: rgba(255, 255, 255, .08);
}

body.dark-theme .share-btn {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .08);
    color: #e2e8f0;
}

body.dark-theme .share-btn:hover {
    color: #fff;
    border-color: rgba(11, 143, 163, .4);
}

body.dark-theme .share-block--inline .share-block-head {
    color: #e2e8f0;
}

body.dark-theme .share-url-input {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .12);
    color: #94a3b8;
}

@media (max-width: 575.98px) {
    .share-block-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .45rem;
        padding: .75rem;
    }

    .share-btn {
        min-height: 58px;
        font-size: .62rem;
    }

    .share-btn i {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .share-block--sidebar {
        position: sticky;
        top: 88px;
    }
}
