/* ===== زر كتم الإشعارات في المساعد الرمضاني ===== */

.mute-notifications-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 1.5px solid rgba(139, 0, 0, 0.3);
    border-radius: 12px;
    color: #FFD700;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.mute-notifications-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mute-notifications-btn:hover {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(255, 215, 0, 0.15));
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.mute-notifications-btn:hover::before {
    left: 100%;
}

.mute-notifications-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.mute-notifications-btn i {
    font-size: 14px;
    transition: 0.3s;
}

.mute-notifications-btn span {
    transition: 0.3s;
}

/* ===== حالة الكتم ===== */
.mute-notifications-btn.muted {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.2), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 77, 77, 0.4);
    color: #ff4d4d;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.2);
}

.mute-notifications-btn.muted:hover {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.3), rgba(255, 215, 0, 0.15));
    border-color: rgba(255, 77, 77, 0.6);
    box-shadow: 0 6px 16px rgba(255, 77, 77, 0.4), inset 0 0 10px rgba(255, 77, 77, 0.1);
}

.mute-notifications-btn.muted i {
    animation: muteIconPulse 2s ease-in-out infinite;
}

@keyframes muteIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== الحركات والـ Animations ===== */
@keyframes muteButtonSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mute-notifications-btn {
    animation: muteButtonSlideIn 0.4s ease-out;
}

/* ===== للموبايل ===== */
@media (max-width: 768px) {
    .mute-notifications-btn {
        padding: 10px 14px;
        font-size: 12px;
        gap: 6px;
        margin-top: 12px;
    }

    .mute-notifications-btn i {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mute-notifications-btn {
        padding: 9px 12px;
        font-size: 11px;
        gap: 5px;
        margin-top: 10px;
    }

    .mute-notifications-btn i {
        font-size: 12px;
    }

    .mute-notifications-btn span {
        display: none;
    }

    .mute-notifications-btn {
        width: auto;
        min-width: 40px;
        justify-content: center;
    }
}

/* ===== الحالة عند التركيز ===== */
.mute-notifications-btn:focus {
    outline: 2px solid rgba(255, 215, 0, 0.5);
    outline-offset: 2px;
}

.mute-notifications-btn:focus:not(:focus-visible) {
    outline: none;
}

.mute-notifications-btn:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.7);
    outline-offset: 2px;
}

/* ===== التوافق مع الـ RTL ===== */
[dir="rtl"] .mute-notifications-btn {
    flex-direction: row-reverse;
}

[dir="ltr"] .mute-notifications-btn {
    flex-direction: row;
}

/* ===== الحالة المعطلة ===== */
.mute-notifications-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== الحالة عند التحميل ===== */
.mute-notifications-btn.loading {
    pointer-events: none;
}

.mute-notifications-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== الحالة عند النجاح ===== */
.mute-notifications-btn.success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.1));
    border-color: rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.mute-notifications-btn.success i {
    animation: successCheck 0.6s ease-out;
}

@keyframes successCheck {
    0% {
        transform: scale(0.5) rotate(-45deg);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* ===== التوافق مع الـ Dark Mode ===== */
@media (prefers-color-scheme: dark) {
    .mute-notifications-btn {
        background: linear-gradient(135deg, rgba(139, 0, 0, 0.25), rgba(255, 215, 0, 0.1));
        border-color: rgba(139, 0, 0, 0.4);
    }

    .mute-notifications-btn:hover {
        background: linear-gradient(135deg, rgba(139, 0, 0, 0.35), rgba(255, 215, 0, 0.15));
        border-color: rgba(255, 215, 0, 0.6);
    }
}

/* ===== التوافق مع الـ Light Mode ===== */
@media (prefers-color-scheme: light) {
    .mute-notifications-btn {
        background: linear-gradient(135deg, rgba(139, 0, 0, 0.15), rgba(255, 215, 0, 0.08));
        border-color: rgba(139, 0, 0, 0.25);
        color: #8B0000;
    }

    .mute-notifications-btn:hover {
        background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(255, 215, 0, 0.12));
        border-color: rgba(139, 0, 0, 0.4);
    }

    .mute-notifications-btn.muted {
        color: #ff4d4d;
        border-color: rgba(255, 77, 77, 0.3);
    }
}

/* ===== الحالة عند الطباعة ===== */
@media print {
    .mute-notifications-btn {
        display: none;
    }
}
