/**
 * Push Permission Request Styles
 * استایل‌های درخواست اجازه اعلان
 */

.celvix-permission-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.celvix-permission-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    margin: 20px;
    animation: slideIn 0.3s ease-out;
}

.celvix-permission-content {
    padding: 30px;
    text-align: center;
}

.celvix-permission-icon {
    margin-bottom: 20px;
}

.celvix-permission-icon .dashicons {
    font-size: 48px;
    color: #0073aa;
    width: 48px;
    height: 48px;
}

.celvix-permission-content h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.celvix-permission-content p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.5;
    font-size: 16px;
}

.celvix-permission-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.celvix-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.celvix-btn-primary {
    background: #0073aa;
    color: #fff;
}

.celvix-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.celvix-btn-secondary {
    background: #f1f1f1;
    color: #666;
    border: 1px solid #ddd;
}

.celvix-btn-secondary:hover {
    background: #e1e1e1;
    transform: translateY(-1px);
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .celvix-permission-modal {
        margin: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .celvix-permission-content {
        padding: 20px;
    }
    
    .celvix-permission-content h3 {
        font-size: 20px;
    }
    
    .celvix-permission-content p {
        font-size: 14px;
    }
    
    .celvix-permission-buttons {
        flex-direction: column;
    }
    
    .celvix-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* حالت RTL */
.rtl .celvix-permission-content {
    text-align: right;
}

.rtl .celvix-permission-buttons {
    flex-direction: row-reverse;
}

/* پیام‌های اعلان */
.notice {
    border-left: 4px solid;
    padding: 12px;
    margin: 5px 0 15px;
    background: #fff;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}

.notice-success {
    border-left-color: #46b450;
}

.notice-error {
    border-left-color: #dc3232;
}

.notice p {
    margin: 0;
    font-size: 14px;
}

.notice-dismiss {
    position: absolute;
    top: 0;
    right: 1px;
    border: none;
    margin: 0;
    padding: 9px;
    background: 0 0;
    color: #b4b9be;
    cursor: pointer;
}

.notice-dismiss:before {
    background: 0 0;
    color: #b4b9be;
    content: "\f153";
    display: block;
    font: 400 16px/20px dashicons;
    speak: none;
    height: 20px;
    text-align: center;
    width: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.notice-dismiss:hover:before {
    color: #c73e39;
}
