/* Arzpaya Plugin Share - Share Widget Styles */

.arzpaya-share-widget {
    background: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-subtle, 0 2px 8px rgba(0, 0, 0, 0.08));
    font-family: IRANSansWeb, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
    text-align: center;
    max-width: 100%;
}

.arzpaya-share-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1.4;
    text-align: center;
}

.arzpaya-share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.arzpaya-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.arzpaya-share-btn img,
.arzpaya-share-btn svg {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    background: transparent;
    border-radius: 50%;
}

.arzpaya-share-btn svg {
    fill: #fff;
}

.arzpaya-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.arzpaya-share-btn:active {
    transform: translateY(0);
    opacity: 0.8;
}

/* URL Copy Box */
.arzpaya-share-url-box {
    display: flex;
    align-items: center;
    background-color: var(--body-bg, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 4px;
    gap: 8px;
    position: relative;
}

.arzpaya-share-url-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-body, #374151);
    direction: ltr;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    outline: none;
    min-width: 0;
}

.arzpaya-share-url-input:focus {
    outline: none;
}

.arzpaya-share-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background-color: var(--border-color, #e5e7eb);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.arzpaya-share-copy-btn:hover {
    background-color: var(--text-secondary, #d1d5db);
    opacity: 0.8;
}

.arzpaya-share-copy-btn:active {
    opacity: 0.6;
}

.arzpaya-share-copy-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary, #6b7280);
}

.arzpaya-share-copy-btn:hover svg {
    fill: var(--text-primary, #374151);
}

.arzpaya-share-copy-btn.copied {
    background-color: #10b981;
}

.arzpaya-share-copy-btn.copied svg {
    fill: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .arzpaya-share-widget {
        padding: 20px;
        margin: 20px 0;
    }
    
    .arzpaya-share-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .arzpaya-share-buttons {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .arzpaya-share-btn {
        width: 44px;
        height: 44px;
    }
    
    .arzpaya-share-btn img,
    .arzpaya-share-btn svg {
        width: 44px;
        height: 44px;
    }
    
    .arzpaya-share-url-input {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .arzpaya-share-copy-btn {
        width: 32px;
        height: 32px;
    }
    
    .arzpaya-share-copy-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .arzpaya-share-widget {
        padding: 16px;
    }
    
    .arzpaya-share-buttons {
        gap: 10px;
    }
    
    .arzpaya-share-btn {
        width: 40px;
        height: 40px;
    }
    
    .arzpaya-share-btn img,
    .arzpaya-share-btn svg {
        width: 40px;
        height: 40px;
    }
}

/* RTL Support */
[dir="rtl"] .arzpaya-share-url-input {
    direction: ltr;
    text-align: left;
}

/* Notification Styles */
.arzpaya-share-notification {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #10b981;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
}

.arzpaya-share-notification.show {
    opacity: 1;
    top: -60px;
}

.arzpaya-share-notification-error {
    background-color: #ef4444;
}

.arzpaya-share-widget {
    position: relative;
}

/* LTR Support */
[dir="ltr"] .arzpaya-share-widget {
    direction: ltr;
    text-align: center;
}

[dir="ltr"] .arzpaya-share-title {
    text-align: center;
}

