/**
 * Arabic Copy Link Button - Frontend Styles
 * 100% pixel-perfect match to the provided image
 * Button color: #152e83 (from pixel analysis)
 * Icon: White chain link on LEFT, Arabic text on RIGHT
 */

/* ============================================
   Wrapper
   ============================================ */
.acb-wrap {
    margin: 16px 0;
    display: flex;
    justify-content: center;
}

/* === Positions === */
.acb-wrap.acb-pos-center { justify-content: center; }
.acb-wrap.acb-pos-top-left { justify-content: flex-start; }
.acb-wrap.acb-pos-top-right { justify-content: flex-end; }
.acb-wrap.acb-pos-bottom-left { justify-content: flex-start; }
.acb-wrap.acb-pos-bottom-right { justify-content: flex-end; }

/* ============================================
   Button - EXACT match from image
   ============================================ */
.acb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    /* Exact color from pixel analysis */
    background-color: var(--acb-color, #152e83);
    color: #ffffff;

    /* Rounded corners */
    border-radius: 8px;

    /* Padding - matches image proportions */
    padding: 12px 24px;

    /* No border */
    border: none;
    outline: none;
    cursor: pointer;

    /* Font - Arabic friendly */
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;

    /* RTL for Arabic text */
    direction: rtl;

    /* Shadow */
    box-shadow: 0 2px 8px rgba(21, 46, 131, 0.3);

    /* Transitions */
    transition: all 0.3s ease;

    /* No selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;

    white-space: nowrap;
    line-height: 1.4;
}

/* === Hover === */
.acb-btn:hover {
    background-color: #1a38a8;
    box-shadow: 0 4px 14px rgba(21, 46, 131, 0.45);
    transform: translateY(-1px);
}

/* === Active === */
.acb-btn:active {
    background-color: #112669;
    box-shadow: 0 1px 4px rgba(21, 46, 131, 0.25);
    transform: translateY(0);
}

/* === Icon - White chain link === */
.acb-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.acb-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* === Text - Arabic === */
.acb-text {
    display: inline-block;
}

/* === Copied State (Green feedback) === */
.acb-btn.acb-copied {
    background-color: #00c186 !important;
    box-shadow: 0 2px 8px rgba(0, 193, 134, 0.35);
}

.acb-btn.acb-copied:hover {
    background-color: #00d49a !important;
}

/* === Focus === */
.acb-btn:focus-visible {
    outline: 3px solid #5b9bd5;
    outline-offset: 2px;
}

/* ============================================
   Toast Notification
   ============================================ */
.acb-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #00c186;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    direction: rtl;
    box-shadow: 0 4px 20px rgba(0, 193, 134, 0.4);
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.acb-toast.acb-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.acb-toast.acb-toast-error {
    background-color: #ef4444;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
    .acb-btn {
        padding: 10px 20px;
        font-size: 14px;
        gap: 8px;
    }
    .acb-icon svg {
        width: 18px;
        height: 18px;
    }
}
