/* ============================================================
   AI Share Buttons — Frontend Styles
   Matches the dark-themed bar in the screenshot
   ============================================================ */

.asb-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    margin: 28px 0 8px;
    border-top: 2px solid #2a9d8f;
    flex-wrap: wrap;
}

.asb-label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    margin-right: 4px;
}

/* ── Buttons wrapper ─────────────────────────────────────── */

.asb-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Base button ─────────────────────────────────────────── */

.asb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background-color: var(--asb-color, #444);
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: opacity 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.asb-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.22);
    color: #ffffff !important;
    text-decoration: none !important;
}

.asb-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* ── Icon ────────────────────────────────────────────────── */

.asb-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.asb-btn__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ── Label text ──────────────────────────────────────────── */

.asb-btn__label {
    display: inline;
}

/* ── Grok: dark button needs slight border ───────────────── */

.asb-btn--grok {
    box-shadow: 0 2px 6px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.08);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 560px) {
    .asb-share-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .asb-buttons {
        gap: 6px;
    }

    .asb-btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .asb-btn__icon {
        width: 16px;
        height: 16px;
    }

    .asb-btn__icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 380px) {
    .asb-btn__label {
        display: none; /* chỉ hiện icon trên màn hình rất nhỏ */
    }

    .asb-btn {
        padding: 10px;
        border-radius: 8px;
    }
}
