/* ========== نظام أيقونات SVG (الذي زودتني به) ========== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* أحجام الأيقونات */
.icon-xs   { width: 0.75rem;  height: 0.75rem;  }
.icon-sm   { width: 0.875rem; height: 0.875rem; }
.icon-md   { width: 1rem;     height: 1rem;     }
.icon-lg   { width: 1.25rem;  height: 1.25rem;  }
.icon-xl   { width: 1.5rem;   height: 1.5rem;   }
.icon-2xl  { width: 2rem;     height: 2rem;     }
.icon-3xl  { width: 3rem;     height: 3rem;     }
.icon-4xl  { width: 4rem;     height: 4rem;     }

/* حركات */
@keyframes icon-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.icon-spin { animation: icon-spin 1s linear infinite; }

@keyframes icon-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.icon-pulse { animation: icon-pulse 2s ease-in-out infinite; }

@keyframes icon-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-25%); } }
.icon-bounce { animation: icon-bounce 1s ease infinite; }

.icon-flip-h  { transform: scaleX(-1); }
.icon-flip-v  { transform: scaleY(-1); }
.icon-rotate-90   { transform: rotate(90deg); }
.icon-rotate-180  { transform: rotate(180deg); }
.icon-rotate-270  { transform: rotate(270deg); }

/* ========== أزرار المشاركة ========== */
.swpss-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 15px 0;
}
.swpss-label {
    width: 100%;
    font-weight: bold;
    margin-bottom: 5px;
}
.swpss-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border: none;
    box-shadow: none;
    transition: opacity 0.2s ease;
}
.swpss-button:hover {
    opacity: 0.85;
}
.swpss-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* الأيقونات سترث اللون من الزر، انظر أدناه */
}

/* أشكال الأزرار */
.swpss-shape-circle .swpss-button  { border-radius: 50%; }
.swpss-shape-rounded .swpss-button { border-radius: 8px; }
.swpss-shape-square .swpss-button  { border-radius: 0; }

/* أحجام الأزرار */
.swpss-size-small .swpss-button  { width: 32px; height: 32px; padding: 6px; }
.swpss-size-medium .swpss-button { width: 44px; height: 44px; padding: 10px; }
.swpss-size-large .swpss-button  { width: 56px; height: 56px; padding: 14px; }

/* أيقونات الأزرار ترث حجم الخط من الزر، لذا ستعمل كلاسات .icon-lg إلخ أيضاً */
.swpss-button .swpss-icon .icon { font-size: inherit; }

/* ألوان الشبكات الرسمية */
.swpss-color-brand .swpss-facebook  { background: #1877F2; color: #fff; }
.swpss-color-brand .swpss-twitter   { background: #000000; color: #fff; }
.swpss-color-brand .swpss-whatsapp  { background: #25D366; color: #fff; }
.swpss-color-brand .swpss-telegram  { background: #0088cc; color: #fff; }
.swpss-color-brand .swpss-linkedin  { background: #0A66C2; color: #fff; }
.swpss-color-brand .swpss-pinterest { background: #E60023; color: #fff; }
.swpss-color-brand .swpss-reddit    { background: #FF4500; color: #fff; }
.swpss-color-brand .swpss-email     { background: #EA4335; color: #fff; }
.swpss-color-brand .swpss-copy,
.swpss-color-brand .swpss-print     { background: #555; color: #fff; }
.swpss-color-brand .swpss-vk        { background: #07F; color: #fff; }
.swpss-color-brand .swpss-pocket    { background: #EF3F56; color: #fff; }
.swpss-color-brand .swpss-tumblr    { background: #35465C; color: #fff; }
.swpss-color-brand .swpss-line      { background: #00C300; color: #fff; }

/* وضع الألوان المخصصة */
.swpss-color-custom .swpss-button {
    color: var(--swpss-custom-color, #000);
    background: var(--swpss-custom-bg, #fff);
}

/* الشريط العائم */
.swpss-floating {
    position: fixed;
    top: 40%;
    left: 10px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 768px) {
    .swpss-floating {
        top: auto;
        bottom: 10px;
        left: 10px;
        flex-direction: row;
    }
}
.swpss-floating .swpss-label { display: none; }
.swpss-copy-msg {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 10;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}
/* تأكد أن الأزرار في وضع نسبي للتموضع */
.swpss-button {
    position: relative;
}