/* ==========================================================================
   Social Share Buttons & Embed Widget
   ========================================================================== */

/* --- Share Buttons --- */
.social-share {
    text-align: center;
    padding: 24px 0;
    margin: 20px auto;
    max-width: 600px;
}

.social-share__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4A5568;
    margin-bottom: 12px;
}

.social-share__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.social-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--share-color, #4A5568);
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.social-share__btn:hover {
    background: var(--share-color, #4A5568);
    color: white;
    border-color: var(--share-color, #4A5568);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-share__btn:hover svg {
    fill: white;
    stroke: white;
}

.social-share__btn span {
    pointer-events: none;
}

/* Mobile: hide labels, show icons only */
@media (max-width: 639px) {
    .social-share__btn span {
        display: none;
    }

    .social-share__btn {
        padding: 10px;
    }
}

/* --- Embed Widget --- */
.embed-widget {
    text-align: center;
    padding: 16px 0;
    margin: 20px auto;
    max-width: 600px;
}

.embed-widget__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4A5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.embed-widget__toggle:hover {
    background: #EDF2F7;
    color: #2D3748;
}

.embed-widget__code {
    margin-top: 16px;
    text-align: left;
}

.embed-widget__desc {
    font-size: 0.8125rem;
    color: #718096;
    margin-bottom: 8px;
}

.embed-widget__textarea {
    width: 100%;
    padding: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #2D3748;
    resize: vertical;
}

.embed-widget__textarea:focus {
    outline: none;
    border-color: #E53E3E;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.embed-widget__copy {
    margin-top: 8px;
    padding: 8px 20px;
    background: #E53E3E;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.embed-widget__copy:hover {
    background: #C53030;
}

/* Print: hide share and embed */
@media print {
    .social-share,
    .embed-widget {
        display: none !important;
    }
}
