/* ملف: css/sticky-bar.css - النسخة النهائية مع تعديل لون أزرار المشاركة */

/* أنماط الشريط الثابت */

.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(46, 64, 55, 0.55) 0%, var(--primary_color, #607d6b) 100%);
    color: var(--white_color, #ffffff);
    padding: 10px 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    border-top: 3px solid rgba(255,255,255,0.2);
}

.sticky-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* قسم التحكم في الخط */
.sticky-font-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-font-controls {
    display: flex;
    gap: 5px;
}

.sticky-font-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: var(--white_color, #ffffff);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.sticky-font-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* قسم المشاركة المنسدل مع النص */
.sticky-share-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-share-label {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--white_color, #ffffff);
    opacity: 0.9;
    font-family: 'Cairo', sans-serif;
}

.sticky-share-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    color: var(--white_color, #ffffff);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.sticky-share-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.sticky-share-dropdown {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white_color, #ffffff);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: none;
    flex-direction: row;
    gap: 5px;
    border: 2px solid var(--primary_color);
}

.sticky-share-dropdown.active {
    display: flex;
}

.sticky-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white_color, #ffffff);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9em;
    /* --- التعديل هنا --- */
    background: var(--primary_dark_color, #4e6556); /* استخدام اللون الداكن لتباين أفضل */
}

.sticky-share-btn:hover {
    /* --- التعديل هنا --- */
    background: var(--primary_color, #607d6b); /* استخدام اللون الأساسي عند التمرير */
    transform: scale(1.1);
}

/* قسم القنوات الاجتماعية المنسدل مع النص */
.sticky-social-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-social-label {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--white_color, #ffffff);
    opacity: 0.9;
    font-family: 'Cairo', sans-serif;
}

.sticky-social-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    color: var(--white_color, #ffffff);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.sticky-social-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.sticky-social-dropdown {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white_color, #ffffff);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: none;
    flex-direction: row;
    gap: 5px;
    border: 2px solid var(--primary_color);
}

.sticky-social-dropdown.active {
    display: flex;
}

.sticky-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white_color, #ffffff);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9em;
    /* --- التعديل هنا --- */
    background: var(--primary_dark_color, #4e6556); /* استخدام اللون الداكن لتباين أفضل */
}

.sticky-social-btn:hover {
    /* --- التعديل هنا --- */
    background: var(--primary_color, #607d6b); /* استخدام اللون الأساسي عند التمرير */
    transform: scale(1.1);
}

/* تحسينات متجاوبة */
@media (max-width: 768px) {
    .sticky-bar-content {
        gap: 15px;
        padding: 0 10px;
    }

    .sticky-font-btn,
    .sticky-share-toggle,
    .sticky-social-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.8em;
    }

    .sticky-share-label,
    .sticky-social-label {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .sticky-bar-content {
        gap: 8px;
        justify-content: center;
    }

    .sticky-share-label,
    .sticky-social-label {
        font-size: 0.85em;
    }

    .sticky-share-section,
    .sticky-social-section {
        gap: 5px;
    }
}
/* ===== بداية: تلوين أزرار المشاركة في الشريط الثابت بألوانها الخاصة ===== */

/* فيسبوك */
.sticky-share-btn.facebook {
    background-color: #3b5998;
}
.sticky-share-btn.facebook:hover {
    background-color: #324b81;
}

/* تويتر (X) */
.sticky-share-btn.twitter {
    background-color: #1da1f2; /* أو #000000 للون X الأسود */
}
.sticky-share-btn.twitter:hover {
    background-color: #1a8cd8;
}

/* واتساب */
.sticky-share-btn.whatsapp {
    background-color: #25d366;
}
.sticky-share-btn.whatsapp:hover {
    background-color: #1ebe5a;
}

/* تليجرام */
.sticky-share-btn.telegram {
    background-color: #0088cc;
}
.sticky-share-btn.telegram:hover {
    background-color: #007ab8;
}

/* البريد الإلكتروني */
.sticky-share-btn.email {
    background-color: #7f7f7f;
}
.sticky-share-btn.email:hover {
    background-color: #6a6a6a;
}
/* ===== نهاية: تلوين أزرار المشاركة في الشريط الثابت ===== */

/* تعديل نهائي: جعل أيقونات الشريط الثابت بيضاء وواضحة */
.sticky-share-btn i,
.sticky-social-btn i {
    color: #ffffff !important;
}
